how to find and replace corresponding matri
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
a1{:}
ans =
73.3333 50.0000
66.6667 50.0000
ans =
Empty matrix: 0-by-2
ans =
Empty matrix: 0-by-2
ans =
Empty matrix: 0-by-2
ans =
Empty matrix: 0-by-2
ans =
Empty matrix: 0-by-2
i need to find index for non zero cell array, and convert in into mat.
0 comentarios
Respuestas (3)
Azzi Abdelmalek
el 19 de Mayo de 2016
Editada: Azzi Abdelmalek
el 19 de Mayo de 2016
idx=celfun(@isempty,a1)
a1(idx)=[]
out=cell2mat(a1)
0 comentarios
Ver también
Categorías
Más información sobre Matrices and Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!