Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

can any one of you tell me how to implement the equations ..if i have taken [a b]=[1 2]; how can i get a=1,and b=2? where [a b] is a one by 2 matrix and [1 2] is also a matrix

1 Ansicht (letzte 30 Tage)
can any one of you tell me how to implement the equations ..if i have taken [a b]=[1 2]; how could i get a=1,and b=2? where [a b] is a one by 2 matrix and [1 2] is also a matrix

Antworten (1)

Matt J
Matt J am 11 Feb. 2014
Bearbeitet: Matt J am 11 Feb. 2014
q=num2cell([1,2]);
[a,b]=deal(q{:});

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by