How to run MATLAB executables on DOS ?

I would like to run an executable on DOS which generates a image file, but seems nothing comes out. The program is as follows :
A = rand(500);
imwrite(A, "Testing.png");
You may also refer to the attachment for reference !

3 Kommentare

Rik
Rik am 2 Okt. 2024
Do you get the results you expect when you run this from explorer? Do you see the splash screen?
Tik Ho
Tik Ho am 2 Okt. 2024
Verschoben: Bruno Luong am 2 Okt. 2024
Thanks ! I have tried it works now !
And may I ask can MTALAB code be run under Apache Server ?? If it can, then may I ask about the step ??
Aditya
Aditya am 2 Okt. 2024
[ status , cmdout ] = dos( command ) calls the operating system to execute the specified command and returns the output of the DOS command to cmdout .

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2024b

Gefragt:

am 2 Okt. 2024

Kommentiert:

am 2 Okt. 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by