Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Dr. TGI Fernando () IM 512 3.0 (I) Mathematical Software September 24, 2011 1 / 11
Directional Exploration Working with Arrays and Matrices
Dr. TGI Fernando () IM 512 3.0 (I) Mathematical Software September 24, 2011 2 / 11
Directional Exploration Working with Arrays and Matrices
Dr. TGI Fernando () IM 512 3.0 (I) Mathematical Software September 24, 2011 3 / 11
Directional Exploration Working with Arrays and Matrices
Dr. TGI Fernando () IM 512 3.0 (I) Mathematical Software September 24, 2011 4 / 11
Directional Exploration Working with Anonymous Functions
Dr. TGI Fernando () IM 512 3.0 (I) Mathematical Software September 24, 2011 5 / 11
Directional Exploration Working with Anonymous Functions
Dr. TGI Fernando () IM 512 3.0 (I) Mathematical Software September 24, 2011 6 / 11
Directional Exploration Working with Anonymous Functions
x = linspace(-10, 10);
plot(x, f(x)) (You can also use f as input to other functions where
appropriate).
f = @(mu, x) mu*x - x . ˆ 3; (Define a function of two variables
f (µ, x) = µx − x 3 and evaluate over a range of x for different values
of µ).
x = linspace(-5, 5)’;
f many = [f(-5,x) f(0,x) f(5,x) f(45,x)]
plot(x, f many) (Output)
grid
xlabel(’x’)
ylabel(’f(\mu,x) = \mu x - x ˆ 3’)
Dr. TGI Fernando () IM 512 3.0 (I) Mathematical Software September 24, 2011 7 / 11
Directional Exploration Working with Anonymous Functions
Dr. TGI Fernando () IM 512 3.0 (I) Mathematical Software September 24, 2011 8 / 11
Directional Exploration Symbolic Computation
Symbolic Computation
Dr. TGI Fernando () IM 512 3.0 (I) Mathematical Software September 24, 2011 9 / 11
Directional Exploration Symbolic Computation
Dr. TGI Fernando () IM 512 3.0 (I) Mathematical Software September 24, 2011 10 / 11
Directional Exploration Symbolic Computation