Numerical Method LabA1
Numerical Method LabA1
Experiment Number: 01
Experiment Name :Introduction to Mathlab(PartA)
Date of Performance : 27-01-2024
Date of Submission : 05-02-2024
Remarks:
Page 1 of 5
❖ Write a MATLAB program that will divide the figure into 11 grids, take equal
number of variables. And plot them by using the program.
Page 2 of 5
❖ Take 3 different function and plot them into the same figure (The
function is of time (t).
clc;
clear all;
close all;
t = linspace(0, 2*pi, 100);
% Define three different functions
a = sin(t);
b = cos(t);
c = 0.5*sin(2*t);
plot(a);
hold on;
plot(b);
hold on;
plot(c);
hold on;
plot(a.^2);
Page 3 of 5
❖
clc;
clear all;
close all;
term1 = sind(225);
term2 = cotd(30);
term3 = atan(1/2);
term4 = 10 * exp(-10);
term5 = 9 * 10^(-2);
term6 = (log10(10))^3;
term7 = (log(10))^5;
disp(SUM);
❖
clc;
clear all;
close all;
z = sind(26);
x = cotd(62);
c = atan(6/2);
v = 6 * exp(-62);
b = 2* 10^(-2);
n = (log10(6))^ 26;
m = (log(62)) ^ 2;
result = z+x+c+v+b+n+m;
disp(result);
Page 4 of 5
Page 5 of 5