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:
Convert matrix

Subject: Convert matrix

From: Martin Park

Date: 6 Oct, 2013 16:20:07

Message: 1 of 2

Can anyone help me to convert a matrix that is for instance:
0 1 2
3 4 5
6 7 8
called symbols obtained from an image to something that is in the following form symbols= {'0' '1' '2' '3' '4' '5' '6' '7' '8'}.

Subject: Convert matrix

From: james bejon

Date: 6 Oct, 2013 17:32:06

Message: 2 of 2

% e.g.,
N = ceil(rand(5)*20);
cellfun(@num2str, num2cell(N(:)), 'Uni', 0).'

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