search for: nargin

Displaying 3 results from an estimated 3 matches for "nargin".

Did you mean: margin
2009 Nov 26
1
Does nargin and nargout work with R functions?
I am porting some MATLAB functions over to R and hopefully into a package, so I am curious if nargin and nargout work with R functions. Here is kind of an example of where I need to head in order to port "control-1.0.11" from Octave over to R. The Octave "control-1.0.11" package has the capability to produce bode plots of transfer functions. I hope to post this package once...
2017 Jan 24
3
Convertir programa Matlab a R sacado de Threshold Models of Collective Behavior de Michèle Lai & Yann Poltera
...and N2 divides C2 (optimal subgrids for an already existing % grid of size C1xC2 N) % gridsizes(N,C1,C2,1) returns [NaN;NaN] instead of an error message if the % fitting couldn't be found (used in the function N_from_d) sizes = NaN(2,1); s = sqrt(N); tol = 10?(-12); N2= ceil(s); N1 = N/N2; if(nargin 3) C1 = varargin{1}; C2 = varargin{2}; while(rem(C1,N1) > tol || rem(C2,N2) > tol || rem(N1,round(N1)) > tol) N2 = N2+1; N1 = N/N2; if(N2 > N) if(nargin 4 && varargin{3} == 1) 45 N1 = NaN; N2 = NaN; break; else error('Cannot find subgrid fitting to the given grid'); en...
2007 Mar 20
2
Translating code from R into Matlab code
Hi, Correct me if I am wrong but can I translate the R code into Matlab via this package. ie I have a script in R, if I run this package on a Unix emulator can I get the R code displayed in Matlab format ( R code changed into Matlab code). If that is possible that would be great and if so how. Also, If this program cannot do this do you know one that can do this: Regards, James Flood