[Scilab-users] Scilab conversion of Matlab code - query

2016-01-06 Thread Lester Anderson
Hello,

A basic query, but I cannot seem to get the Scilab code to run as it
should and plot the data. Not sure where it is falling over. Attached
the code with the original Matlab commands at the front for reference.

Oddly, the straight Matlab code will run and make the plot after first
startingSc ilab, but will not if attempted again.

Is there a more elegant way of reading in a range of Te values?

Thanks for any pointers

Lester


flex1a.sce
Description: Binary data
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab conversion of Matlab code - query

2016-01-06 Thread Jan Åge Langeland

The original code seems to run with the small change(note the  '  ):

flex(:,1)  =  dist'; JÅ



On 06.01.2016 11:54, Lester Anderson wrote:

Hello,

A basic query, but I cannot seem to get the Scilab code to run as it
should and plot the data. Not sure where it is falling over. Attached
the code with the original Matlab commands at the front for reference.

Oddly, the straight Matlab code will run and make the plot after first
startingSc ilab, but will not if attempted again.

Is there a more elegant way of reading in a range of Te values?

Thanks for any pointers

Lester


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab conversion of Matlab code - query

2016-01-06 Thread Tim Wescott
On Wed, 2016-01-06 at 10:54 +, Lester Anderson wrote:
> Hello,
> 
> A basic query, but I cannot seem to get the Scilab code to run as it
> should and plot the data. Not sure where it is falling over. Attached
> the code with the original Matlab commands at the front for reference.
> 
> Oddly, the straight Matlab code will run and make the plot after first
> startingSc ilab, but will not if attempted again.
> 
> Is there a more elegant way of reading in a range of Te values?
> 
> Thanks for any pointers

Run it and look at the error messages, then fix them one by one.  It's
barfing a lot on matrix multiplies where you're doing invalid
operations.  Scilab is strict that if you multiply two matrices they
have to be m x n and n x q (or whatever).  I'm not sure what Matlab's
rules are for the equivalent.

Yes, Scilab would let you read Te in from a file -- at it's simplest you
can use fscanfMat, if your file is the right format.

-- 

Tim Wescott
www.wescottdesign.com
Control & Communications systems, circuit & software design.
Phone: 503.631.7815
Cell:  503.349.8432


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users