Azzera filtri
Azzera filtri

Import filename while data import

4 visualizzazioni (ultimi 30 giorni)
Jan Kielmann
Jan Kielmann il 4 Feb 2018
Commentato: NISARGA G K il 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 Commento
NISARGA G K
NISARGA G K il 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

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by