shows how to round the result to two decimal places.
Here what I would want Matlab to do is to round the display to two demical places.
(1) I have
Fit = polyfit(series_1,series_2, 1);theString = sprintf('(dependent variable) = %.3f*(independent variable) %.3f', Fit(1), Fit(2));
How can one let Matlab display only up to two demical places?
(2) I have
corr=corrcoef(series_1,series_2);num2str(corr(1,2),3)
How can one let Matlab display only up to two demical places?
(3) I have
tbl=anova(mdl);tbl2=table2cell(tbl('x1',4)) % Get F-statistics
tbl3=string(tbl2);
How can one let Matlab display only up to two demical places?
Best Answer