5. MATLAB 1: Modify the code given in MATLAB 1.4 (ML0104 on p.24) to generate a plot where the amplitude is 4 V/m, the wave is attenuated by an attenuation of 0.001 Np/m, at the frequency of 1 MHz. In your summary statement, convert your attenuation factor from Np/m to dB/m. Paste your MATLAB code, plot, and a short summary statement into a single pdf document and upload to the Canvas website under MATLAB Assignments by the due date. 8 8 8 M-File: ML0104 Program plots wave (in vacuum) versus z-position for a fixed time. Wentworth, 12/13/04 Variables: Ao f & 8 8 t 8 8 omega phi phir lambda . B . A 8z clc clear 8 Ao=1; f=1000; 8 t=1; phi=0; phir-phi*pi/180; c=2.998e8; lambda=c/f; Initialize Variables B=2*pi/lambda; omega=2*pi*f; initial wave amplitude frequency (Hz) angular frequency (rad/sec) time snapshot (sec) phase constant (degrees) phase constant (radians) speed of light in vac. (m/s) wavelength (m) phase constant (1/m) the function A(z, t) position Perform Calculation z=0:4*lambda/100: 4*lambda; 8 plot (z,A) axis ('tight') grid clears the command window clears variables A=Ao*cos (omega*t-B*z+phir); xlabel('z(m)') ylabel('A (z, t)') Generate the Plot sets axes min & max data values
5. MATLAB 1: Modify the code given in MATLAB 1.4 (ML0104 on p.24) to generate a plot where the amplitude is 4 V/m, the wave is attenuated by an attenuation of 0.001 Np/m, at the frequency of 1 MHz. In your summary statement, convert your attenuation factor from Np/m to dB/m. Paste your MATLAB code, plot, and a short summary statement into a single pdf document and upload to the Canvas website under MATLAB Assignments by the due date. 8 8 8 M-File: ML0104 Program plots wave (in vacuum) versus z-position for a fixed time. Wentworth, 12/13/04 Variables: Ao f & 8 8 t 8 8 omega phi phir lambda . B . A 8z clc clear 8 Ao=1; f=1000; 8 t=1; phi=0; phir-phi*pi/180; c=2.998e8; lambda=c/f; Initialize Variables B=2*pi/lambda; omega=2*pi*f; initial wave amplitude frequency (Hz) angular frequency (rad/sec) time snapshot (sec) phase constant (degrees) phase constant (radians) speed of light in vac. (m/s) wavelength (m) phase constant (1/m) the function A(z, t) position Perform Calculation z=0:4*lambda/100: 4*lambda; 8 plot (z,A) axis ('tight') grid clears the command window clears variables A=Ao*cos (omega*t-B*z+phir); xlabel('z(m)') ylabel('A (z, t)') Generate the Plot sets axes min & max data values
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 2 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education