uigetfile関数の使い方について
28 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
全くのMATLAB初心者です。
[file,path]=uigetfile('*.csv')で、ローカルのcsvファイルを読み込んだ場合、
この読み込んだファイルをさらにxlsreadで読み込むためにはどうすれば良いでしょうか。
①uigetfileでローカルファイルの読み込み
②xlsreadで数値を読み込み
③plotで表示
上記の流れを想定しています。
素人質問で恐縮ですが、教えて頂けますと幸いです。
よろしくお願いします。
0 Kommentare
Akzeptierte Antwort
Hernia Baby
am 26 Jul. 2021
fullfileを使えば解決です。
[file,path]=uigetfile('.csv');
[num,~,~] = xlsread(fullfile(path,file));
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2 次元および 3 次元プロット 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!