MATLAB Answers

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

7 views (last 30 days)
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

  0 Comments

Sign in to comment.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 7 Sep 2013
Edited: Azzi Abdelmalek on 7 Sep 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 Comments

Azzi Abdelmalek
Azzi Abdelmalek on 7 Sep 2013
save output out
%or
save('output','out')
Look at
doc save
doc load

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags