Import filename while data import

4 次查看(过去 30 天)
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 个评论
NISARGA G K
NISARGA G K 2018-2-8
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

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by