Vectors and Scalars in function calls
Mostrar comentarios más antiguos
Hi there,
I'm making another reverb function, where I'd like the input to include room dimensions (L, a 1x3 vector) and a scalar, N.
For the vector, I then extract the length of each dimension (Lx=L(1), Ly=L(2) etc) in the following code. The problem is, I have tried making this function, is_reverb(L,N) accept these values and I keep getting errors.
So I guess my question is if it is possible to do a function call taking a vector for one variable and a scalar for another?
1 comentario
Honglei Chen
el 15 de Feb. de 2012
MATLAB can definitely handle that. Can you show the error?
Respuesta aceptada
Más respuestas (2)
Wayne King
el 15 de Feb. de 2012
0 votos
You can do definitely do that. It would help a lot if you posted the code (using formatting) and the errors you are getting.
C Meek
el 15 de Feb. de 2012
Categorías
Más información sobre Programming 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!