Challenge

Project - Data Handling and Interpolation

ans-

%import the VI file to matlab workspace;
p=xlsread('VI.xlsx','Sheet1','A2:B25');
v=p(:,1); %voltage
i=p(:,2); %current
plot(v,i,'rO','MarkerSize',8);
hold on;
grid on;
%interpolating current values
%inter
vi=(-17.3:0.1:0.9); %required voltage range
ii=spline(v,i,vi);
fileid = fopen('spline_values.txt','w'); % new text file
table=[vi;ii];
fprintf(fileid,'%f, %f.n',table);

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.