Read Excel and write output
古いコメントを表示
R = xlsread('Book1.xlsx') %% Excel sheet (Book1.xlsx) is in 'D' drive
A = 1; B = 2; C = 3;
Nu = A*p1 + B*p2 + C*p3;
I want Matlab to read Excel sheet, columns C, D, and E, then calculate Nu (column F) by the above formula and write the respective values in column F in that excel sheet automatically.
採用された回答
その他の回答 (1 件)
Image Analyst
2024 年 1 月 13 日
What is p1, p2, and p3? You might try
R = xlsread('Book1.xlsx') %% Excel sheet (Book1.xlsx) is in 'D' drive
A = R(:, 1);
B = R(:, 2);
C = R(:, 3);
Nu = A*p1 + B*p2 + C*p3;
3 件のコメント
MINATI PATRA
2024 年 1 月 13 日
Image Analyst
2024 年 1 月 14 日
You accepted Voss's answer so I guess you got it all figured out now.
MINATI PATRA
2024 年 1 月 15 日
カテゴリ
ヘルプ センター および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!