How do I remove a matrix from a published document?

조회 수: 3 (최근 30일)
Brendan
Brendan 2013년 11월 7일
댓글: Sean de Wolski 2013년 11월 7일
I want to publish a code that I wrote which involves large matrices filled with data, but I don't want to include the matrices in the published document because it adds on about 10 pages that I don't want or need and makes it look unprofessional.
How do I remove these from the published document?
Thank you

답변 (1개)

Sean de Wolski
Sean de Wolski 2013년 11월 7일
Don't print them to the command line by putting a semicolon after them and don't call disp or fprintf with them.
Compare:
magic(5)
And
magic(4);
  댓글 수: 2
Brendan
Brendan 2013년 11월 7일
I put the semicolons there but when I publish it still publishes the original code of the matrices
Sean de Wolski
Sean de Wolski 2013년 11월 7일
Can you attach an example *.m file that does this?

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

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by