Difference between revisions of "MATLAB"

From PrattWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{{Software|
 
{{Software|
name=Matlab|
+
name=MATLAB|
 
byline=Matrix Laboratory Software|
 
byline=Matrix Laboratory Software|
 
image=|
 
image=|
 
caption=|
 
caption=|
version=|
+
version=R2008a|
dlocation=On Unix|
+
dlocation=On Unix<br>[http://www.oit.duke.edu/comp-print/software/matlab.html OIT]|
manufacturer=|
+
cose=Free on UNIX<br>$150 for license
webpage=|
+
manufacturer=MathWorks|
label_color=|Color value_color=|}}  
+
webpage=http://www.mathworks.com|
 +
label_color=|Color value_color=|update=6/23/2008}}  
  
'''Matlab''' is a MATrix LABoratory program that can be used to load, process, generate, present, and analyze numerical data.
+
'''MATLAB''' is a MATrix LABoratory program that can be used to load, process, generate, present, and analyze numerical data.
 
 
{{QuandaPrep}}
 
  
 
==FAQ==
 
==FAQ==
*Matlab gives me the splash screen, then just sits there...
+
*MATLAB gives me the splash screen, then just sits there...
 
**Go to a terminal window and type "ps -u NETID" with your NET ID. There should be a process called "matlab". Get the number off it, then type "kill -KILL NUMBER" (the adverb really is "-KILL"). Then, go to your root directory, change into the .matlab directory and remove the contents with "rm -ir *" (make SURE you are in the .matlab directory). Go back to where you were and start matlab again.  
 
**Go to a terminal window and type "ps -u NETID" with your NET ID. There should be a process called "matlab". Get the number off it, then type "kill -KILL NUMBER" (the adverb really is "-KILL"). Then, go to your root directory, change into the .matlab directory and remove the contents with "rm -ir *" (make SURE you are in the .matlab directory). Go back to where you were and start matlab again.  
  
*Matlab on Unix just sits there - I think I created an infinite loop!  Or I am running a program that will take a significant fraction of forever to complete...
+
*MATLAB on Unix just sits there - I think I created an infinite loop!  Or I am running a program that will take a significant fraction of forever to complete...
 
**Go to a terminal window and type "ps -u NETID" with your NET ID. There should be a process called "matlab". Get the number off it, then type "kill -KILL NUMBER"  
 
**Go to a terminal window and type "ps -u NETID" with your NET ID. There should be a process called "matlab". Get the number off it, then type "kill -KILL NUMBER"  
  
*Matlab on Windows just sits there - I think I created an infinite loop!  Or I am running a program that will take a significant fraction of forever to complete...
+
*MATLAB on Windows just sits there - I think I created an infinite loop!  Or I am running a program that will take a significant fraction of forever to complete...
 
**Hit CTRL-C to break out of Matlab.
 
**Hit CTRL-C to break out of Matlab.
  
*How do you even get IN to Matlab? I have no idea...
+
*How do you even get IN to MATLAB? I have no idea...
 
**After logging in to an OIT machine (or using [[SSH]] to get there from a PC and using [[X-Win 32]] to get graphics to send over, or using [[X11R6]] on a Mac to log in) just type <code>matlab &</code> at the command prompt.
 
**After logging in to an OIT machine (or using [[SSH]] to get there from a PC and using [[X-Win 32]] to get graphics to send over, or using [[X11R6]] on a Mac to log in) just type <code>matlab &</code> at the command prompt.
  
Line 53: Line 52:
 
</source>
 
</source>
 
::See the page linked above for other languages that are parsed.
 
::See the page linked above for other languages that are parsed.
 +
 +
== External Links ==
 +
* The MathWorks [http://www.mathworks.com/support/ Support Site]
 +
 +
== References ==
 +
<references />
  
 
[[Category:Software]]
 
[[Category:Software]]
[[Category:EGR 53 Programs]]
+
[[Category:EGR 53]]

Revision as of 19:00, 23 June 2008

MATLAB
Version R2008a
Download On Unix
OIT
Web Page http://www.mathworks.com
Pundit Updated 6/23/2008


MATLAB is a MATrix LABoratory program that can be used to load, process, generate, present, and analyze numerical data.

FAQ

  • MATLAB gives me the splash screen, then just sits there...
    • Go to a terminal window and type "ps -u NETID" with your NET ID. There should be a process called "matlab". Get the number off it, then type "kill -KILL NUMBER" (the adverb really is "-KILL"). Then, go to your root directory, change into the .matlab directory and remove the contents with "rm -ir *" (make SURE you are in the .matlab directory). Go back to where you were and start matlab again.
  • MATLAB on Unix just sits there - I think I created an infinite loop! Or I am running a program that will take a significant fraction of forever to complete...
    • Go to a terminal window and type "ps -u NETID" with your NET ID. There should be a process called "matlab". Get the number off it, then type "kill -KILL NUMBER"
  • MATLAB on Windows just sits there - I think I created an infinite loop! Or I am running a program that will take a significant fraction of forever to complete...
    • Hit CTRL-C to break out of Matlab.
  • How do you even get IN to MATLAB? I have no idea...
    • After logging in to an OIT machine (or using SSH to get there from a PC and using X-Win 32 to get graphics to send over, or using X11R6 on a Mac to log in) just type matlab & at the command prompt.
  • How do you type MATLAB code in these pages, and how do you make it pretty?
    • The SyntaxHighlighting extension is installed on this wiki, so all you have to do is use the appropriate source and lang tags. The code:
<source lang="matlab">
%% Post-processing
% take data from AI
[data, time] = getdata(AI);
%% plot data 
c1 = data(:,1); c2 = data(:,2); c3 = data(:,3); c4 = data(:,4);
plot(time, c1, 'b-', time, c2, 'g--', time, c3, 'r-.', time, c4, 'c:')
legend('0', '1', '2', '3', 0)
xlabel('Time (s)'); ylabel('Voltage (V)');
</source>
produces
%% Post-processing
% take data from AI
[data, time] = getdata(AI);
%% plot data 
c1 = data(:,1); c2 = data(:,2); c3 = data(:,3); c4 = data(:,4);
plot(time, c1, 'b-', time, c2, 'g--', time, c3, 'r-.', time, c4, 'c:')
legend('0', '1', '2', '3', 0)
xlabel('Time (s)'); ylabel('Voltage (V)');
See the page linked above for other languages that are parsed.

External Links

References