Edit box string to column value plotting
Mostra commenti meno recenti
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 Commenti
Adam Danz
il 19 Giu 2019
What problems are you having?
Could you provide an example of a string stored in handles. XCInput and YCInput?
Greg Morris
il 19 Giu 2019
What is this syntax supposed to do?:
str2num(handles.YCInput, 'string')
Greg Morris
il 19 Giu 2019
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Data Type Conversion in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!