Split a tfdata cell

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Split a tfdata cell

rwensley
Greetings,

tfdata returns the num and den of the sys.

in this case num ={ [1,1] = -0.0036918   0.0173537}

How do I access the individual elements of the cell?
num(1), num{1} return ={ [1,1] = -0.0036918   0.0173537}
num(2) num{2} return and error.

Thank you for the help.

Ron

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Split a tfdata cell

Doug Stewart-4


On Thu, Jun 29, 2017 at 1:48 PM, rwensley <[hidden email]> wrote:
Greetings,

tfdata returns the num and den of the sys.

in this case num ={ [1,1] = -0.0036918   0.0173537}

How do I access the individual elements of the cell?
num(1), num{1} return ={ [1,1] = -0.0036918   0.0173537}
num(2) num{2} return and error.

Thank you for the help.

Ron




do you want this?
[n,d]=tfdata(sys,'v')
n =

   1   2

d =

   6   2   7


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Split a tfdata cell

rwensley
Doug,

Yep that's what I want.  I was not reading the doc file properly and did not understand that this would work.

Thank you for the help.

Ron
Loading...