Plotting Fourier Functions in Matlab - Help?

Click For Summary
SUMMARY

The discussion focuses on plotting Laplace functions in Matlab, specifically the piecewise function defined as f(t) = 2t for 0 ≤ t < 2 and f(t) = t² - 3 for 2 ≤ t ≤ 4. The user seeks guidance on how to visualize this function using Matlab, expressing confusion over the implementation of step functions and t-shifting. The conversation highlights the need for clear instructions on plotting piecewise functions in Matlab.

PREREQUISITES
  • Understanding of piecewise functions
  • Familiarity with Matlab syntax and plotting functions
  • Basic knowledge of function definitions and intervals
  • Experience with Matlab's plotting tools, such as plot() and hold on
NEXT STEPS
  • Research how to implement piecewise functions in Matlab using the 'heaviside' function
  • Learn about Matlab's 'plot' function for visualizing mathematical functions
  • Explore the use of 'hold on' and 'hold off' commands for multiple plots
  • Investigate the concept of t-shifting in Matlab for function manipulation
USEFUL FOR

Students, educators, and professionals in mathematics or engineering fields who require assistance with plotting mathematical functions in Matlab, particularly those dealing with piecewise definitions.

chief10
Messages
78
Reaction score
0
Plotting Laplace Functions in Matlab - Help?

SORRY I MEANT LAPLACE FUNCTIONS

Homework Statement



so we have a function

f(t) =
|2t, 0≤ t < 2
|(t^2)-3, 2≤t

how would you plot this over 0≤ t ≤4 in Matlab?


Homework Equations



-

The Attempt at a Solution



I guess you could work out the step functions or even employ t-shifting but that still leaves me with no idea on how to plot this thing in Matlab, I've read the notation on the mathwork site but I'm just stumped.

Any ideas guys and girls?

-chief10
 
Last edited:
Physics news on Phys.org
could somebody delete this thread..
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
3
Views
2K
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K