how to use load function??
이전 댓글 표시
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 .
채택된 답변
추가 답변 (3개)
Azzi Abdelmalek
2013년 2월 18일
filename='yourfile'
load(filename)
Mark Whirdy
2013년 2월 18일
편집: Mark Whirdy
2013년 2월 18일
do you really want to use load with text files?
myfile = load([fileName,'.',fileExtension]); % load is for workspaces really
myfile = myfile.myfile;
댓글 수: 1
Walter Roberson
2022년 6월 22일
load() of text files is one of the fastest ways to read text data.
Upputholla divya teja
2022년 6월 22일
0 개 추천
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
Walter Roberson
2022년 6월 22일
filename = 'asset-v1_KPITedu+EDUTECIF1041+2019+type@asset+block@DATA123.xls';
data = readtable(filename);
load() is not defined for xls files.
카테고리
도움말 센터 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!