Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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 vue (au cours des 30 derniers jours)
ashok
ashok le 11 Fév 2014
Clôturé : MATLAB Answer Bot le 20 Août 2021
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

Réponses (1)

Matt J
Matt J le 11 Fév 2014
Modifié(e) : Matt J le 11 Fév 2014
q=num2cell([1,2]);
[a,b]=deal(q{:});

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by