Re: [Scilab-users] range of colon

2020-01-14 Thread Federico Miyara
Samuel, Really?: --> x = rand(3,4,2); --> N= 5; --> siz = size(x); --> a = repmat(0,[N, siz(2:$)]); // Create array of 0's whose columns have length N --> a(1:siz(1), :) = x Submatrix incorrectly defined. It worked for size (8,1,3). It shouldn't work either, but somehow it does...

Re: [Scilab-users] range of colon

2020-01-14 Thread Samuel Gougeon
Le 14/01/2020 à 22:40, Federico Miyara a écrit : Dear all, I need to zero-pad the columns of an N-D array x to a length N. I've found the following solution: siz = size(x); a = repmat(0,[N, siz(2:$)]); // Create array of 0's whose columns have length N /

[Scilab-users] range of colon

2020-01-14 Thread Federico Miyara
Dear all, I need to zero-pad the columns of an N-D array x to a length N. I've found the following solution: siz = size(x); a = repmat(0,[N, siz(2:$)]); // Create array of 0's whose columns have length N // and the remaining dimensions are the same as in

Re: [Scilab-users] BUG legends_mc with xsave and xload

2020-01-14 Thread Samuel Gougeon
Hello Pierre, Le 14/01/2020 à 18:33, Perrichon a écrit : Hello, Hello Samuel, It seems that it is not possible to correctly record or to restaure a graph using « legends_scm » with « xsave » and « xload » Structures of the graph are not respected and illegible. If the bug is not corrected,

[Scilab-users] BUG legends_mc with xsave and xload

2020-01-14 Thread Perrichon
Hello, Hello Samuel, It seems that it is not possible to correctly record or to restaure a graph using < legends_scm > with < xsave > and < xload > Structures of the graph are not respected and illegible. If the bug is not corrected, I'll will be obliged to go back with the < legend > inst

[Scilab-users] Modeling and simulation in Engineering using Modelica

2020-01-14 Thread A Khorshidi
Hi all This is a scarce MOOC for anyone interesting in object-oriented modeling using open Modelica as well as Scilab Coselica Toolbox. Join here: https://iedra.uned.es/courses/course-v1:UNED+Modelsimul_02+2020_T1/about