Chapter 1: Problem 8
Close the Figure Window, and change back to the original directory that MATLAB started in. Next type "test2" in the Command Window. What happens, and why?
Chapter 1: Problem 8
Close the Figure Window, and change back to the original directory that MATLAB started in. Next type "test2" in the Command Window. What happens, and why?
All the tools & learning materials you need for study success - in one app.
Get started for freeChange the current directory to mynewdir. Then open an Edit Window and add the following lines: 8\. Create an input array from \(-2\) *pi to 2 *pi \(t=-2 * \mathrm{pi}: \mathrm{p} i / 10: 2^{\circ} \mathrm{pi}\); of Calculate |sin(t)| \(x=a b s(\sin (t))\); \- Plot result plot \((t, x)=\) Save the file with the name test2. \(m\), and execute it by typing test 2 in the Command Window. What happens?
Suppose that \(u=1\) and \(v=3\). Evaluate the following expressions asing MATLAB. a. \(\frac{4 u}{3 v}\) b. \(\frac{2 v^{-2}}{(u+v)^{2}}\) c. \(\frac{v^{3}}{v^{3}-u^{3}}\) d. \(\frac{4}{3} \pi v^{2}\)
Use the MATLAB Help Browser to find out how to create a new directory from within MATLAB. Then, create a new directory called mymewdir under the current directory, Add the new directory to the top of MATLAB's path.
Solve the following system of simultaneous equations for \(x\). \(-2.0 x_{1}+5.0 x_{2}+1.0 x_{3}+3.0 x_{4}+4.0 x_{5}-1.0 x_{6}=0.0\) \(2.0 x_{1}-1.0 x_{2}-5.0 x_{3}-2.0 x_{4}+6.0 x_{5}+4.0 x_{6}=1.0\) \(-1.0 x_{1}+6.0 x_{2}-4.0 x_{3}-5.0 x_{4}+3.0 x_{5}-1.0 x_{6}=-6.0\) \(4.0 x_{1}+3.0 x_{2}-6.0 x_{3}-5.0 x_{4}-2.0 x_{5}-2.0 x_{6}=10.0\) \(-3.0 x_{1}+6.0 x_{2}+4.0 x_{3}+2.0 x_{4}-6.0 x_{5}+4.0 x_{6}=-6.0\) \(2.0 x_{1}+4.0 x_{2}+4.0 x_{3}+4.0 x_{4}+5.0 x_{5}-4.0 x_{6}=-2.0\)
Use the MATLAB Help Browser to find the command required to show MATLAB's current directory. What is the current directory when MATLAB starts up?
What do you think about this solution?
We value your feedback to improve our textbook solutions.