<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi David,<br>
<blockquote cite="mid:000301c9a2e1$b13ff5b0$13bfe110$@tschische@cisc.at"
type="cite">
<pre wrap="">Thank you Mathieu, "plot2d2" seems to be the answer.
</pre>
</blockquote>
Glad to help you.
<blockquote cite="mid:000301c9a2e1$b13ff5b0$13bfe110$@tschische@cisc.at"
type="cite">
<pre wrap="">At least it support most parameters of the Matlab pendent in some way
Another way I just discovered is using "plot2d" in combination with setting
the polyline settings:
handle = get("hdl");
handle.children(1).polyline_style = 2;
</pre>
</blockquote>
This is essentially what plot2d2 does. Extract from the doc:<br>
<pre><tt>Note that all the modes proposed by plot2dxx (xx = 1 to 4) can be enabled using plot2d
and setting the polyline_style option to the corresponding number.</tt></pre>
So the options to plot2d2 are the options to plot2d... And the way you
discovered is as valid as plot2d2.<br>
<br>
For your example you could try:<br>
<pre><tt>--> plot2d2(rec(:,2), rec(:,1),leg='TAG0 Receiver') // leg is for legend
</tt></pre>
I don't understand what the parent property is.<br>
<br>
Regards,<br>
Mathieu<br>
<blockquote cite="mid:000301c9a2e1$b13ff5b0$13bfe110$@tschische@cisc.at"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">-----Original Message-----
From: Mathieu Dubois [<a class="moz-txt-link-freetext" href="mailto:mathieu.dubois@limsi.fr">mailto:mathieu.dubois@limsi.fr</a>]
Sent: Mittwoch, 11. März 2009 21:34
To: <a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
Subject: Re: [scilab-Users] How to replace Matlab stairs function in
Scilab
Hi David,
</pre>
<blockquote type="cite">
<pre wrap="">I just started to use Scilab and I'm struggling a little bit as I
</pre>
</blockquote>
<pre wrap="">have to
</pre>
<blockquote type="cite">
<pre wrap="">convert some of my scripts from Matlab to Scilab.
Is there any equivalent to Matlab "stairs" function or any suitable
</pre>
</blockquote>
<pre wrap="">way to
</pre>
<blockquote type="cite">
<pre wrap="">draw staircase like steps?
</pre>
</blockquote>
<pre wrap="">If I understand correctly matlab's stairs function
(<a class="moz-txt-link-freetext" href="http://www.math.carleton.ca/old/help/matlab/MathWorks_R13Doc/techdoc/r">http://www.math.carleton.ca/old/help/matlab/MathWorks_R13Doc/techdoc/r</a>
ef/stairs.html)
you should use plot2d2.
Try:
--> x = 0:.25:10;
--> plot2d2(x,sin(x));
BTW I have found this very simply: type 'step' in the 'search' tab of
scilab's help.
Technically speaking plot2d2 is just a plot2d with a special
polyline_style (see help :).
</pre>
<blockquote type="cite">
<pre wrap="">In particular, I would like to have something similar to:
stairs(rec(:,2),rec(:,1),'DisplayName','TAG0
Receiver','Parent',axes1);
</pre>
</blockquote>
<pre wrap="">I don't know exactly what these options are supposed to do (I don't
have
matlab) but you should be able to find out the right options to
plot2d2.
Hope that helps (if it's still needed),
Mathieu
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>