MATLAB function

  • MATLAB
  • Thread starter sofy
  • Start date
  • #1
1
0
Hello!

I want to plot this function on MATLAB:

f(t)=1 si 0<=t<=1
f(t)=0 otherwise

Please help me! How to do it????
I tried so much things it doesn't work!!!
 

Answers and Replies

  • #2
35,028
6,774
Hello!

I want to plot this function on MATLAB:

f(t)=1 si 0<=t<=1
f(t)=0 otherwise

Please help me! How to do it????
I tried so much things it doesn't work!!!

Look up the Heaviside function in the Matlab documentation.
 

Related Threads on MATLAB function

  • Last Post
Replies
2
Views
3K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
2
Views
6K
  • Last Post
Replies
2
Views
5K
  • Last Post
Replies
0
Views
12K
  • Last Post
Replies
3
Views
3K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
9
Views
916
  • Last Post
Replies
3
Views
11K
  • Last Post
Replies
3
Views
2K
Top