Challenge

Project - Data Handling and Interpolation

Project

clc; clear; close all;
hold on;
%Load data from xls file in matrix M
num = xlsread('VI.xlsx');
%splitting matrix num to V and I vectors
V = num(:,1);
I = num(:,2);
V2 = -17.3:0.1:0.9;
I2 = interp1(V,I,V2);
plot(V,I,'o',V2,I2,':.');
% open file
FID = fopen('[V2,I2]_output.txt', 'w');
% priting prime_numbers to file
format_set = '%i,%i\n';
fprintf(FID,format_set,[V2,I2]);

% close file
fclose('all');

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.