help-octave
[Top][All Lists]
Advanced

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

Re: How to print the string value using fprintf


From: Doug Stewart
Subject: Re: How to print the string value using fprintf
Date: Wed, 22 Apr 2020 16:37:04 -0400



On Wed, Apr 22, 2020 at 4:32 PM GK19 <address@hidden> wrote:
Hi,

a = (aa bb cc dd)

for ion=1:1:length(a)
and some lines of code
then later i have some functionality
---------------
p =  a(ion);
Results if i use
fprintf("%10s", p);

try

p{1}

 
error: fprintf: wrong type argument 'cell'

suppose if i use
disp(p)
Output
{
  [1,1] = aa
}

I want just the 'aa' as the output using fprintf only
How do i do that ? Kindly help



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




--
DASCertificate for 206392


reply via email to

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