how to save a matrix that contains NaN, strings and numbers

2 visualizaciones (últimos 30 días)
Dear all,
I want to save a matrix 'out' that contains NaN, strings and numbers
I tried
save out
but did not work. Any ideas?
Thanks in advance

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 7 de Sept. de 2013
Editada: Azzi Abdelmalek el 7 de Sept. de 2013
out={10 20 nan 'str' [1 2] [1 0;2 4]}
You can save your data in a mat file:
save filename out
  3 comentarios
antonet
antonet el 7 de Sept. de 2013
so you mean
save 'output.mat' out;
Azzi Abdelmalek
Azzi Abdelmalek el 7 de Sept. de 2013
Editada: Azzi Abdelmalek el 7 de Sept. de 2013
save output out
%or
save('output','out')
Look at
doc save
doc load

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical 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