clc
clear all
close all
% Excerice 1 :
fprintf('---------------------\n');
fprintf('Excerice 1 Solution : \n');
fprintf('---------------------\n');
dist_mi = input('enter distance in miles : ');
dist_km = excercise1(dist_mi); ?lling excercise1 function file
% Excerice 2 :
fprintf('---------------------\n');
fprintf('Excerice 2 Solution : \n');
fprintf('---------------------\n');
numbers = input('enter N numbers separated by space in b/w [ ] : ');
[mn, sd] = excercise2(numbers); ?lling excercise2 function file
% Excerice 3 :
fprintf('---------------------\n');
fprintf('Excerice 3 Solution : \n');
fprintf('---------------------\n');
excercise3 ?lling excercise3 script file
% Excerice 4 :
fprintf('---------------------\n');
fprintf('Excerice 4 Solution : \n');
fprintf('---------------------\n');
syms x y z
eqn1 = x + y - z == -1;
eqn2 = 2*x - 2*y + 3*z == 2;
eqn3 = -2*x + y - 2*z == -4;
[x, y, z] = excercise4(eqn1, eqn2, eqn3); ?lling excercise4 function file
% Excerice 5 :
fprintf('---------------------\n');
fprintf('Excerice 5 Solution : \n');
fprintf('---------------------\n');
excercise5 ?lling excercise3 script file