Running a downloaded code by clicking on the Run button
Mostrar comentarios más antiguos
Hello, I want to run a code which can be downloaded from http://thedata.harvard.edu/dvn/dv/restat/faces/study/StudyPage.xhtml?globalId=doi:10.7910/DVN/27513
When I download the code, the code opens in the Editor. How can I run the code in the command window? Can I run the code by clicking on the Run button?
1 comentario
tr206
el 21 de Mzo. de 2015
Respuestas (3)
Star Strider
el 21 de Mzo. de 2015
Editada: Star Strider
el 21 de Mzo. de 2015
0 votos
Run the code from the Command Window by typing its file name at the prompt (the ‘.m’ extension is not necessary), and hitting ‘enter’.
----------
EDIT — There was no attached Excel file. However, if you want to import Excel files into MATLAB, use the xlsread function, preferably with 3 outputs.
Image Analyst
el 21 de Mzo. de 2015
0 votos
There are at least 3 ways:
- You can click on the green Run triangle on the tool ribbon,
- or (if your cursor is in the editor window) you can type the F5 key.
- Or you can type the name of the m-file on the command line.
Try the very useful f9 key: pressing the f9 button will run any function or script that is currently highlighted/selected in the current folder panel in MATLAB. You can also use to to run any highlighted piece of code from any script, function, or the command window.
Categorías
Más información sobre Spreadsheets en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!