|
From: Thomas S. <t.s...@fz...> - 2007-12-19 11:04:04
|
the ternary operator knows only two cases: condition fulfilled condition not fulfilled you are trying to add a third case which results in an syntax error you need to nest two ternary operators set 'help ternary' Gopesh Patel wrote: > > Hello All, > > I have a question about multibranch fit. If you type > 'help fit' in gnuplot and then click multibranch fit > then the following syntax will appear for it: > > f(x,y) = (y==0) ? a*exp(-x/tau) : b*exp(-x/tau) > fit f(x,y) 'datafile' using 1:-2:2:3 via a, b, tau > > Now I want to fit more than 2 parameters with > multibranch fit, for example, in this way: > > f(x,y) = (y==0) ? a*exp(-x/tau) : b*exp(-x/tau): > c*exp(-x/tau) > fit f(x,y) 'datafile' using 1:-2:2:3 via a,b,c,tau > > but it gives error that ';' is expected. > I have 10 indexes in my datafile. So I want it for 10 > parameters. > > Any suggestions please? > > Regards, > Gopesh > > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Gnuplot-info mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://www.nabble.com/Multibranch-fitting-problem-tp14414575p14414904.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |