Writing my code in Word and exporting to MATLAB

1 次查看(过去 30 天)
Hello,
I would like to first write my code in word document or text and then transfer to MATLAB. Could you please let me know if this would be okay or not. Since I am not very familiar with MATHLAB, I thought it is easier to write the codes on Word document.
Thank you very much.

采纳的回答

Mohammad Abouali
Mohammad Abouali 2014-10-10
Don't do that.
MATLAB has a nice editor.
Inside matlab just type
edit mycode.m
an editor will open and you can type in your code there. It also checks your code, and recommends improvement to your code.
Once you are done to execute it either within the editor push the run button or go to matlab and type mycode and enter. it would execute your code.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by