octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: convert cell in string


From: Ian McCallion
Subject: Re: convert cell in string
Date: Fri, 20 Jul 2018 13:22:22 +0100

    a = {97 98}
    s = cellfun(@dec2base, a, {10}, 'UniformOutput', false)

Please remember to use "reply all" for replies in future.

Ian

On 20 July 2018 at 12:36, <address@hidden> wrote:

i want this:


{'97', '98'}


thanks

Il 20 luglio 2018 alle 12.28 Ian McCallion <address@hidden> ha scritto:

Dear Turbofib,

Your question has several meanings. Suppose cell array is:

  {97, 98}

Please say what you want the result to be:

  {'97', '98'}

  {'a','b'}

   "97 98"

Or give us an example of what you want.

Then we can give you the code to achieve it.

Ian



On 19 July 2018 at 21:32, turbofib <address@hidden> wrote:
in cell array i have a scalar not string

i've a scalar and i want get string





--
Sent from: http://octave.1599824.n4.nabble.com/Octave-Maintainers-f1638794.html




reply via email to

[Prev in Thread] Current Thread [Next in Thread]