19 Best Functions in MATLAB | MATLAB Tutorial

preview_player
Показать описание
19 Best Functions in MATLAB. Get PUMPED with the best, most powerful, and useful functions in MATLAB. Make your programming more efficient and impactful!

0:00 help [function_name] -- get arguments required for a function or command
0:20 f(x) button -- finding functions you didn't know exist
1:30 clc, close all, clear all --- clear command window, wipe workspace variables, close figures
1:50 clear vars -except variable_name -- clear all variables except that variable_name
2:18 display() -- output text to command window
2:38 fprintf ()-- format your text output
4:10 e and exp() -- times ten to the _ power and exponent
4:48 ctrl + r comments out highlighted text, ctrl + t uncomments highlights text
5:32 sqrt(), pi, abs() -- square root, pi = 3.14159..., and absolute value
5:55 linspace() -- generate evenly space values
6:28 eye(), zero() -- generate identify matrix and zero matrix
6:57 det() -- calculate the determinant of a matrix
7:08 rref() -- put set of equations into reduced row echelon form (solve system of equations)
7:54 hold on -- allows you to plot 2 graphs on 1 figure
8:35 rand() -- generates a random value
9:50 max() and min() -- find max or min value of a matrix and its index (position)
10:49 ceil(), floor(), round(), fix() -- round... up, down, to nearest whole number, towards zero
11:35 polyfit() and polyval() -- calculate polynomial fit based off of data
12:38 roots() -- find roots of a function (x-values where y=0)
13:14 @x -- define an inline function (as opposed to the function command)
14:10 table() -- put elements into a table for a nice output :)
14:38 input() -- prompt user input and save to a variable

Other MATLAB Videos

Рекомендации по теме
Комментарии
Автор

you're legendary, i dont get why no one is taking full advantage of your content. it's infectious how you're so enthusiastic about

CheongShengYap
Автор

I've never seen such a good looking engineer.

the_sinner
Автор

This was super useful. Much appreciated! I could almost see the program you used showed being a nice tool for people to download and add their own useful functions to the code. A clean repository document with highly powerful and commonly used functions along with simple example uses would make for a great way to train beginners!

coltonbrown
Автор

nice Video Phil, keep up the great work

felix
visit shbcf.ru