MATlab code line doesnt run
1 view (last 30 days)
I am having the following MATlab code and keep running into the error of my xdot(i) line.
Error: Check for missing argument or incorrect argument data type in
call to function 'R'.
Error in 360Second (line 14)
can you please check if you see anything else wrong with it after I fix that error.
title('random'), xlabel('random'), ylabel('random');
Neeraj Rajpurohit on 7 Apr 2021
DISCLAIMER: These are my own views and in no way depict those of MathWorks.
I see that you are accessing arrays R, V and E, without initialization in the line .To make the given script work, you will have to do the initialization of these variables. Also, to access the variables with indices, you will have to preallocate the arrays with appropriate sizes.