How to Visualize Multivariable Functions in MATLAB
Explore different ways to visualize two-variable functions in MATLAB. This video uses the example of the probability density function (PDF) for a distribution described by flipping a coin until both a head and a tail have landed up. As functions like this one are often hard to visualize mentally, we explore the creation of its three-dimensional surface plot in MATLAB. We then create a mapping of our function’s level curves, to see more clearly the rate at which our function output changes when its inputs are changed. Using techniques like these, we can understand the nature of any two-variable function.
Additional Resources:
- Learn more about creating a function handle to plot your multivariable function: https://bit.ly/2I3rTqO
- Check out this documentation for more information about using the surf function: https://bit.ly/2GtXHV9
- MATLAB Answers example on plotting multivariable functions: https://bit.ly/34X2fNo
Join us on Facebook Group:
https://www.facebook.com/groups/matlabcodes
No comments