In matlab, each of these (q1 and q2) are solutions to a series of matlab problems that must all be run together. They work correct by themselves, but when I try to have both of them they both fail. How do I fix this?[x,y] = meshgrid([-5:1:5,-5:1:5]); q1=quiver(x,y,0.2*((2*x)+y),0.2*(x-(2*y)),0); clear; [x,y,z] = meshgrid([-5:1:5,-5:1:5,-5:1:5]); q2=quiver3(x,y,z,-0.1.*x.*cos(y),0.1.*y.*sin(x),cos(z),0);

Algebra & Trigonometry with Analytic Geometry
13th Edition
ISBN:9781133382119
Author:Swokowski
Publisher:Swokowski
Chapter9: Systems Of Equations And Inequalities
Section: Chapter Questions
Problem 30RE
Question
In matlab, each of these (q1 and q2) are solutions to a series of matlab problems that must all be run together. They work correct by themselves, but when I try to have both of them they both fail. How do I fix this?

[x,y] = meshgrid([-5:1:5,-5:1:5]);
q1=quiver(x,y,0.2*((2*x)+y),0.2*(x-(2*y)),0);
clear;
[x,y,z] = meshgrid([-5:1:5,-5:1:5,-5:1:5]);
q2=quiver3(x,y,z,-0.1.*x.*cos(y),0.1.*y.*sin(x),cos(z),0);
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Elementary Linear Algebra (MindTap Course List)
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:
9781305658004
Author:
Ron Larson
Publisher:
Cengage Learning
College Algebra (MindTap Course List)
College Algebra (MindTap Course List)
Algebra
ISBN:
9781305652231
Author:
R. David Gustafson, Jeff Hughes
Publisher:
Cengage Learning
Linear Algebra: A Modern Introduction
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
Algebra: Structure And Method, Book 1
Algebra: Structure And Method, Book 1
Algebra
ISBN:
9780395977224
Author:
Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:
McDougal Littell