Re: Output format problem
Samuel Doughty <[email protected]> Mon, 20 Sep 2021 13:32:38 -0500
| Newsgroups | gmane.comp.gnu.octave.general |
|---|---|
| Message-ID | <CALCCG3j-Qib9XqAxM1za-hEOvnKfKcb4B2tW7feY0QD1r=t9Cw@mail.gmail.com> |
Thanks for the help. Markus is correct; this is a homework problem, one that I'm trying to work before giving it to my students. I did read the documentation, and found it less than clear. No doubt it is all quite clear to those who already know it, but to those who do not, not so much. Sam <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On Mon, Sep 20, 2021 at 10:14 AM Markus Mützel <[email protected]> wrote: > That sound a lot like a homework assignment. > Did you read the respective documentation? > Formatted Output (GNU Octave (version 6.3.0)) > <https://octave.org/doc/v6.3.0/Formatted-Output.html#index-sprintf> > > Markus > > > > *Gesendet:* Montag, 20. September 2021 um 13:17 Uhr > *Von:* "Samuel Doughty" <[email protected]> > *An:* "Help GNU Octave" <[email protected]> > *Betreff:* Output format problem > I want to print three items on a single line: an integer, a name, and a > floating point value using the printf statement. Call them nn, name, and > value. How do I write this command? > > Thanks, > > Sam > > > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> Virus-free. > www.avast.com > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link> > ---------- We are transitioning to a web based forum for community help > discussions at https://octave.discourse.group/c/help > ---------- We are transitioning to a web based forum for community help discussions at https://octave.discourse.group/c/help