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:
change number of characters written on screen in cell array

Subject: change number of characters written on screen in cell array

From: Michael

Date: 8 Jul, 2009 21:19:04

Message: 1 of 2

Hi,

Does anyone know a change the number of characters printed in charater
array,
which is part of cell array, such as here in C:

C =

             [1x25 char] [ 6] { 6x1 cell}
             [1x26 char] [18] {18x1 cell}
    'My cell string #3' [ 2] { 2x1 cell}
    'My cell string #4' [23] {23x1 cell}

I'd like Matlab to write the first rows in column 1 and 2 on the
screen.
Thanks,
-Michael

Subject: change number of characters written on screen in cell array

From: Matt Fig

Date: 8 Jul, 2009 22:38:01

Message: 2 of 2

Use celldisp, or if you need it to look like the array use fprintf.

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