help-octave
[Top][All Lists]
Advanced

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

Re: Help graphing SWR


From: Jason Martin
Subject: Re: Help graphing SWR
Date: Sun, 17 Jan 2010 19:50:07 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0

Bah.. sent the original response only to Joe.

So essentially it is because I am dumping the entire formula at once?

On 1/17/2010 7:35 PM, Joe Craig wrote:
You need to create the SWR function to calculate the swr element by element of x.  I'm not quite sure that I got it right, but ... something like this (and I hope that someone will correct my uneducated attempt at this):

function retswr = swr(x)

tt=tan( pi*x/2);
num = 25+j*35.36*tt;
den = 35.36+j*25*tt;
r = abs(num./den);

retswr = (1+r)./(1-r);

endfunction

Then you can do:


x = linspace (-10, 10, 500);
y = swr(x);
plot(x,y)



Joe



On Sun, Jan 17, 2010 at 6:09 PM, Jason Martin <address@hidden> wrote:
Søren,


    I changed it to 500, but a still yields a single value.

Jason

On 1/17/2010 5:57 PM, Søren Hauberg wrote:
> søn, 17 01 2010 kl. 17:42 -0500, skrev Jason Martin:
>
>> x=linspace(-10,10,1);
>>
> This line of code generates one point (the last argument is one). Try
> changing it to
>
>    x = linspace (-10, 10, 500);
>
> instead. That might make a difference.
>
> Søren
>
>
>
_______________________________________________
Help-octave mailing list
address@hidden
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave


reply via email to

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