Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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 回表示 (過去 30 日間)
ashok
ashok 2014 年 2 月 11 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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

回答 (1 件)

Matt J
Matt J 2014 年 2 月 11 日
編集済み: Matt J 2014 年 2 月 11 日
q=num2cell([1,2]);
[a,b]=deal(q{:});

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by