MATLAB creates an array of indefinite length

Insert picture description here
Insert picture description here

This is an array with a size of 1000 and each element in it is equal to 0. Of course, you can make the 1000th element the value you want.

Also remember that the subscript of the array in matlab starts from 1, not 0.
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/xdg15294969271/article/details/114443741