By MathWorks, Inc

Show description

Read or Download MATLAB, quick reference PDF

Similar software: systems: scientific computing books

Intuitive Probability and Random Processes using MATLAB

Intuitive chance and Random procedures utilizing MATLAB® is an creation to chance and random techniques that merges conception with perform. in line with the author’s trust that simply "hands-on" adventure with the cloth can advertise intuitive knowing, the process is to encourage the necessity for concept utilizing MATLAB examples, by way of conception and research, and eventually descriptions of "real-world" examples to acquaint the reader with a wide selection of purposes.

Elektromagnetische Felder und Netzwerke: Anwendungen in Mathcad und PSpice

Thema des Buches ist die umfassende Darstellung der Berechnung elektromagnetischer Felder und Netzwerke unter besonderer Berücksichtigung moderner Computerprogramme, speziell Mathcad und PSpice. Zielgruppe sind Studenten der Elektrotechnik oder Physik der Hochschul-Eingangssemester, aber auch Dozenten, die sich in die Anwendung dieser Programmpakete einarbeiten wollen.

Gewöhnliche Differentialgleichungen: Theorie und Praxis - vertieft und visualisiert mit Maple®

Die Theorie der Gewöhnlichen Differentialgleichungen ist ein grundlegendes und unverändert aktuelles Gebiet der Mathematik. Das vorliegende Buch führt nicht nur äußerst sorgfältig und umfassend in die Theorie ein, sondern vermittelt auch aufgrund der zahlreichen vollständig durchgerechneten Beispiele einen Einblick in deren Anwendungspraxis.

Additional resources for MATLAB, quick reference

Example text

In constructing functions we do need to take some care with how our outputs are returned; we have already seen that if the function is called with a vector then the “output” is, in general, a vector. However, there is no reason why there should not be two (or more) outputs returned. ˆ2+2*x+1; fprime = 6*x+2; ✫ ✪ This MATLAB function calculates the values of the polynomial and its derivative. 5:5; [func,dfunc] = evaluate_poly2(x); ✒ ✑ We can further generalise our code by passing the coefficients of the quadratic to the function, either as individual values or a vector.

Y = (sin x)2 4. y = sin 2x + x cos 4x 5. y = x/(x2 + 1) 6. y = cos x 1+sin x 7. 01. 1. 9 (D) The following code is supposed to evaluate the function f (x) = (x3 x2 cos πx , + 1)(x + 2) 26 1. Simple Calculations with MATLAB for x ∈ [0, 1] (using 200 steps). Correct the code and check this by evaluating the function at x = 1 using f(200) which should be −1/6. 10 (D) Debug the code which is supposed to plot the polynomial x4 − 1 between x = −2 and x = 2 using 20 points. 1 and give the value of the function at x = 2 and x = 3.

The reason for this can be seen by typing which power which produces the output >> which power power is a built-in function. So MATLAB will try to run the built-in function. 1 Functions In the previous sections we wrote codes which could be legitimately run at the MATLAB prompt. We now discuss the important class of codes which actually act as functions. These codes take inputs and return outputs. m. It is important that we get the syntax for functions correct so we’ll go through this example in some detail.

Download PDF sample

MATLAB, quick reference by MathWorks, Inc
Rated 4.46 of 5 – based on 24 votes