Why does it give me a problem stating that, Index must not exceed 1?
1 view (last 30 days)
% SIDE S - trajectory of incremental positive-sequence impedance with
% marking the starting/ending point. For all of the cases. all simulation
title('side S - Trajectory of incremental positive-sequence impedance')
the cyclist on 24 Nov 2021
Edited: the cyclist on 24 Nov 2021
When you define del_ZS1 in the initial for loop, it is not a vector. It is a single, scalar value.
When you try to do
you try to access the 60th element, but there is only one element.
Perhaps you intended something more like
for k=1,1:120 % <---- Maybe this was supposed to be just k=1:120 ???
Jan on 24 Nov 2021
I guess, that the error occurs here:
The message means, that del_ZS1 is a scalar and does not have 60 elements. Use the debugger to check this:
dbstop if error
Type this in the command window and run the code again. Then Matlab stops at the error and you can check the dimensions of the variable in the command window or workspace browser.