addpathができない
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Macbookでaddpathをすると、フォルダから、データを読み取らないのですが、どうすればよろしいでしょうか。
addpath csvデータ;
これだと、csvデータフォルダの中にある必要なデータが抽出できないです。
よろしくお願いいたします。
1 Kommentar
Antworten (1)
Hernia Baby
am 29 Mai 2023
データを読むには読み込む関数が必要です。
tmpフォルダを作ります
mkdir('tmp')
ls
tを作り、tmpフォルダにtest.matという形で書き込みます
t = (1:5)';
save(fullfile(pwd,'tmp','test.mat'),'t')
パスを通します
addpath(fullfile(pwd,'tmp'))
ls
ワークスペースを空にしてパスを加えたフォルダ内のtest.matを読み込みます
clear
load('test.mat')
t
0 Kommentare
Siehe auch
Kategorien
Mehr zu String Parsing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!