필터 지우기
필터 지우기

How do you load a .txt file into your workspace filled with only numbers from a push button?

조회 수: 1 (최근 30일)
I've been using Uigetfile but I cant seem to get the data into the workspace.
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2016년 3월 31일
Nicholas - uigetfile will get the filename (and path). You would need to use (for example) csvread to read the data into a variable.

댓글을 달려면 로그인하십시오.

답변 (1개)

Dave Behera
Dave Behera 2016년 4월 4일
You can load a file from a GUI with multiple options. As Geoff mentioned above, use uigetfile to select your file and then use textscan, csvread,xlsread, etc to read it based on the type of file it is.
For loading .mat file, you can use uiopen directly to load all variables inside it: http://www.mathworks.com/help/matlab/ref/uiopen.html

카테고리

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