merlin kelly
自 2018 起处于活动状态
Followers: 0 Following: 0
Feeds
提问
I have tried to make a loop where it displays all the answers in a matrix but it doesn't give me the 21x3 matrix. Am i using wrong commands or am i missing something.
t=0; for v=[t,sin(t),cos(t)] if t<21 disp(v) t=t+1; end end
6 years 前 | 1 个回答 | 0
1
个回答提问
I have finished my script but i want to simplify it instead of leaving it looking cluttered, I am mainly looking for a shortcut.
t=0; a=[t,sin(t),0]; b=[0,0,cos(t)]; v0=a+b; t=1; a=[t,sin(t),0]; b=[0,0,cos(t)]; ...
6 years 前 | 1 个回答 | 0