Re: display strings and numbers



På Fri, 09 Dec 2005 14:49:42 +0100, skrev michele a. <nonsisamai@xxxxxxxx>:

>
> Hello!
> I'm writing my first m files, and I still have some problem with the
> output.
>
> How can I display the results of an operation, with a string that mix
> numbers and text? Something similar to
>
> disp(['Were fixed' , fixeddata, ' numbers of a total of ', totdata])
>
> I try to use this code but matlab does not allow me to mix, in the same
> array, strings and numbers... so I need to try another solution.
>
> Thanks, michele.
>

help sprintf
help num2str

--
K
.



Relevant Pages

  • Re: Display contents of text file in the Browser
    ... It sounds like your app is attempting to read from the file at the same time ... that it is writing to it, ... process and attempting to read the file and display it at the same time. ... memory, and return that string to the client, while launching a separate ...
    (microsoft.public.dotnet.framework.aspnet)
  • "Type mismatch" error in JScript - newby question
    ... I'm trying to create a simple text file that will allow a string of text to ... The script firstly creates the text file, ... to then open that file for writing into it, I keep on getting a "type ... Prev by Date: ...
    (microsoft.public.scripting.jscript)
  • image handling in js
    ... I'm just wondering if it is possible to display an image purely from ... Is there a way to create an image by receiving an image binary string ... Prev by Date: ...
    (comp.lang.javascript)
  • need solution for writing a perl script
    ... I need solution for writing a perl script hich uses text file as input ... and get the function to be executeed and display results. ... Prev by Date: ...
    (perl.beginners)
  • sending data to other application - ASP.NET
    ... I am writing an ASP.NET application, in a particular page I have to update a ... record in database and after the record is entered one of the field value has ... to move to other application as a string ...I am able to store the data as ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)