addpathができない
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Macbookでaddpathをすると、フォルダから、データを読み取らないのですが、どうすればよろしいでしょうか。
addpath csvデータ;
これだと、csvデータフォルダの中にある必要なデータが抽出できないです。
よろしくお願いいたします。
1 comentario
Respuestas (1)
Hernia Baby
el 29 de Mayo de 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 comentarios
Ver también
Categorías
Más información sobre String Parsing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!