MATLAB Programming Fundamentals - MathWorks
Calculate the Cube Roots To execute individual sections of MATLAB code, go to the Live Editor tab and click the Run Section butt ...
Finding Higher Order Roots To add supporting information, go to the Live Editor tab and click the Hyperlink and Image buttons. S ...
Abraham de Moivre was born in Vitry in Champagne on May 26, 1667. He was a contemporary and friend of Isaac Newton, Edmund Halle ...
Calculating the nth Roots of 1 Use the Live Editor to experiment with MATLAB code interactively. Add controls to show students h ...
Finding the nth roots of -1, i, and -i Use additional examples to reinforce important concepts. Modify code during the lecture t ...
hold on plot(x, y, 'ro') % Plot the values of 1, i, -1, and -i text(x(1)+0.05,y(1),'1') % Add text labels text(x(2),y(2)+0.1,'i' ...
and by de Moivre's theorem we get i1/n= cos 2 k+1/2π +isin 2 k+1/2π 1/n= cos 2 k+1/2π n +isin 2 k+1/2π n . Homework Use live scr ...
Create Examples Using the Live Editor This example shows how to use the Live Editor to document or create an example for your co ...
“Add Help for Live Functions” on page 19-65 “Display Custom Documentation” on page 30-27 MATLAB Live Script Gallery See Also ...
Create an Interactive Form Using the Live Editor This example shows how to use the Live Editor to create an interactive form tha ...
See Also More About “Create Live Scripts in the Live Editor” on page 19-7 See Also 19-105 ...
MATLAB Live Script Gallery 19 Live Scripts and Functions ...
Create a Real-time Dashboard Using the Live Editor This example shows how to use the Live Editor to create a dashboard for displ ...
See Also More About “Create Live Scripts in the Live Editor” on page 19-7 19 Live Scripts and Functions ...
MATLAB Live Script Gallery See Also ...
...
Function Basics “Create Functions in Files” on page 20-2 “Add Help for Your Program” on page 20-6 “Run Functions in the Editor” ...
Create Functions in Files Both scripts and functions allow you to reuse sequences of commands by storing them in program files. ...
Call the script from the command line. mystats z = 6 Syntax for Function Definition The first line of every function is the defi ...
Function name (required) Valid function names follow the same rules as variable names. They must start with a letter, and can co ...
«
33
34
35
36
37
38
39
40
41
42
»
Free download pdf