Edit box string to column value plotting
이전 댓글 표시
Im attempting to use edit boxes in a GUI as away to destinguish what columns a plot command recognizes as a plot
numdata=xlsread(uigetfile({'.xlsx'},'File Selector'));
x=numdata(:,str2num(handles.XCInput, 'string'));
y=numdata(:,str2num(handles.YCInput, 'string'));
plot (x,y)
XCInput and YCInput are the tags for the chosen text edits
댓글 수: 4
Adam Danz
2019년 6월 19일
What problems are you having?
Could you provide an example of a string stored in handles. XCInput and YCInput?
Greg Morris
2019년 6월 19일
What is this syntax supposed to do?:
str2num(handles.YCInput, 'string')
Greg Morris
2019년 6월 19일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!