export 17*55*18 matrix mat file as a text file

1 Ansicht (letzte 30 Tage)
mohamad
mohamad am 17 Apr. 2014
Bearbeitet: Star Strider am 17 Apr. 2014
Hello Friends
I want to export 17*55*18 matrix 'surf.mat' file as a text file I used load surf.mat save('text.txt','surf','-ascii')
But it does not work and the following error appears
??? Error using ==> save Variable 'surf' not found.
in case that surf.mat file is in current directory
I would be appreciated if someone help me to solve this problem
I attached related file (surf.mat)
Regards

Akzeptierte Antwort

Star Strider
Star Strider am 17 Apr. 2014
Bearbeitet: Star Strider am 17 Apr. 2014
Be careful — ‘surf’ is the name of a built-in MATLAB function.
Name your matrix something else, and it will probably work.
  3 Kommentare
mohamad
mohamad am 17 Apr. 2014
If possible please check my file that attached
Star Strider
Star Strider am 17 Apr. 2014
Bearbeitet: Star Strider am 17 Apr. 2014
My pleasure!
The file wasn’t attached.
It would probably be more worthwhile for you to attach the section of your code that creates your matrix, as well as the save command. (If you post it here rather than attaching it, please format it with the [{}Code] radio button. That makes it significantly easier to read.)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by