beginner question array loops with values lower than 1
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!