addpathができない
10 views (last 30 days)
Show older comments
Macbookでaddpathをすると、フォルダから、データを読み取らないのですが、どうすればよろしいでしょうか。
addpath csvデータ;
これだと、csvデータフォルダの中にある必要なデータが抽出できないです。
よろしくお願いいたします。
Answers (1)
Hernia Baby
on 29 May 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 Comments
See Also
Categories
Find more on String Parsing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!