Difference between revisions of "Matlab Usage"

From edegan.com
Jump to navigation Jump to search
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
===Using Matlab on the RDP===
+
 
 +
==Using Matlab on the RDP==
 +
 
 +
Notes:
 +
*Either run as admin or:
 +
*restoredefaultpath;matlabrc
 +
 
  
 
1) Open the start menu and search for MATLAB
 
1) Open the start menu and search for MATLAB
Line 10: Line 16:
  
 
5) Begin your script by typing:
 
5) Begin your script by typing:
 +
 
function yourfilename  
 
function yourfilename  
end  
+
end
  
 
Replacing "yourfilename" with the name that you plan on saving this script as.  
 
Replacing "yourfilename" with the name that you plan on saving this script as.  
Line 17: Line 24:
 
6) In the top left corner, click save and then save your file wherever you want it.  
 
6) In the top left corner, click save and then save your file wherever you want it.  
  
7) If you want to check that you've done everything properly, add the line  
+
7) If you want to check that you've done everything properly, add the line x = 1
"x = 1" before the end statement in your function.  
+
before the end statement in your function.  
  
 
8) Press Run (top center of window with the green play button) and ensure that  
 
8) Press Run (top center of window with the green play button) and ensure that  
  
 
>>name of your script  
 
>>name of your script  
x =  
+
x = 1
      1
 
  
 
prints in the command window at the bottom of the program.  
 
prints in the command window at the bottom of the program.  
  
 
9) Write your script! MATLAB is very thoroughly documented at: https://www.mathworks.com/help/matlab/
 
9) Write your script! MATLAB is very thoroughly documented at: https://www.mathworks.com/help/matlab/

Latest revision as of 17:16, 7 February 2018

Using Matlab on the RDP

Notes:

  • Either run as admin or:
  • restoredefaultpath;matlabrc


1) Open the start menu and search for MATLAB

2) If you plan on using MATLAB frequently, right click on the icon and select "Pin to Taskbar"

3) Open the MATLAB program

4) In the top left corner, click "New Script"

5) Begin your script by typing:

function yourfilename end

Replacing "yourfilename" with the name that you plan on saving this script as.

6) In the top left corner, click save and then save your file wherever you want it.

7) If you want to check that you've done everything properly, add the line x = 1 before the end statement in your function.

8) Press Run (top center of window with the green play button) and ensure that

>>name of your script x = 1

prints in the command window at the bottom of the program.

9) Write your script! MATLAB is very thoroughly documented at: https://www.mathworks.com/help/matlab/