Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: another symbolic expression problem
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Spab

Posts: 2
Registered: 12/11/04
another symbolic expression problem
Posted: Jul 19, 1996 1:03 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

hi!

I have another problem with the symbolic expression.

I tried to plot f(t) = t[ u(t) - u(t-2)] (while u(t) is the
unit step response.
Here is the function define u(t)

-------------------------
function f = Heaviside(t)

%HEAVISIDE Unit Step function
% f = Heaviside(t) returns a vector f the same size as
% the input vector, where each element of f is 1 if the
% corresponding element of t is greater than or equal to
% zero.

f = (t>=0) ;
---------------------------
Here is the script I wrote for plotting f(t) = t[ u(t) - u(t-2)]

t = -1:0.2:3;
a = Heaviside([-1:0.2:3]);
b = Heaviside([-2:0.2:2]);
ft =sym('t*(a-b)');
ezplot(ft,t)

This is the error I got

??? Error using ==> ezplot
Symbolic variable not uniquely determined



Can anyone tell me what's wrong?

Mukaya





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.