Question: Array indices must be positive integers or logical values. occurs on for i = 1 :Nwait + 1 i = 0 : 1 : 1

Array indices must be positive integers or logical values. occurs on for i =1:Nwait +1
i=0:1:10;
fprintf("p_state(%d): %f,", i, p_state(i));
end
fprintf("
");

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!