How can I spread the plot points out?
이전 댓글 표시
Firstly, I am quite inexperienced with matlab. This is the code:
for w = 1:1:7
for t = 0:0.1:2
WN = (diagonalk(w,w)/diagonalm(w,w))^0.5;
ZETA = (0.6/(2*WN))+((0.002*WN)/2);
Yuafd = uadecay(t, WN, ZETA);
Impulse_response = unitstep(t, WN, ZETA);
q = (Yuafd.*F)+Impulse_response;
disp(q)
end
end
z=U*q
j1=1;
figure
for i1=[4 7]
subplot(1,2,j1);
plot(t,z(i1,:)*1000, '*');
xlabel('Time secs');ylabel('Displacement')
j1=j1+1;
end
subplot(1,2,1);title('Displacement at wing centre (mm)')
subplot(1,2,2);title('Displacement at wing tip (mm)')
It won;t let me multiply Yuafd by F. F = [0 0 0 0 0 0 -10000]
Also, i changed F to a single number just to plot it, and it plots all the points vertically at t = 2.
How do I correct these points?
댓글 수: 1
dpb
2020년 11월 1일
Unrecognized function or variable 'diagonalk'.
>>
Can't try to simulate the problem; we don't know what things are...
답변 (1개)
Cris LaPierre
2020년 11월 2일
0 개 추천
Usually spreading points out means reducing the range of values on the X-Axis. Look into the xlim function.
카테고리
도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!