Azzera filtri
Azzera filtri

load syntax

1 visualizzazione (ultimi 30 giorni)
Hassan il 9 Giu 2011
I am using the following code to load a MAT file. It's not working. It works if I simply type Load 'C:\Data.mat' but if I use Load fname_ it wont work. Could you please tell me if I am missing anything in the code?
[FileName,PathName] = uigetfile('C:\Data.mat'); fname_=strcat(PathName,FileName); load -MAT fname_

Risposta accettata

Arnaud Miege
Arnaud Miege il 9 Giu 2011
Use the function syntax rather than the command syntax:
For more details on the function vs. command syntax, see the documentation.
  1 Commento
Hassan il 9 Giu 2011
thanks a lot Arnaud.

Accedi per commentare.

Più risposte (0)


Community Treasure Hunt

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

Start Hunting!

Translated by