Question

USING MATLAB SOFTWARE writing a script2) A file called hightemp.txt was created some time ago which stores, on every line, a year followed by the high temperatur

0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.

Please note there should be a file named hightemp.txt in your current diretory to run this program as mentioned in question.

clear all
clc
M=load('hightemp.txt');
M(:,1)=M(:,1)+1900;
[m,n]=size(M);
fid=fopen('Year2000.txt','w');
for i=1:m
for j=1:n
fprintf(fid,'%d\t',M(i,j));
end
fprintf(fid,'\n');
end
fclose(fid);
type 'Year2000.txt'

MATLAB R2018a - O X Pradeep do E C . Search Documentation + New G Open D Run Section 8 Save ох testcm x eulerSystem.m x ahk.

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
USING MATLAB SOFTWARE writing a script 2) A file called "hightemp.txt" was created some time ago...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT