class_notes13

class_notes13 - MatLab Program used for many mathematical...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
• Program used for many mathematical applications • Numerical solutions to problems, matrix algebra • Making graphs, plots • Interfacing with electronic devices, data analysis • Based on C programming language. • Strips out non-math based components of C. • Relies heavily on arrays, matrices, and vectors.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
• Don’t need headers (like #include stdio.h ). • Don’t need to initialize variables. Numerical variables are all treated as floating-point numbers (variables can also be initialized as characters). • Don’t need to compile programs. • Condensed notation in many cases. • Enter commands directly (i.e. use MatLab like a calculator) or write .m files.
Background image of page 2
• Entering commands directly, creating a .m file • Defining variables • When to end lines with a semicolon ( ; ) • MatLab Help Library • Comments – use %
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Description Function in MatLab sqrt(x) square root of x sqrt(x) exp(x) exponential function e x exp(x) log(x) natural log of x [ ln( x ) ] log(x) log10(x) log (base 10) of x [ log 10 (x) ] log10(x) floor(x) rounds
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/06/2010 for the course ENGR 3 taught by Professor Ben-yaakov during the Summer '08 term at UCSB.

Page1 / 16

class_notes13 - MatLab Program used for many mathematical...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online