[Scilab-users] A generic datastructure dump tool?
Tim Wescott
tim at wescottdesign.com
Tue Mar 29 21:54:32 CEST 2016
On Tue, 2016-03-29 at 11:32 -0800, scilab.20.browseruk at xoxy.net wrote:
> >After getting the handle PL of your polyline, you can directly update its points through PL.data
> >Then, the graphics is directly updated. You don't need to redraw it with plot() ot plot2d().
>
> >HTH
> >Samuel
>
> Thanks Samuel, that works brilliantly. The re-draw is so fast I had to insert a sleep( 10 ) between iterations.
>
> A follow up question (assuming that isn't breaking the list rules).
>
> Is there a better way than using a for loop to map two vectors x, y to a matrix ( [x1,y1],[x2,y2], ... )?
>
> Cheers, Buk.
Given two column vectors x and y, m = [x y] should work nicely. If you
need to put two row vectors one atop the other use m = [x; y]. If you
need to put two row vectors into two columns, m = [x' y'].
(but note that x' means to make a conjugate transpose -- you don't care
now, but if you want to move complex numbers around without conjugation,
use x.')
--
Tim Wescott
www.wescottdesign.com
Control & Communications systems, circuit & software design.
Phone: 503.631.7815
Cell: 503.349.8432
More information about the users
mailing list