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

New to MATLAB?

Thread Subject:
Sprintf and Matrix

Subject: Sprintf and Matrix

From: Jerome

Date: 4 Dec, 2012 15:31:07

Message: 1 of 1

I am trying to pass my matrix variable from MATLAB to python. Is there a way to do it without using for loops? In the example, the first element is passed but not corresponding values

For example
A = magic(5);
[str,err] = sprintf('/usr/local/python %d', A);

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