Path: news.mathworks.com!not-for-mail
From: "Daniel " <danielpr228@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Variable in a transfer function
Date: Thu, 10 Oct 2013 00:58:06 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 27
Message-ID: <l34u2u$39s$1@newscl01ah.mathworks.com>
Reply-To: "Daniel " <danielpr228@gmail.com>
NNTP-Posting-Host: rubyext-03-ls.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1381366686 3388 172.20.102.179 (10 Oct 2013 00:58:06 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 10 Oct 2013 00:58:06 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 4625400
Xref: news.mathworks.com comp.soft-sys.matlab:803568

Hey guys, 

I'm very new to MATLAB and don't have a lot of programming experience, so keep that in mind while answering questions.

I have a system that I'm trying to produce in terms of variable 'p' :
clear all;
global p;
sys1=tf([10],[1,0]);
sys2=tf([1],[1,p]);
sys3=series(sys1,sys2);
tf=feedback(sys3,1)

What I would like to have displayed is this:

 tf =
        10
  ---------------
  s^2 + p s + 10

Instead, I get:
sys4 =
 
    10
  ------
  s + 10
 
Does anyone have a solution to this?