How do I remove a matrix from a published document?

3 Ansichten (letzte 30 Tage)
Brendan
Brendan am 7 Nov. 2013
Kommentiert: Sean de Wolski am 7 Nov. 2013
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

Antworten (1)

Sean de Wolski
Sean de Wolski am 7 Nov. 2013
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 Kommentare
Brendan
Brendan am 7 Nov. 2013
I put the semicolons there but when I publish it still publishes the original code of the matrices
Sean de Wolski
Sean de Wolski am 7 Nov. 2013
Can you attach an example *.m file that does this?

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by