[Scilab-users] A generic datastructure dump tool?

Claus Futtrup cfuttrup at gmail.com
Tue Mar 29 22:13:14 CEST 2016


Hi Buk

Tim Wescott gave you the normal answers. I wonder what you're asking ...

If you have vector x = [2 3 4] and also a vector y = [2 3 4]
You can calculate vector c = x .* y  (= [4 9 16] ... just as an example)
Then you can place the values of c into the diagonal matrix M = diag(c)

... (?) ... so is the answer to your question M = diag(x .* y) ... ?

... or are x and y supposed to be real and imaginary numbers?

Sorry for my confusion about your question.

Best regards,
Claus

On 29-03-2016 21:32, 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.
>
> ____________________________________________________________
> Can't remember your password? Do you need a strong and secure password?
> Use Password manager! It stores your passwords & protects your account.
> Check it out at http://mysecurelogon.com/manager
>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>




More information about the users mailing list