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

matlab to exe ""input function not work""

Asked by mangood UK on 19 Jan 2013

hi i had watch this video on yotu to learn how to convert my code to exe

http://www.youtube.com/watch?v=Ke599czEmxU

my code is

xv = input('Please dr. enter the values of x ponits : ' );

yv = input('Please dr. enter the values of y ponits : ' );

patch(xv,yv,'y');

ylim([-5, 12]); xlim([0, 12]); grid on;

but the problem is when i excute my exe i only get empty plot the function input is not work??? how can i solve this

thank in advance best regards m.s

0 Comments

mangood UK

Tags

Products

2 Answers

Answer by Azzi Abdelmalek on 19 Jan 2013
Edited by Azzi Abdelmalek on 19 Jan 2013
Accepted answer

Use inputdlg function

0 Comments

Azzi Abdelmalek
Answer by Walter Roberson on 19 Jan 2013

Generate the program as having a console window. If you generate it without a console window, there is no-where for the user to input the values.

0 Comments

Walter Roberson

Contact us