how can i write this lissajous function in matlab????
Mostrar comentarios más antiguos
hi all
I knew that my question is so silly, but I am new I matlab area and I need help:
I have this lissajous function:
x (t)=Asin(at+d)
y (t)=Bsin(bt)
where t = from 0 to 2pi, what I need is to know how I can write this function in an m-file which take three scalars a, b, and d , and a vector t as its arguments and returns two vectors x(t) and y (t) also A=B=1
thanks for any one help
mari
regards
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 8 de Ag. de 2012
The function heading would be
function [x, y] = my_lissajous(a, b, d, t)
2 comentarios
mari gaji
el 8 de Ag. de 2012
Walter Roberson
el 9 de Ag. de 2012
Remember that MATLAB is case sensitive, so "A" is not the same as "a". It does not matter which of the two you use, but you must be consistent.
Categorías
Más información sobre Configure Simulation Conditions 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!