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일

0 개 추천

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일

0 개 추천

A1{1}(2,1)-A1{1}(1,1)

카테고리

도움말 센터File Exchange에서 Simscape Electrical에 대해 자세히 알아보기

태그

질문:

2014년 1월 31일

편집:

2014년 1월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by