help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Forming Cell of systems


From: Thomas D. Dean
Subject: Forming Cell of systems
Date: Sat, 13 Jun 2015 12:42:33 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

I am having problems forming a cell array of transfer functions. I believe the problem is in my lack of understanding cellfun.

In matlab, I would

A0 = 10;
b = 1 / A0;    % approximation for ab>>1
R1 = 10000;
R2 = R1 * (1/b - 1)
K = R1/(R1+R2);
C = [1:.2:3]*1e-12;
for n = 1:length(C)
    b_array(:,:,n) = tf([K*R2*C(n) K],[K*R2*C(n) 1]);
end

I want to create a cell array, so I tried

b_array=cellfun(@tf,{[K*R2*C K]},{[K*R2*C 1]})

This creates an array with one entry, when I wanted an array of 11 transfer functions.

Tom Dean



reply via email to

[Prev in Thread] Current Thread [Next in Thread]