Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
save matrices in notepad

Subject: save matrices in notepad

From: sk maidul haque

Date: 18 Jan, 2011 07:16:05

Message: 1 of 2

save('filename.dat', 'A', 'B', '-ascii') command in matlab saves the matrices A and B in a notepad named as filename. Can somebody please tell me what command should I use to save the matrices A and B in the notepad with it's individual name i.e.
A=matrix A
B=matrix B
Also, I want to know how to write any comment inside the notepad from matlab command page.
Is it possible to overwrite the content of an existing notepad by some new content ?
If anybody knows, kindly address to my queries. This can help me a lot.
Thanks in advance.

Subject: save matrices in notepad

From: ImageAnalyst

Date: 18 Jan, 2011 11:10:40

Message: 2 of 2

On Jan 18, 2:16 am, "sk maidul haque" <skmaidulha...@gmail.com>
wrote:
> save('filename.dat',  'A',   'B',    '-ascii')    command in matlab saves the matrices A and B in a notepad named as filename. Can somebody please tell me what command should I use to save the matrices A and B in the notepad with it's individual name i.e.
> A=matrix A
> B=matrix B
> Also, I want to know how to write any comment inside the notepad from matlab command page.
> Is it possible to overwrite the content of an existing notepad by some new content ?
> If anybody knows, kindly address to my queries. This can help me a lot.
> Thanks in advance.

-------------------------------------------------------
fprintf(), csvwrite(), or dlmwrite()

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us