File: %25r_size.sci

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (16 lines) | stat: -rw-r--r-- 319 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function [m,n,nx]=%r_size(x,flag)
// only to be called by size function for dynamical systems 
//!
// Copyright INRIA
[lhs,rhs]=argn(0)
x1=x(1);
if lhs==1 then 
  if rhs==1 then
    m=size(x('num'));
  else
    m=size(x('num'),flag);
  end
elseif lhs==2 then 
  if rhs<>1 then error(41),end
  [m,n]=size(x('num'));
end