<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
<MAN>
  <LANGUAGE>eng</LANGUAGE>
  <TITLE>sysconv</TITLE>
  <TYPE>Scilab Function</TYPE>
  <DATE>April 1993</DATE>
  <SHORT_DESCRIPTION name="sysconv"> system conversion</SHORT_DESCRIPTION>
  <CALLING_SEQUENCE>
    <CALLING_SEQUENCE_ITEM>[s1,s2]=sysconv(s1,s2)  </CALLING_SEQUENCE_ITEM>
  </CALLING_SEQUENCE>
  <PARAM>
    <PARAM_INDENT>
      <PARAM_ITEM>
        <PARAM_NAME>s1,s2</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: list (linear <VERB>syslin</VERB> systems)</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
    </PARAM_INDENT>
  </PARAM>
  <DESCRIPTION>
    <P>
    Converts <VERB>s1</VERB> and <VERB>s2</VERB> into common representation in order that
    system interconnexion operations can be applied. Utility function for
    experts. The conversion rules in given in the following table.
  </P>
    <DESCRIPTION_INDENT>
      <DESCRIPTION_ITEM label="&quot;c&quot;">
        <SP>: continuous time system</SP>
      </DESCRIPTION_ITEM>
      <DESCRIPTION_ITEM label="&quot;d&quot;">
        <SP>: discrete time system</SP>
      </DESCRIPTION_ITEM>
      <DESCRIPTION_ITEM label="n">
        <SP>: sampled system with sampling period n</SP>
      </DESCRIPTION_ITEM>
      <DESCRIPTION_ITEM label="[]">
        <SP>: system with undefined time domain  For mixed systems <VERB>s1</VERB> and <VERB>s2</VERB> are put in state-space representation.</SP>
      </DESCRIPTION_ITEM>
    </DESCRIPTION_INDENT>
    <VERBATIM>
<![CDATA[
 s1\s2|    "c"     |     "d"     |      n2        |     []     |
 ---------------------------------------------------------------
 "c"   | nothing    |uncompatible | c2e(s1,n2)     |  c(s2)     |
 ---------------------------------------------------------------
 "d"   |uncompatible| nothing     | e(s1,n2)       |  d(s2)     |
 ---------------------------------------------------------------
 n1    | c2e(s2,n1) | e(s2,n1)    | n1<>n2 uncomp  |  e(s2,n1)  |
       |            |             | n1=n2  nothing |            |
 ---------------------------------------------------------------
 []    | c(s1)      | d(s1)       | e(s1,n2)       |  nothing   |
 ---------------------------------------------------------------
   ]]>
    </VERBATIM>
    <P>
    With the following meaning:
  </P>
    <DESCRIPTION_INDENT>
      <DESCRIPTION_ITEM label="n1,n2">
        <SP>: sampling period</SP>
      </DESCRIPTION_ITEM>
      <DESCRIPTION_ITEM label="c2e(s,n)">
        <SP>: the continuous-time system s is transformed into a sampled system with sampling period n.</SP>
      </DESCRIPTION_ITEM>
      <DESCRIPTION_ITEM label="c(s)">
        <SP>: conversion to continuous (time domain is <VERB>&quot;c&quot;</VERB>)</SP>
      </DESCRIPTION_ITEM>
      <DESCRIPTION_ITEM label="d(s)">
        <SP>: conversion to discrete (time domain is <VERB>&quot;d&quot;</VERB>)</SP>
      </DESCRIPTION_ITEM>
      <DESCRIPTION_ITEM label="e(s,n)">
        <SP>: conversion to samples system with period <VERB>n</VERB></SP>
      </DESCRIPTION_ITEM>
    </DESCRIPTION_INDENT>
  </DESCRIPTION>
  <EXAMPLE>
<![CDATA[
s1=ssrand(1,1,2);
s2=ss2tf(s1);
[s1,s2]=sysconv(s1,s2);
 ]]>
  </EXAMPLE>
  <SEE_ALSO>
    <SEE_ALSO_ITEM>
      <LINK>syslin</LINK>
    </SEE_ALSO_ITEM>
    <SEE_ALSO_ITEM>
      <LINK>ss2tf</LINK>
    </SEE_ALSO_ITEM>
    <SEE_ALSO_ITEM>
      <LINK>tf2ss</LINK>
    </SEE_ALSO_ITEM>
  </SEE_ALSO>
</MAN>
