Going from [ a b c ] to (a, b, c)
Mostrar comentarios más antiguos
Hi
I'm new to MATLAB and in need of a bit of help.
I have a custom made function that needs input as follows:
func(a,b,c)
I have the variables in the following form:
var = [ a b c ]
How do I get the variables into the form the function needs? or alternatively change the form of input of the function?
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 15 de Jun. de 2011
T = num2cell(var);
func(T{:})
Categorías
Más información sobre Logical 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!