help-octave
[Top][All Lists]
Advanced

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

malpractice at num2str + title


From: Fumio Hakamada
Subject: malpractice at num2str + title
Date: Sat, 4 Jul 2020 16:46:38 +0900

I'm using MATLAB and OCTAVE.
In the following program, number is attached to title name.
But it does not work well when  num2str(n) is attached.
Will you please confirm?

-------------------------------------------------------------
% e83.m

t = 1:100;
figure
for n=1:4
    subplot(2,2,n)
    a = " deformation - force, n=" + num2str(n);  % no for OCTAVE
    y = sin(2*pi*n*t/100);
    plot(t,y);
    title(a)
end

--
----------------------------------------
Fumio HAKAMADA, P.E.


reply via email to

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