Prev: Problem with compiled function
Next: Adding column headers when saving/exporting as an Excel file
From: Lauren Philips on 23 Feb 2010 11:41 Hello, If the function is for instance: function x = y (p) x = p * 0.5; end How can I make this function automatically give round answers for x? (floor)
From: Cokelid on 23 Feb 2010 11:47 On Feb 23, 11:41 am, "Lauren Philips" <lau...(a)trash2009.com> wrote: > How can I make this function automatically give round answers for x? (floor) Not wanting to *just* give you the answer. But try "help round" and look under "See Also". There's lots to learn in the help.
From: Matt Fig on 23 Feb 2010 11:50 "Lauren Philips" <lauren(a)trash2009.com> wrote in message > How can I make this function automatically give round answers for x? (floor) You want to know how to ROUND numbers in MATLAB? You also want to know if MATLAB has a FLOOR function? Did you bother to look? docsearch('floor') docsearch('round')
From: Jan Simon on 23 Feb 2010 11:54 Dear Lauren! > If the function is for instance: > > function x = y (p) > x = p * 0.5; > end > > How can I make this function automatically give round answers for x? (floor) You suggest the FLOOR command -- I suggest the FLOOR command. Kind regards, Jan
|
Pages: 1 Prev: Problem with compiled function Next: Adding column headers when saving/exporting as an Excel file |