Answered
Hi MatLab and Simulink users. I'm stuck on 13.1 Part 2 task 5. Though I followed the answer of this page, it didn't work. Anyone who help will be highly appreciated.
Hi Jaeho, From my understanding, you may have made an unintended change to your model. You could try simulating the model (atta...

2 years ago | 0

Answered
How to run .m file script from Simulink(eg.slx) and results of script should update in same Simulink(eg.slx) file
Hi Alex, You can try the following to run your MATLAB script in Simulink: Using model callbacks : You can call the optimizati...

2 years ago | 0

Answered
Derivative of state '1' in block 'matlab_function_MATHWORKS/CHERYL KNEE EXTENSION MODEL2/Integrator4' at time 0.918 is not finite. The simulation will be stopped.
Hi Saharul, This error has occured due to the presence of a NaN value at the input of the integator. To ascertain this, you can...

2 years ago | 0

Answered
Is it possible to modify the size of the arrow heads drawn by streamslice.m?
Hi John, There is a difference between quiver and streamslice that quiver returns a Quiver object while streamslice returns a ...

2 years ago | 0

| accepted

Answered
High pass iir filter block in Simulink Motor control blockset
Hi mehmet, I have brought this issue to the notice of the concerned team. They will investigate the matter further.

2 years ago | 0

Answered
Default Path not working - errors fullfile
Hi Katharina, Perform the following steps to troubleshoot your issue: edit pathdef.m; restoredefaultpath; % restore the MATL...

2 years ago | 0

Answered
How to generate different numbers of random variables in each Monte Carlo iteration (random fields)
Hi Pooneh, The number of random variables will change if the sizes of mu and Sigma or the value of n changes during the iterati...

2 years ago | 0

Answered
How to make a Simulink block that runs the same Simulink several times to record the data?
Hi Hyungbo Shim, You can repeat an algorithm using a foreach subsytem. Have a look at the sample Simulink model where the forea...

2 years ago | 0

Answered
how to manage 'Switch case' and persistent variables in Matlab Function Block in Simulink?
Hi Amjad, I understand you are facing some issues with the MATLAB function block. Have a look at the following sample code to s...

2 years ago | 1

| accepted

Answered
How can I remove edge line from this binary image?
Hi Rinrada, You can use morphological operations available to reduce the effect of lines in your image. Refer to the code snipp...

2 years ago | 0

Answered
Set fortran as compiler in Matlab_R2021a (in MacOS catalina 10.15.7)
Hi Mahsa, Make sure you have the right supported compiler for your OS : Supported Compilers Try using Intel Parallel Studio XE...

2 years ago | 0

Answered
Matlab crashes upon starting
Hi Jignesh, Perform the following troubleshooting steps: Resolve any path issues by following this link: resolve startup path...

2 years ago | 0

Answered
own code, loop form to vector form
Hi Stalin, I assume you need to vectorize all the loops in your code. You could refer to a possible workaround here that reduce...

2 years ago | 0

| accepted

Answered
Is it possible to have a double y axis in a stackedplot?
I have heard that this issue is known and the concerned parties may be investigating further.

2 years ago | 0

Answered
Array indices must be positive integers or logical values, Neural Network Performances
Hi Jingyuan Yao, From my understanding, you have made the following typo in your code, Change it from : neti = network_arr...

2 years ago | 0

Answered
Perform action for Cell Array without using for loop
Hi Joris, From my understanding, you would like to extract the non-empty cells in a cell array. And then you want to extract th...

2 years ago | 1

| accepted