Combining cells into a single cell
53 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jonas Damsbo
el 28 de Dic. de 2018
Editada: Jonas Damsbo
el 29 de Dic. de 2018
Hi there
I have a variable called z in a 9x1 cell. See the picture:
Is ther anyway to combine the cells to one cell like 360<181x1080?
Because when I run my data, z{:} in my code, I got the error "Expected one output from a curly brace or dot indexing expression, but there were 9 results."
So I think I should combine my 9 cells to one so I have one result?
5 comentarios
Stephen23
el 29 de Dic. de 2018
Editada: Stephen23
el 29 de Dic. de 2018
If z is non-scalar (i.e. has zero or multiple cells) then this syntax will throw an error:
z{:}(:,ny:-1:1);
Do you have a question about the code that you showed us? I notice that the code you show does not use either of the answers that you have been given.
Respuesta aceptada
Ver también
Categorías
Más información sobre Matrix Indexing 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!