MATLAB: How to attach code here

codeformattingmeta

Sorry I think this is a silly question.. but i cant…I need to clear mistakes in my code.. So i have to attach code here.. but am clicking code and write near %code… but its not display like code, it wont go to next next line, the code seems like paragraph…. So pls say how to do?

Best Answer

You're meant to type/paste code directly into your post along with the other text. The "{} Code" icon will add formatting/markup to text you highlight, making it look like code.