Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK 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
Apr 12, 2006
1
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