How Extract a value into a cell?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Francesco
am 31 Jan. 2014
Bearbeitet: Azzi Abdelmalek
am 31 Jan. 2014
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?
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 31 Jan. 2014
Bearbeitet: Azzi Abdelmalek
am 31 Jan. 2014
For your case
A1=num2cell(rand(10,3))
A1{2}-A1{1}
For another column n
n=2
A1{2,n}-A1{1,n}
0 Kommentare
Weitere Antworten (1)
Mischa Kim
am 31 Jan. 2014
Bearbeitet: Mischa Kim
am 31 Jan. 2014
A1{1}(2,1)-A1{1}(1,1)
0 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!