Clear Filters
Clear Filters

Import filename while data import

4 views (last 30 days)
Jan Kielmann
Jan Kielmann on 4 Feb 2018
Commented: NISARGA G K on 8 Feb 2018
I want to get the name of the file that I picked in order to import the data to the workspace.
I import my data via the command "cmread" and select the file that I need. If "cmread" ist not able to load the data to the workspace and save the name of the file (for example to a different array) in one step, is there another matlab command to do so?
  1 Comment
NISARGA G K
NISARGA G K on 8 Feb 2018
Hi Jan,
I understand that, the data and file name have to be imported to workspace when you select the file.
However 'cmRead' does not seem to be a valid MATLAB command.
I hope the 'uigetfile' function would help you get expected functionality for which the link is given below.
https://www.mathworks.com/help/matlab/ref/uigetfile.html?searchHighlight=uigetfile&s_tid=doc_srchtitle

Sign in to comment.

Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!