Hello. I have been having this same problem in a lot of the homework assignments I have been given so far.
What I am trying to do is use the while loop to create values for J, and in the same loop I am trying to use those values of
J to create a new array with the values from tau.
clc; clear ; clear allF = 10; %Newtons
T = F*0.1 ; %Work
r = 0:5; %mm
i = 1while i < 6 J = (.5*pi)*r.^4 tau(i) = (T*r)/Ji = i + 1;end
Best Answer