Réponse apportée
grabbing specific rows from matrix
RowSelection=[1 5 13 21 25]; xy_index(RowSelection ,:)

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How to programmatically rename all instances of a signal/variable in a Simulink model?
It is NOT a signal. Rather, it is a "Bus Element In" "Inport" block. blks=find_system('ModelName','FindAll','On','BlockType','I...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Copy file and immediately read in content
In your script, try adding "rehash" after the line where the file is copied. doc rehash Use rehash with no arguments only whe...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How do I collect unlinked block or library list.
find_system('ModelName','LookUnderMasks','All','FollowLinks','On','LinkStatus','inactive')

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How to close a dos window after a .exe is finished running?
I have provided this solution in several cases. You just need to have an empty line with a carriage return in that text file. ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How to get the label name when I enable the property of signal propagation
ph=get_param('PathToTheFromBlock','PortHandles'); get_param(ph.Outport,'PropagatedSignals')

presque 4 ans il y a | 0

Réponse apportée
Is it possbile to protect the code of a matlab live script?
make a p code. doc pcode

presque 4 ans il y a | 0

Réponse apportée
How can I remove this projection from Matlab plot?
Using mesh(), not using meshc(), will not show the contour.

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How do I compile a simulink model without running it?
See if this is what you need. It is equivalent to manual press Ctrl+D set_param(model,'SimulationCommand','Update')

presque 4 ans il y a | 0

Réponse apportée
In Merge block, For execution of more than one subsystem(Nested If loops) I have an error saying Ensure that the Merge block output is updated by only one of its input signals
You need to re-construct your model. At any time, there should be at most one of the inputs at the Merge block being updated. A...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Numerical Precision Physics Calculations
eps(5.89e7) It means that around 5.89e7 (which is a large value), the nearest values that can be represeted by double data type...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How to Remove Customizatize Simulink Menu items
Most likely, it is added through a sl_customization.m file provided in the third party software . If you know the installation ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Sum: every nth column and groups/blocks of columns
x=magic(12); y=reshape(x,12,4,[]); z=squeeze(sum(y,2))

presque 4 ans il y a | 0

Réponse apportée
Block Error: Loading matlab workspace table data in Simulink model 2-D Lookup Table?
The data in your MATLAB workspace is in an Table object. see class(ELSE2021New). Simulink doesn't recognize this type of objec...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
i dont understand the matlab fucntion any help ?please
You need to double click that "MATLAB Function" block. It will open in an Editor. There will be MATLAB code in that function. Mo...

presque 4 ans il y a | 0

Réponse apportée
Compatibility of Matlab 2017b S-function C-Code on a HIL D-Space setup that is using Matlab 2017a?
The best way is for you to export R2017b version model to a R2017a version model so your customer can use it. Of course, that re...

presque 4 ans il y a | 0

Réponse apportée
How can I resolve this error ?
You specified input data, but there is no root level input ports, which means no input data is needed. If you've done this manu...

presque 4 ans il y a | 3

| A accepté

Réponse apportée
Creating a simulink signal with Boolean datatype
What you did is correct. However, it may cause error if the incoming signal connected to the Inport block "In8" is not boolean. ...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How can I show NaN as Error not Exist?
I guess the true intension is like the code below. If ErrorT is initially NaN, then "ERROR DOES NOT EXIST" will be displayed. If...

presque 4 ans il y a | 0

Réponse apportée
Accessing Mixed-Signal Blockset in Simulink
Mixed-Signal Blockset is introduced in R2019a. It is a separate toolbox, which will need to be acquired separately. If you don't...

presque 4 ans il y a | 0

Réponse apportée
Clock/pulses controller in Simulink
If you want to adjust the width or phase while the simulation is running, then you can use the Slider block. Add the Slider bloc...

presque 4 ans il y a | 0

Réponse apportée
How can I use named RAM arrays in the Simulink 1-D Interpolation block?
Lookup Table Dynamic

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How to rename signal in Signal Data inspector ?
Double click that signal line in the Simulink model, give it a valid signal name, the signal name will then appear in the Data I...

presque 4 ans il y a | 0

Réponse apportée
How to Make a Simulink Scheduler for a Matlab Block Function to run each 40 ms of simulation?
Use a Function-call Generator block, specify the sample time. Put the MATLAB Function block inside a triggered subsystem, specif...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How can i pass a string from simulink mask to matlab function block
With R2018a (with the String Constant block) or later, you can do this, with a little extra effort. Add a 'String Constnat' blo...

presque 4 ans il y a | 0

Réponse apportée
Is there a way to pass the name of an input signal to a matlab function block in simulink?
Not through passing but you can get it through get_param(). Note that some functions are not supported for code generation. fun...

presque 4 ans il y a | 0

Réponse apportée
Simulink does not support 'Array' format for logging multiport data. Change the logging format of the Scope to 'Dataset', 'Structure', or 'Structure with time'.
See document web(fullfile(docroot, 'simulink/gui/format.html')) To use Array format, all logged states and outputs must be: ...

presque 4 ans il y a | 1

Réponse apportée
Implicit scalar expansion doesn't work in MATLAB function block.
Good news. It seems it is available in R2021b, but not in R2021a. Check https://www.mathworks.com/help/releases/R2021b/coder/u...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Use #define values from a Matlab function
You might need to add the C header file and source C code file to the model, Ctrl+E, Simulation Target, Follow the example in...

presque 4 ans il y a | 0

Réponse apportée
Trying to read a new licence into LMTool on Linux
Name primary license file as license.dat, name secondary license file as xxx.lic. Put both in matlabroot\licenses folder and the...

presque 4 ans il y a | 0

Charger plus