Challenge

Project - Data Handling and Interpolation

VI = readxls('VI.xlsx');
V = VI(:,1);
I = VI(:,2);
%getting the voltage range for interpolation
Vrange = -17.3:0.1:0.9;
%interpolate the current for given voltage and plote the raw voltage v\s
%raw current ang given voltage v\s interpolated current.
Interpolated = interpl (V,I, Vrange,"spline");
VIinterpolated = [Vrange;Iinterpolated];
%writing the given voltage and interpolation current in atext file
fileID= fopen('VIinterpolated.txt','w');
fprintf(fileID,'%f, %f\n',VIinterpolated);
fclose(fileID);
plot(V,I,'ok');grid on; hold on;title('voltage v/s current');
xlable('Voltage (volts)');ylabel('current (Amps)');
plot(Vrange,Interpolated,'r-');
%Appending the interpolated data into the text file.
fileID = fopen('VIinterpolated.txt','a');
fprintf(fileID,'%f,%f\n',VIinterpolated);
fclose(fileID);
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.