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:
Newbie...

Subject: Newbie...

From: Atul.

Date: 12 Mar, 2009 21:16:03

Message: 1 of 3

Hi,

I am a Newbie with Matlab. I am keying in some commands at command
prompt that loads a .dat file and then I convert the data to a sparse
matrix using "spconvert" function.

sparse_matrix=spconvert(data)

this just starts printing the whole matrix up on the command line, how
do I avoid this? I am using the command line mode from a workstation
using ssh connection.

I tried searching the FAQ but did not find anything on this, hence a
post here.

Regards,
Atul.

Subject: Newbie...

From: dpb

Date: 12 Mar, 2009 21:24:01

Message: 2 of 3

Atul. wrote:
...
> sparse_matrix=spconvert(data)
>
> this just starts printing the whole matrix ...

Yeah, it's not necessarily easy to find out how to find some of the
simplest basics at the beginning. The problem w/ descriptive
documentation--what seems natural to the writer isn't necessarily the
information the new user needs...

Try

doc punct

specifically (altho I admit there's no way you would know that)

The specific answer is put a semicolon at the end of the command line to
suppress output.

I presume this is probably in the section on M-file programming if not
elsewhere, but didn't see it in the interface introductory section where
one would think it should be.

--

Subject: Newbie...

From: Atul.

Date: 12 Mar, 2009 21:31:35

Message: 3 of 3

> The specific answer is put a semicolon at the end of the command line to
> suppress output.

Thanks! that was helpful and simple, I should have thought of it.

Atul.

Tags for this Thread

No tags are associated with 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