Results 1 to 3 of 3

Math Help - Arbitrary Symbols in MATLAB

  1. #1
    Member
    Joined
    Jan 2010
    Posts
    133

    Arbitrary Symbols in MATLAB

    Hello Everyone!

    I've doing some MATLAB recently, specifically in signal analysis applications specifically transfer functions.
    I'm using the tf function as follows:
    Code:
    tf('s');
    H = (s+1)/(s^2+2*s+2);
    Now this is working fine, what if I want to use arbitrary constants like we do in dsolve function. What do we do then?
    I essentially want to add transfer functions like:
    Code:
    H1 = (s+1)/(s^2+2*s+2);
    H2 = (a*s+b)/(s^2+2*s+2); % a and b are arbitrary constants
    H = H1 + H2
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by rebghb View Post
    Hello Everyone!

    I've doing some MATLAB recently, specifically in signal analysis applications specifically transfer functions.
    I'm using the tf function as follows:
    Code:
    tf('s');
    H = (s+1)/(s^2+2*s+2);
    Now this is working fine, what if I want to use arbitrary constants like we do in dsolve function. What do we do then?
    I essentially want to add transfer functions like:
    Code:
    H1 = (s+1)/(s^2+2*s+2);
    H2 = (a*s+b)/(s^2+2*s+2); % a and b are arbitrary constants
    H = H1 + H2
    What happens when you type the above at the console?

    (I would expect them to default to symbolic objects, if they don't try declaring them as such)

    CB
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Member
    Joined
    Jan 2010
    Posts
    133
    Exactly! How do I declare them as such?
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Events in a row within some arbitrary n.
    Posted in the Statistics Forum
    Replies: 3
    Last Post: June 10th 2011, 05:12 PM
  2. Replies: 0
    Last Post: March 15th 2010, 08:49 AM
  3. Arbitrary Unions
    Posted in the Discrete Math Forum
    Replies: 9
    Last Post: October 15th 2008, 12:57 PM
  4. Arbitrary powers
    Posted in the Calculus Forum
    Replies: 6
    Last Post: December 8th 2007, 02:20 PM
  5. Arbitrary vector
    Posted in the Calculus Forum
    Replies: 1
    Last Post: November 26th 2007, 03:41 PM

Search Tags


/mathhelpforum @mathhelpforum