Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Function using load command to load two monthly data files that are both .csv format

6 ビュー (過去 30 日間)
Stargazer
Stargazer 2018 年 6 月 19 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi there. I need to write a Function using load command to load two monthly data files that are both .csv format
I need to use the function [data1,data2]=loadtemps(file1,file2).
Im not sure how these will need to be called?

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 6 月 19 日
function [data1,data2]=loadtemps(file1,file2)
data1 = xlsread(file1);
data2 = xlsread(file2);
Which would be invoked like,
[first_data, second_data] = loadtemps('Starr.csv', 'Jagger.csv');
  3 件のコメント
Walter Roberson
Walter Roberson 2018 年 6 月 20 日
What you would invoke in the command window would be a line similar to what I showed,
[first_data, second_data] = loadtemps('Starr.csv', 'Jagger.csv');
If all went well, then the data would get stored in first_data and second_data
Stargazer
Stargazer 2018 年 6 月 20 日
All went well. :-)
Many thanks

この質問は閉じられています。

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by