please help to make a matlab gui
1 view (last 30 days)
Show older comments
i need to make this gui but i cant get the call back correctly i need to generate this program using a push button,,, clear all; clc; while(1) A=0; AAAAAAX = [A A A A A A A]; j=7; display('Press 1 for XXXXXXX') display('Press 2 for AAAAAAX') display('Press 3 for XAAAAAA') select1 = input('waiting for user : '); if select1==1 for A=0:1:10 for x=0:1:9
display(AAAAAAX);
end
AAAAAAX(1)=(A);
AAAAAAX(2)=(A);
AAAAAAX(3)=(A);
AAAAAAX(4)=(A);
AAAAAAX(5)=(A);
AAAAAAX(6)=(A);
AAAAAAX(7)=(A);
end
end
if select1==2 for A=0:1:10 for x=0:1:9 AAAAAAX(7)=[x]; display(AAAAAAX); end AAAAAAX(1)=(A); AAAAAAX(2)=(A); AAAAAAX(3)=(A); AAAAAAX(4)=(A); AAAAAAX(5)=(A); AAAAAAX(6)=(A); end end
if select1==3 for A=0:1:10 for x=0:1:9 AAAAAAX(1)=(x); display(AAAAAAX); end AAAAAAX(2)=(A); AAAAAAX(3)=(A); AAAAAAX(4)=(A); AAAAAAX(5)=(A); AAAAAAX(6)=(A); AAAAAAX(7)=(A); end
end end ------------
results on a list to be seen a box. and result is generated using a input which is also in the gui.
3 Comments
Stephen23
on 1 Oct 2014
Edited: Stephen23
on 1 Oct 2014
It seems like this could be solved, but really that code is difficult to follow. Please edit your question and use the text formatting commands to display the code clearly (you will find these commands above the text edit box). Include the full code that you are using (if this is too long, then attach it using the paperclip tool).
Provide an exact description of the error or behavior you are getting.
Image Analyst
on 1 Oct 2014
Might look at it after you look at this: http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup
Answers (0)
See Also
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!