Question
(2 Marks) Create a script of an animated plot of a sequence of 3D graphs in the defined spring colours of MatLab for the function
(2 Marks) Create a script of an animated plot of a sequence of 3D graphs in the defined spring colours of MatLab for the function f(x,y) = 100xcos(k)-100ysin(k) , with (x,y) 2; 1 x 20; 1 y 15; 1 k 70, in 0.1 steps. Hint: iterate over a loop for k, with a step of 0.1. For each value of k, generate the matrix f(x,y) and plot it using the commandsurf.Add the commandsaxis([1 10 1 10 -1000 1000]) and pause(0.01)to your code in the appropriate location to keep the axes parameters constant throughout the simulation; and to slow down the animation.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started