theta=120sign=(cosd (theta)/abs (cosd (theta)))u=.8w=(2*pi/5)R=1c=4.05/12H=18/12y=H-(R*sind(theta/2))Md=50/32.2Id=(.5*Md*R^2)Mp=75/32.2Mb=30/32.2alpha=0u=.8L=(6/12*R)g=32.2ax=(-R*w^2)*cosd(theta)ab=(-R*w^2*cosd(theta))-(R*w^2*sind(theta))ay=(-R*w^2)*sind(theta)AA=[1 0 1 0 0 0 0 0 0; 0 1 0 1 0 0 0 0 0; 0 0 -R*sind(theta) R*cosd(theta) 0 0 0 0 0; 0 0 0 0 1 0 1 0 0; 0 0 0 0 0 1 0 1 0; 0 0 -1 0 -1 0 0 0 0; 0 0 -c 3*R -c -3*R 0 0 0; 0 0 0 0 0 0 0 0 0; 0 0 0 0 0 0 0 0 0]CC=[0 Md*g Id*alpha 0 Md*g Id*alpha Mp*ax Mp*ay+Mp*g Mb*g]xx=CC*AAif (0<theta) & (theta<180), x=C*aelse xx=CC*AAendw = 2*pi/5; theta = 0:2:360
MATLAB: How can i use a “while” loop to automatically increment omega
while loop
Related Question
- How to fix error: horzcat dimensions of matrices being concatenated are not consistent
- Plotting of for loop
- Trying to find a minimum value
- Matlab error -> index must be a positive integer or logical.
- How to store the results from a for loop into a matrix
- How to generate 360 images by applying rotation from 1 to 360 degree on same points
Best Answer