Pass the text of fprintf to the plot’s text
Would it be possible to pass the text of fprintf to the plot’s text?
x = rand(1,10);
plot(x)
m = mean(x);
sd = std(x);
a = fprintf(‘the mean is %1.2fn’,m);
b = fprintf(‘the standard deviation is %1.2fn’,sd);
text(2,0.5,[a b])Would it be possible to pass the text of fprintf to the plot’s text?
x = rand(1,10);
plot(x)
m = mean(x);
sd = std(x);
a = fprintf(‘the mean is %1.2fn’,m);
b = fprintf(‘the standard deviation is %1.2fn’,sd);
text(2,0.5,[a b]) Would it be possible to pass the text of fprintf to the plot’s text?
x = rand(1,10);
plot(x)
m = mean(x);
sd = std(x);
a = fprintf(‘the mean is %1.2fn’,m);
b = fprintf(‘the standard deviation is %1.2fn’,sd);
text(2,0.5,[a b]) text, fprintf, plot MATLAB Answers — New Questions