Beruflich Dokumente
Kultur Dokumente
Learning Objectives
Approach
The MATLAB code shall be imported in the m-file and simulated. It will generate the plots and
patterns of various dimensions. The parameters shall be varied accordingly in order to develop
Program Description
The program will use the various built in MATLAB functions like zeros in order to generate
various patterns. It will also use different trigonometric functions and develop the visualization
Source Code
plot(x,y,'g',x2,y2,'r');
% create a basic array of points in a circle
angle=[0:0.05:2*pi];
radius=40;
x=cos(angle)*radius;
y=sin(angle)*radius;
%Doodle 6
t = 0:0.02:2*pi;
r = abs(sin(t).*cos(t));
figure
polarplot(t, abs(sin(2*t).*cos(2*t)))
title('abs(sin(t)*cos(t))')
Results
60
50
40
30
20
10
0
0 10 20 30 40 50 60
Conclusion
This lab helped me in getting hands on practice of generating useful MATLAB plots. Using the
code listed provided me a chance of generating plots and improvising adjustments in code. In
this way I was able to learn more about MATLAB plotting power.