I have two variables and I create a scatter plot. I also run fitlm to conduct a regression. How can one let Matlab put the scatter plot and table from fitlm into one output file?

댓글 수: 3

Ameer Hamza
Ameer Hamza 2020년 12월 2일
편집: Ameer Hamza 2020년 12월 2일
You want to save table as image? Or are you thinking of saving both in a .mat file?
alpedhuez
alpedhuez 2020년 12월 2일
Probably "add table at the bottom of the plot." Thank you.
There is no built-in way to add tables to figures in MATLAB.

댓글을 달려면 로그인하십시오.

 채택된 답변

Monisha Nalluru
Monisha Nalluru 2020년 12월 8일
편집: Monisha Nalluru 2020년 12월 8일

0 개 추천

From my understanding,
You want to create a figure which has scatter plot and table.
This can be done using uifigure with uiaxes to display scatter plot and uitable to display the table.
As an example
f=uifigure;
f.Position(3:4) = [822 360];
ax=uiaxes(f);
ax.Position(1) = 415;
x=linspace(1,10,10);
y=x.*2;
scatter(ax,x,y);
t=table(x',y');
uit=uitable(f,'Data',t);
uit.Position(3) = 375;
Use position property to display the table under the scatter plot or uigridlayout with two rows and one column
Hope this helps!

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

질문:

2020년 12월 2일

편집:

2020년 12월 8일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by