help-octave
[Top][All Lists]
Advanced

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

How to print the string value using fprintf


From: GK19
Subject: How to print the string value using fprintf
Date: Wed, 22 Apr 2020 15:31:58 -0500 (CDT)

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);
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



reply via email to

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