From: Stefan Jahn <stefan@gr...>  20060626 06:20:33

Am Sa, 24.06.2006, 19:08, schrieb Antonio: > Hi to the list, Hello Antonio, > Doing some sweep simulation (see the attachments), I had the need to > divide each element of a vector for a scalar, and obtain a vector as > result. Is this possible in QUCS? I hit this problem while simulating > a non ideal transformer, sweeping L2. If I want to calculate n (the > transformation ratio, don't know if this is the proper term in > english) for each L2 value I have to divide L1 which is a scalar by L2 > which is a vector, see the attachments for more details. Well, in fact this should be possible. I'll look at the example and come up for a comment... > I'll try to explain the question in more general terms. In > octave/matlab, if you do one of the 4 operations (+  * /) between a > scalar and a vector (n) the scalar is treated as a vector (n) in which > each element has the same value of the scalar. And the result is a > vector (n). Yep. See above... It should be possible. > If this is not possible, would be nice to be able to export the > dataset in a format easily readable by octave and (ideally) to re > import the dataset after some elaboration... in this way the > potentials of data elaboration would become unlimited. Only > thoughts... Right now you can export it to CSV (comma separate values). Matlab/Octave is somewhere on my TODO list. Conversion from qucsdata to csv is done using the qucsconv command line tool. Cheers, Stefan. 