Borrar filtros
Borrar filtros

How Extract a value into a cell?

1 visualización (últimos 30 días)
Francesco
Francesco el 31 de En. de 2014
Editada: Azzi Abdelmalek el 31 de En. de 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?

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 31 de En. de 2014
Editada: Azzi Abdelmalek el 31 de En. de 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}

Más respuestas (1)

Mischa Kim
Mischa Kim el 31 de En. de 2014
Editada: Mischa Kim el 31 de En. de 2014
A1{1}(2,1)-A1{1}(1,1)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by