Insert blank cells in a matrix
42 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Emilio Pulli
el 30 de Nov. de 2021
Comentada: Walter Roberson
el 2 de Dic. de 2021
How can I replace all the NaN values of a matrix with a blank space?
0 comentarios
Respuesta aceptada
Walter Roberson
el 30 de Nov. de 2021
You cannot do that. Numeric matrices cannot have spaces in them.
You can convert the matrix into a cell array and put spaces into the cell array... but it is not clear why you would do that.
myCell = num2cell(MyMatrix);
myCell(isnan(MyMatrix)) = {' '}; %nan -> space
Now what?
12 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical 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!