[Scilab-users] Formatting

Rafael Guerra jrafaelbguerra at hotmail.com
Mon Jan 8 17:09:58 CET 2018


You can use strsubst to remove the + sign:
    
    str = msprintf('%.2E', points(i,2));
    mfprintf(fd,'%s\n\r', strsubst(str,"+","")); 

Regards,
Rafael

-----Original Message-----
From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of James Holland
Sent: Monday, January 08, 2018 4:42 PM
To: users at lists.scilab.org
Subject: Re: [Scilab-users] Formatting

Rafael Guerra wrote
> Why not using decimal floating point output?
> mfprintf(fd,'%.2f\n\r', points(i,2));
> Regards,
> Rafael

I tried that but it won't accept that format. Unfortunately I don't have a description of the format so all I can do is copy the format from an existing file that was generated using the manufacturer's software. In the past I have used Excel but it puts additional commas at the end of the data lines which also cause a problem. Ultimately I would like to be able to generate an AWG file mathematically or from an oscilloscope capture.
Regards
James





More information about the users mailing list