필터 지우기
필터 지우기

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일)
Solved

답변 (2개)

Harsha Priya Daggubati
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?

Harsha Priya Daggubati
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.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by