<scilab:image>
h = syslin(0.1,0.04798*%z+0.0464,%z^2-1.81*%z+0.9048);
[g ,fr]=g_margin(h);
+ warning("off")
show_margins(h)
+ warning("on")
</scilab:image>
</refsection>
<refsection role="see also">
function str=formatEvansTip(curve,pt,index)
//this function is called by the datatip mechanism to format the tip
//string for the evans root loci curves
- ud=datatipGetStruct(curve);
+ ud=curve.datatips;
if index<>[] then
K=ud.K(index)
else //interpolated
3 4 5 6
4 5 6 7];
- x=[5 6 7 8]
+ x=[5 6 7 8];
+ warning("off")
plot(x,t);
+ warning("on")
plot(x',t);
</scilab:image>
<programlisting role="example"><![CDATA[
3 4 5 6
4 5 6 7];
-// Only one matching possibility case : how to make 4 identical plots in 4 manners...
+// Only one matching possibility case: how to make 4 identical plots in 4 manners...
// x is 1x4 (vector) and y is 4x5 (non square matrix)
subplot(221);
plot(x,[t [8;9;10;12]]');
// Only one matching possibility case : how to make 4 identical plots in 4 manners...
// x is 1x4 (vector) and y is 4x5 (non square matrix)
+ warning("off")
subplot(221);
plot(x,[t [8;9;10;12]]');
subplot(222);
plot(x,[t [8;9;10;12]]');
subplot(224);
plot(x',[t [8;9;10;12]]');
+ warning("on")
</scilab:image>
<programlisting role="example"><![CDATA[
clf()
// Case where only x or y is a square matrix
//x : matrix (t) and y : vector ([1 2 3 4])
plot(t,[1 2 3 4]') // equivalent to plot(t,[1 1 1 1;2 2 2 2;3 3 3 3;4 4 4 4])
+ warning("off")
plot(t,[1;2;3;4]') // the same plot, but here Y needs to be transposed
+ warning("on")
</scilab:image>
<programlisting role="example"><![CDATA[
t=[1 1 1 1
cols = 1:4;
// cols is transposed : notice the priority given to the columns treatment
+ warning("off")
plot(t',cols) // equivalent to plot(t',[1 1 1 1;2 2 2 2;3 3 3 3;4 4 4 4])
+ warning("on")
plot(t',cols') // the same plot
</scilab:image>
<programlisting role="example"><![CDATA[
z=eval3d(milk_drop,x,y);
plot3d(x,y,z)
]]></programlisting>
- <scilab:image>x=-2:0.1:2;
+ <scilab:image>
+ warning("off")
+ x=-2:0.1:2;
y=x;
z=eval3d(milk_drop,x,y);
plot3d(x,y,z)
+ warning("on")
</scilab:image>
</refsection>
<refsection role="see also">
<?xml version="1.0" encoding="UTF-8"?>
<!--
* Copyright (C) INRIA - Serge Steer Serge.Steer@inria.fr
- *
+ *
* This file must be used under the terms of the CeCILL.
* This source file is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
- * are also available at
+ * are also available at
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
-->
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en_US" xml:id="datatipGetStruct">
<term>curve_handle</term>
<listitem>
<para>
- A handle on a polyline.
+ A handle on a polyline.
</para>
</listitem>
</varlistentry>
e=gce();p=e.children(1);//get the handle on the polyline
datatipCreate(p,50);
datatipCreate(p,20);
+ warning("off")
datatips_struct=datatipGetStruct(p)
+ warning("on")
</scilab:image>
</refsection>
<refsection>
</refsection>
<refsection>
<title>Exemples</title>
- <programlisting role="example"><![CDATA[
+ <programlisting role="example"><![CDATA[
x=-2:0.1:2; y=x;
z=eval3d(milk_drop,x,y);
plot3d(x,y,z)
]]></programlisting>
- <scilab:image>x=-2:0.1:2;
+ <scilab:image>
+ warning("off")
+ x=-2:0.1:2;
y=x;
z=eval3d(milk_drop,x,y);
plot3d(x,y,z)
+ warning("on")
</scilab:image>
-
</refsection>
<refsection role="see also">
<title>Voir aussi</title>
error(msprintf(_("%s: Wrong type for input argument #%d: A ''%s'' handle expected.\n"),"datatipInitStruct",1,"Polyline"))
end
ok=%t;
- ud=datatipGetStruct(curve_handle);
+ ud=curve_handle.datatips;
if typeof(ud)<>"datatips" then
//Create structure and set default values
ud=tlist(["datatips","style","interpolate","replace", "formatfunction", "tips","selected"],..
<!--
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2011 - DIGITEO - Michael Baudin
- *
+ *
* This file must be used under the terms of the CeCILL.
* This source file is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
- * are also available at
+ * are also available at
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
*
-->
<refsection>
<title>Examples</title>
<para>
- In the following example, we compute an ordering for a symmetric
- sparse matrix.
- We use the <literal>sp2adj</literal> function to compute the adjacency structure.
+ In the following example, we compute an ordering for a symmetric
+ sparse matrix.
+ We use the <literal>sp2adj</literal> function to compute the adjacency structure.
</para>
- <programlisting role="example"><![CDATA[
+ <programlisting role="example"><![CDATA[
A = [
4. 1. 2. 0.5 2.
1. 0.5 0. 0. 0.
[perm,invp,nofsub]=ordmmd(xadj,iadj,n)
]]></programlisting>
<para>
- In the following example, we compute an ordering for a symmetric
- sparse matrix.
+ In the following example, we compute an ordering for a symmetric
+ sparse matrix.
We check that <literal>invp</literal> is the inverse of <literal>perm</literal>.
</para>
- <programlisting role="example"><![CDATA[
+ <programlisting role="example"><![CDATA[
A = [
0., 0., 0., 2., 0., 0., 2., 0., 2., 0., 0. ;
0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0. ;
A=sparse(A);
[xadj,adjncy,anz]=sp2adj(A);
[perm,invp,nofsub]=ordmmd(xadj,adjncy,n);
- perm(invp)
+ perm(invp)
]]></programlisting>
<para>
In the following example, we compare the sparsity pattern of the Cholesky
15, while the matrix <literal>P'*A*P</literal> has a Cholesky decomposition with
9 nonzeros.
</para>
- <programlisting role="example"><![CDATA[
+ <programlisting role="example"><![CDATA[
A = [
4. 1. 2. 0.5 2.
1. 0.5 0. 0. 0.
for i=1:n
P(perm(i),i)=1;
end
-// See the sparsity pattern of the Cholesky factors
+// See the sparsity pattern of the Cholesky factors
// of P'*A*P
U = sparse(chol(full(P'*A*P)));
subplot(2,1,2);
4. 1. 2. 0.5 2.
1. 0.5 0. 0. 0.
2. 0. 3. 0. 0.
- 0.5 0. 0. 5./8. 0.
+ 0.5 0. 0. 0.625 0.
2. 0. 0. 0. 16.
];
A = sparse(A);
</refsection>
<refsection>
<title>Examples</title>
- <programlisting role="example"><![CDATA[
+ <programlisting role="example"><![CDATA[
m=0.8;
z=%asn(1/sqrt(m),m);
K=real(z);
intg(0,0.9,f)-%asn(0.9,m) //Works for real case only!
]]></programlisting>
<scilab:image>
+ warning("off")
m=0.8;
z=%asn(1/sqrt(m),m);
K=real(z);
y=%asn(x,m);
rect=[0,-Ktilde,1.1*K,2*Ktilde];
plot2d(real(y)',imag(y)',1,'011',' ',rect)
+ warning("on")
</scilab:image>
</refsection>
<refsection role="see also">
<refsection id="Example_OUTIMPL_f">
<title>Exemple</title>
<para>
- Dans l'exemple suivant le Super bloc est un simple commutateur à transistor.
+ Dans l'exemple suivant le Super bloc est un simple commutateur à transistor.
</para>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/fr_FR/OUTIMPL_f_fr_FR.zcos">
</para>
<scilab:image><![CDATA[
// overload messagebox to avoid the "modelica compiler" message
+warning("off")
function [btn] = messagebox(msg, msgboxtitle, msgboxicon, buttons, ismodal)
btn=1;
endfunction
+warning("on")
importXcosDiagram(SCI + "/modules/xcos/examples/portaction_pal/fr_FR/OUTIMPL_f_fr_FR.zcos");
xcos_simulate(scs_m, 4);