When I try to use print to pdf on matlab, my entire code is displayed but my outputs that would show up in the command window will not show up. I've been using matlab for 2 years now and have never run into this issue. The outputs show up just fine in the command window, but as soon as I export it to a pdf it will only show the code itself. I have also tried using
publish(file, format)
Whenever I do this, matlab opens an infinite amount of figures displaying nothing and won't stop until I completely restart my computer. I genuinely have no idea whats wrong with it, I don't think I changed any settings or anything like that. I haven't seen any other questions similar to this so I'm hoping someone will be able to help me. I'm an engineering student so I really need my outputs to show up when I submit assigments. Any help is appreciated!