필터 지우기
필터 지우기

How to access a certain line or box in powerpoint via Matlab ?

조회 수: 1 (최근 30일)
farzad
farzad 2020년 5월 14일
댓글: Geoff Hayes 2020년 5월 15일
Hi All
in Matlab help, there is an unclear example , that I could not understand whether I should write the name of a paragraph, or its label or what , to change its font etc.
import mlreporgen.ppt.*
p = Paragraph('Model Highlights');
p.Style = [p.Style {FontColor('red'),Bold(true)}];
what is 'Model Highlights' ? is it a paragraph? is it a line ? is it a lable ? how should I know ? what are the other useful commands ? where do I find all of them ?

채택된 답변

Geoff Hayes
Geoff Hayes 2020년 5월 15일
paragraphObj = Paragraph(text) creates a paragraph that contains a mlreportgen.ppt.Text object with the text specified by text.
So the p in your above code is a paragraph with the text "Model Highlights". See Add and Replace Presentation Content for details.
  댓글 수: 6
farzad
farzad 2020년 5월 15일
dear Geof, I mean it was just not changing the font, but I figured it out to make it work. I had to replace it with p
Geoff Hayes
Geoff Hayes 2020년 5월 15일
great - glad it worked out, farzad!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by