Challenge

Project - Data Handling and Interpolation

Project :- Data Handling and interpolation.

clc;
clear all;
close all;
data = readmatrix('VI (1).xlsx');
V=data(:,1);
I=data(:,2);
plot(V,I,'o')
xlabel('V')
ylabel('I')
X = (-17.3:0.1:0.9); %defining range of interpolation
vq = interp1(V,I,X); %using interpolation
hold on
plot(X,vq,"Blue")
fid = fopen('LAB_DATA.txt','w')
fprintf(fid,'%8s %10s\n','volt','current')
fprintf(fid,'%f %f\n',vq)
fclose(fid);
Result :-
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.