Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic Matlab Command Window Question

Status
Not open for further replies.

QUBStudent

Computer
Joined
Apr 12, 2006
Messages
1
Location
GB
Hey guys,

I've hopefully got a problem that easy to solve. I'm using Matlab 7.2. I've a program that puts certain information into a 4-dimensional array.

Now when I used to type in the command window the array name, it'll print it all out like this (this is showing only first section. also shows arrayName(:,:,2&3&4) )

arrayName(:,:,1) =

Columns 1 through 5

1.0000 1.0000 1.0000 1.0000 1.0000

Columns 6 through 10

2.0000 2.0000

However now it is adding trailing zeros like this

arrayName(:,:,1) =

Columns 1 through 5

1.0000 1.0000 1.0000 1.0000 1.0000

Columns 6 through 10

2.0000 2.0000 0 0 0

I know it sounds stupid but its very important that they aren't there.

Can anyone help me out ? Is there a setting buried somewhere that will stop it outputting like this ?

Any advice and information appreciated,
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top