Challenge

Project - Data Handling and Interpolation

Project : Data handling and interpolation

program :

data = xlsread('VI.xlsx');
voltage = data(:,1);
current = data(:,2);
new_voltage = -17.3:0.1:0.9;
new_current = interp1(voltage, current, new_voltage);
figure;
plot(new_voltage, new_current);
xlabel('Voltage');
ylabel('Current');
title('Interpolated VI Data');
fileID = fopen('interpolated_data.txt','w');
fprintf(fileID,'%12s %12s\r\n','Voltage','Current');
for i = 1:length(new_voltage)
    fprintf(fileID,'%12.2f %12.2f\r\n',new_voltage(i),new_current(i));
end
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.