Challenge

Project - Data Handling and Interpolation

PROJECT MATLAB CODE:-

[Storevalue] = readmatrix('VI_Volt_Amp') % ACCESSING EXCEL SHEET
V=Storevalue(:,1); %CALLING VOLT VALUES
I=Storevalue(:,2);  % CALLING CURRENT VALUES
figure(1)
plot(V,I,'r*') % Voltage & current graph without interpolation 
x=(-17.3:0.1:0.9);   %INTERPOLATION RANGE
Y=interp1(V,I,x); % Assign Variables to interpolation command
figure(2)
plot(Y,'r--');
grid;
fileID = fopen('VIsavtextfile.txt','W');  %saving file in text file
fprintf(fileID,'%8s %10s\n','V(volt)','I(mAmp)');
fprintf(fileID,'%f  %f\n',Y);
fclose(fileID);

RESULT:-

Save in text file name :- VIsavtextfile.txt

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.