MATLAB Answers

How can i draw the graph of this two functions using matlab

21 views (last 30 days)
PULAK Kumer
PULAK Kumer on 19 Dec 2020
  1 Comment
Rik
Rik on 19 Dec 2020
You can find guidelines for posting homework on this forum here. If you have trouble with Matlab basics you may consider doing the Onramp tutorial (which is provided for free by Mathworks).

Sign in to comment.

Answers (1)

Rafael Hernandez-Walls
Rafael Hernandez-Walls on 19 Dec 2020
when i have this like problem i use this code:
t=linspace(0,2*pi,50);
f=((t>0)&(t<=1)).*2+((t>1)&(t<=pi/2)).*0.5.*t.^2+((t>pi/2)).*cos(t);
plot(t,f)
  2 Comments

Sign in to comment.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by