beginner question array loops with values lower than 1
显示 更早的评论
hello, i am starting to use matlab on my own for research that i am getting into for image recognition and i don't have a formal class to learn matlab under so sorry if this is a silly question.
how would i do this: <= means less then and equal to, don't know how to insert the proper way
plot this curve for 0 <= t <= 10pie x= 6t+3sin(2t) y=3+3cos(2r)
so i wrote a for loop with something like this.
for t=0:(10*pi)
x(t)=6*t+3*sin(2*t)
y(t)=3+3*cos(2*t)
end
with this i get an error because arrays can't start with 0. how would i get 0 into this and if its not a similar process how would i be able to solve a problem similar to this but had values below 0.
thank you for your time
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!