addpathができない
Show older comments
Macbookでaddpathをすると、フォルダから、データを読み取らないのですが、どうすればよろしいでしょうか。
addpath csvデータ;
これだと、csvデータフォルダの中にある必要なデータが抽出できないです。
よろしくお願いいたします。
1 Comment
Kojiro Saito
on 29 May 2023
ご質問はaddpathでCSVファイルが読み取れないということでしょうか?
Answers (1)
データを読むには読み込む関数が必要です。
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
Categories
Find more on 検索パス 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!