How can I select 2 columns from each option of a pop menu when I press the load button from a .csv file
3 次查看(过去 30 天)
显示 更早的评论
回答(2 个)
Harsha Priya Daggubati
2019-8-12
Can you elaborate your concern.As far as I understand your GUI has one pushbutton and a pop menu with 10 options. What exactly do you want to do when a push button is clicked?
0 个评论
Harsha Priya Daggubati
2019-8-13
Hi,
You can read a column from a ‘.csv file’ using readmatrixfunction in MATLAB. Refer to this documentation link for more detail:
For Example, this code reads the 1st column of data with 4 rows
readmatrix('csvfilename.csv','Range',[1,1,4,1]);
You can add the code in ValueChangedFcn Callback of Pop-up menu.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!