[scilab-Users] printf error Wrong Argument 2
Samuel Gougeon
sgougeon at free.fr
Tue Dec 6 01:45:06 CET 2011
Hello Tony,
The problem comes from braces that you use. Scilab does not need them.
if (Vin_max/Rrc)<=750e-6 then
printf('Rrc OK\n\n')
else
printf('Rrc too small - correction required.\n')
printf('Maximum current: %6.3f uA\n',ircmax)
printf('Minimum current: %6.3f uA\n', ircmin)
end
works perfect. There is nothing related to printf.
Samuel
Le 06/12/2011 01:20, Tony Radice a écrit :
> Ladies and Gentlemen -
> I apologize for this (possibly simple) question from a newbie - but
> after looking for the problem on the wiki, on google, in the help files and
> with a co worker we are stumped. The following code (sans the comments) is
> the issue - we have tried it on 5.2.2 and 5.3.3 and the behaviour is the
> same, so it's probably me. The question is "Why am I getting the error
> identified, what does it mean, and would someone please point me in the
> correct direction to clear it?" I have tried changing the format
> designators (f, g, and e), the resolution (6.3 is what i really want) and
> moving the computations in and out of the printf statement.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20111206/e2e99a29/attachment.htm>
More information about the users
mailing list