How to get the correct value from the given matrix?

1 回表示 (過去 30 日間)
Matlab111
Matlab111 2014 年 11 月 4 日
回答済み: Mikhail 2014 年 11 月 4 日
like this i have one matrix
a=[194.2015 74.0495 1.0000
193.9793 124.4735 1.0000
168.2779 80.5468 1.0000
191.4042 99.1337 1.0000
168.7530 108.8447 1.0000]
for this i should get only the first row and remaining should not display this 'a' matrix in loop condition so the 'a' matrix will get change.
b=194.2015 74.0495 1.0000;

採用された回答

Mikhail
Mikhail 2014 年 11 月 4 日
The simplest way is to write
b=a(1,:)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by