how to use load function??
Mostra commenti meno recenti
i want to load a file but the problem is i don't want to use syntax load 'kl.txt' i want to use load filename where filename is assigned value of'kl.txt' I require this so that i can use load in functions so that i can pass filename aas argument .
Risposta accettata
Più risposte (3)
Azzi Abdelmalek
il 18 Feb 2013
filename='yourfile'
load(filename)
Mark Whirdy
il 18 Feb 2013
Modificato: Mark Whirdy
il 18 Feb 2013
do you really want to use load with text files?
myfile = load([fileName,'.',fileExtension]); % load is for workspaces really
myfile = myfile.myfile;
1 Commento
Walter Roberson
il 22 Giu 2022
load() of text files is one of the fastest ways to read text data.
Upputholla divya teja
il 22 Giu 2022
0 voti
i want to load the sesor activity data(file name asset-v1_KPITedu+EDUTECIF1041+2019+type@asset+block@DATA123.xls).i am also tried but it shows error like error usig load.
1 Commento
Walter Roberson
il 22 Giu 2022
filename = 'asset-v1_KPITedu+EDUTECIF1041+2019+type@asset+block@DATA123.xls';
data = readtable(filename);
load() is not defined for xls files.
Categorie
Scopri di più su Environment and Settings in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!