i want to create an excel sheet for A=14/(cos(b))^3,where b varies from 8 to 25(i.e 8,9 ....,25). How to write a programme ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Rahil Sonkusare
am 11 Sep. 2016
Bearbeitet: Guillaume
am 11 Sep. 2016
i want to create an excel sheet for A=14/(cos(b))^3,where b varies from 8 to 25(i.e 8,9 ....,25). How to write a programme ?
2 Kommentare
Guillaume
am 11 Sep. 2016
while it's not hard to do in matlab, it's trivial to do in excel. Since you want the result in excel, why don't you do it directly there?
Akzeptierte Antwort
taher azim
am 11 Sep. 2016
this will be ur program
function surfer()
m=zeros(18,1)
for b=8:1:25
A=14/(cos(b))^3;
m((b-8)+1,1)=[a];
end
%create a blank excelsheet in ur matlab directory with a proper filename%
filename = 'filename.xlsx';
xlswrite(filename,m);
end
%to design ur output in excel refer to matlab help section and type xlswrite.%
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Spreadsheets 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!