フィルターのクリア

How Extract a value into a cell?

1 回表示 (過去 30 日間)
Francesco
Francesco 2014 年 1 月 31 日
編集済み: Azzi Abdelmalek 2014 年 1 月 31 日
If I have
>> A1
A1 =
[263x3 double]
>> A1{1}
ans =
1.0e-004 *
-0.0000 0 -0.0000
-0.0000 -0.0000 -0.0000
-0.0000 -0.0000 -0.0000
If I want to extract the differenze between the second and the first element of the first columns of A1 which is a cell how I can do?

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 1 月 31 日
編集済み: Azzi Abdelmalek 2014 年 1 月 31 日
For your case
A1=num2cell(rand(10,3))
A1{2}-A1{1}
For another column n
n=2
A1{2,n}-A1{1,n}

その他の回答 (1 件)

Mischa Kim
Mischa Kim 2014 年 1 月 31 日
編集済み: Mischa Kim 2014 年 1 月 31 日
A1{1}(2,1)-A1{1}(1,1)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by