Displaying values without indicators

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Displaying values without indicators

harish3679
Hello guys,

For value x=1:50

Columns 1 through 20:

    1    2    3    4    5    6    7    8    9   10   11   12   13   14   15  
16   17   18   19   20

 Columns 21 through 40:

   21   22   23   24   25   26   27   28   29   30   31   32   33   34   35  
36   37   38   39   40

 Columns 41 through 50:

   41   42   43   44   45   46   47   48   49   50

I just need plain numbers without quotes in between "Columns 41 through 50:"

Any options to do that?




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: Displaying values without indicators

Ian McCallion

x=1:50;
sprintf('%d ',x)

On 20 July 2018 at 11:46, harish3679 <[hidden email]> wrote:
Hello guys,

For value x=1:50

Columns 1 through 20:

    1    2    3    4    5    6    7    8    9   10   11   12   13   14   15 
16   17   18   19   20

 Columns 21 through 40:

   21   22   23   24   25   26   27   28   29   30   31   32   33   34   35 
36   37   38   39   40

 Columns 41 through 50:

   41   42   43   44   45   46   47   48   49   50

I just need plain numbers without quotes in between "Columns 41 through 50:"

Any options to do that?