Question
draw the flowchart in matlab for the following code: % Defining range of the values of the function x=(0:pi/100.0:2*pi); % Evaluate the function y1 and
draw the flowchart in matlab for the following code:
% Defining range of the values of the function
x=(0:pi/100.0:2*pi);
% Evaluate the function y1 and get the y vector which is f(x)
y = feval(@(x) pi*sin(2*x),x);
%plot the x,y with specified line style and colour
plot(x,y,LineStyle="-.",Color='m')
%start the hold to plot the another function on the same graph
hold on
% Evaluate the function y2 and get the y vector which is f(x)
y = feval(@(x) 3*cos(x/2),x);
%plot the x,y with specified line style and colour
plot(x,y,Color='k');
%stop the hold process
hold off
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started