help-octave
[Top][All Lists]
Advanced

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

Re: Question


From: Kaushal Kishore
Subject: Re: Question
Date: Wed, 1 Nov 2017 10:01:37 +0530

Thank you...

On 31 October 2017 at 19:55, Doug Stewart <address@hidden> wrote:


On Tue, Oct 31, 2017 at 8:49 AM, Kaushal Kishore <address@hidden> wrote:
> Sir, I am getting this type of output:
>
>
> /*Transfer function 's' from input 'u1' to output ...
>
>  y1:  s
>
> Continuous-time model.
> error: @s: no function and no method found
> error: called from
>     buck_outer_again at line 7 column 3
> error: evaluating argument list element number 1
> error: called from
>     buck_outer_again at line 7 column 3*/


This is the program:


% % Buck Outer loop... User should enter values...
clear all;
close all;
clc;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 s = tf('s');
% s = poly(0,'s');
% G = syslin("c",(((-7.192924e-8*(s^2))+(-195.7839e-12*s)+12.756e-6)/(((30.12163e-9)*(s^2))+(2.50e-3*s)+1)));
 G = @(s)((-7.192924e-8*(s^2))+(-195.7839e-12*s)+12.756e-6) / (((30.12163e-9)*(s^2))+(2.50e-3*s)+1)

 bode(G(2*pi*s), '+')
 set (findobj (gcf, "type", "axes"), "nextplot", "add")
 xlabel('Frequency [1/s]')
% C = syslin("c",((((11.2193e5)*(2.75e-8)*(s^2))+((11.2193e5)*(2.511e-3)*s)+11.2193e5) / (0.075*(s^2)+s)));
 C = @(s)(((11.2193e5)*(2.75e-8)*(s^2))+((11.2193e5)*(2.511e-3)*s)+11.2193e5) / (0.075*(s^2)+s)
 bode(C(2*pi*s), '*', 'color', 'green')
   
 GH = G*C
% GH = sysmult(G,C)
%[GMgh, PMgh, w_pcgh, w_gcgh] = margin(GH)
 bode(GH(2*pi*s), 'o', 'color', 'red')
 
 grid on






Is this what you want?

% % Buck Outer loop... User should enter values...
clear all;
close all;
clc;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 s = tf('s');
% s = poly(0,'s');
% G = syslin("c",(((-7.192924e-8*(s^2))+(-195.7839e-12*s)+12.756e-6)/(((30.12163e-9)*(s^2))+(2.50e-3*s)+1)));
 G = ((-7.192924e-8*(s^2))+(-195.7839e-12*s)+12.756e-6) / (((30.12163e-9)*(s^2))+(2.50e-3*s)+1)
bode(G)
 #bode(G(2*pi*s), '+')
 set (findobj (gcf, "type", "axes"), "nextplot", "add")
 xlabel('Frequency [1/s]')
% C = syslin("c",((((11.2193e5)*(2.75e-8)*(s^2))+((11.2193e5)*(2.511e-3)*s)+11.2193e5) / (0.075*(s^2)+s)));
 C = (((11.2193e5)*(2.75e-8)*(s^2))+((11.2193e5)*(2.511e-3)*s)+11.2193e5) / (0.075*(s^2)+s)
 #bode(C(2*pi*s), '*', 'color', 'green')
 bode(C)  
 GH = G*C
% GH = sysmult(G,C)
%[GMgh, PMgh, w_pcgh, w_gcgh] = margin(GH)
 bode(GH, 'o', 'color', 'red')
 
 grid on

--
DAS




--
Thanking you.

With best compliments from:
KAUSHAL KISHORE TIWARI

reply via email to

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