1 answer

Using matlab, create a 3-D plot of the wave equation y(x,t)= cos(omega*t-beta*x) .Plot for a time...

Question:

Using matlab, create a 3-D plot of the wave equation y(x,t)= cos(omega*t-beta*x) .Plot for a time range from t=0 to t=2T and a space range of x=0 to x=2lambda


Answers

f=100; w=2*pi*f; a=1; x=linspace(-5,5,50); t=linspace(0,2,50);   for k = 0.05:0.01:2         % Change values of e.g. k     n = a.*cos(k.*x-w.*t);  % Re-calculate n     pause(0.02)             % pause to control animation speed     s = surf(x,t,repmat(n,[length(t),1])); % Use repmat to make Z 2D     title(['k = ',num2str(k)])      % Just some nice settings for surf plot     shading interp     lighting phong     camlight left; camlight right; camlight left; camlight right;     colormap copper     alpha(.8) end

In the above code you can easily change the values of x and t according to the values set by you for OMEGA and lambda and the curve will be plot accordingly.

Alternatively, I have a simpler code:'

k=0.05; f=100; w=2*pi*f; a=1; [x,t]=meshgrid(-5:1:5,0:2:20); n=a.*cos(k.*x-w.*t); surf(x,t,n);

Here's the plot which comes up :-

.

Similar Solved Questions

1 answer
The Problem: You are the HR Manager of a health food store which sells vitamins and...
The Problem: You are the HR Manager of a health food store which sells vitamins and supplements. You recently gave a health and wellness survey to your sales team and found shocking results: 95% said that they weren't getting enough sleep each night. When you told your boss about these results, ...
1 answer
Ns deinh06h.Ch04 Recent research suggests that "bad fats" may not only be detrimental for heart health;...
ns deinh06h.Ch04 Recent research suggests that "bad fats" may not only be detrimental for heart health; they may also impact brain health, specifically, in the areas of memory and cognitive function. Read the following article and then respond to the questions. Protect your brain with 'g...
1 answer
Consider the following sample data for the relationship between advertising budget and sales for Product A:...
Consider the following sample data for the relationship between advertising budget and sales for Product A: Observation 1 2 3 4 5 6 7 8 9 10 Advertising ($) 70,000 80,000 80,000 90,000 100,000 100,000 110,000 110,000 120,000 130,000 Sales ($) 432,000 478,000 484,000 552,000 605,000 594,000 68...
1 answer
POD21-Prob#3) Energy A 4.5 kg block is thrust upward along a 30° incline plane with an...
POD21-Prob#3) Energy A 4.5 kg block is thrust upward along a 30° incline plane with an initial speed of Vo=5.0m/s. It travels a distance of 1.5m up the plane before coming to rest. a. How much internal energy does the system of block + plane+Earth gain in the process due to friction? Hint: ...be...
1 answer
Required information Altira Corporation uses a perpetual inventory system. The following transactions affected it...
Required information Altira Corporation uses a perpetual inventory system. The following transactions affected its merchandise inventory during the month of August 2018: Aug.1 Inventory on hand-3,700 units cost $7.80 each. 8 Purchased 18,500 units for $7.20 each. 14 Sold 14, 800 units for $13.70 eac...
1 answer
ANSWER IS EITHER A OR B ANSWER IS EITHER B OR D Consider the accompanying data...
ANSWER IS EITHER A OR B ANSWER IS EITHER B OR D Consider the accompanying data on breaking load (kg/25 mm width) for various fabrics in both an unabraded condition and an abraded condition. Use the paired t test to test Ho: HD0 sus H: HD > 0 at significance level 0.01. (Use Fabric 1 36.3 28.5 2 5...
1 answer
A Randomized, Clinical Trial of Education or Motivational-Interviewing–Based Coaching Compared to Usual Care to Improve Cancer...
A Randomized, Clinical Trial of Education or Motivational-Interviewing–Based Coaching Compared to Usual Care to Improve Cancer Pain Management Mary Laudon Thomas, RN, MS, AOCN®, Janette E. Elliott, RN-BC, MS, AOCN®, Stephen M. Rao, Ph.D., Kathleen F. Fahey, RN, MS, CNS, Steven M. Paul,...
1 answer
How do you simplify #(x^2+5x+6)/(x+1) * (x^2-1)/(x+3)#?
How do you simplify #(x^2+5x+6)/(x+1) * (x^2-1)/(x+3)#?...
1 answer
At the end of the current year, Accounts Receivable has a balance of $550,000; Allowance for Doubtful Accounts has...
At the end of the current year, Accounts Receivable has a balance of $550,000; Allowance for Doubtful Accounts has a credit balance of $5,500; and sales for the year total $2,500,000. An analysis of receivables estimates uncollectible receivables as $25,000 Determine the amount of the adjusting entr...
1 answer
- синопсса ППСIOUеѕ аlѕо пшест the reproductive systems. In the following sections, we exam ine diseases...
- синопсса ППСIOUеѕ аlѕо пшест the reproductive systems. In the following sections, we exam ine diseases of the urinary and reproductive systems, begin. ning with bacterial d...
1 answer
As a Thai entrepreneur who imports from a Chinese manufacturing company, you need to explain the...
As a Thai entrepreneur who imports from a Chinese manufacturing company, you need to explain the main cultural differences between Thailand and China to your management staff, according to the GMP Group recommendations (separate file): “Understanding Asian and European Business Culture” ...
1 answer
Please answer using the numbers given in THIS problem... Thank you. The Sanding Department of Quik...
Please answer using the numbers given in THIS problem... Thank you. The Sanding Department of Quik Furniture Company has the following production and manufacturing cost data for March 2020, the first month of operation. Production: 6,380 units finished and transferred out; 3,000 units started that ...
1 answer
Do you observe any seasonal pattern? What is it? 1800- 1600- Frig 1000- trend
Do you observe any seasonal pattern? What is it? 1800- 1600- Frig 1000- trend...
1 answer
Prostaglandins are a class of eicosanoids, fatty acid derivatives with a variety of extremely potent actions...
Prostaglandins are a class of eicosanoids, fatty acid derivatives with a variety of extremely potent actions on vertebrate tissues. They are responsible for producing fever and inflammation and its associated pain. Prostaglandins are derived from the 20-carbon fatty acid arachidonic acid in a reacti...