The Part of the MATLAB code is here: (ADD and REMOVE) clc; close all; clear all;...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The Part of the MATLAB code is here: (ADD and REMOVE) clc; close all; clear all; WRITE INPUT COMMAND SUCH THAT AFTER RUNNING THE PROGRAM, THE MATLAB ASKS YOU "The lower bound of theta in degree=' and assign it as tmin WRITE INPUT COMMAND SUCH THAT AFTER RUNNING THE PROGRAM, THE MATLAB ASKS YOU "The upper bound of theta in degree=' and assign it as tmax WRITE INPUT COMMAND SUCH THAT AFTER RUNNING THE PROGRAM, THE MATLAB ASKS YOU "The lower bound of phi in degree=' and assign it as pmin WRITE INPUT COMMAND SUCH THAT AFTER RUNNING THE PROGRAM, THE MATLAB ASKS YOU "The upper bound of phi in degree=' and assign it as pmax ASSIGN tinc, pine and rad as 2, 4, and pi/180 respectively in three lines. theta1=(tmin:tine:tmax); phil (pmin:pinc:pmax); theta=theta1.*rad; theta=theta1.*rad; phi-phil.*rad; USE meshgrid command such that [THETA, PHI] is meshgrid of (theta, phi); y1=input("The field pattern: E(THETA,PHI)='); v=input('The field pattern: P(THETA,PHI)=','s'); NOW ASSIGN Y AS ABSOLUTE VALUE OF y1 ratio=max(max(y)); PHI,y); %learn about [X,Y,Z]=sph2cart(THETA, sph2cart command mesh(X,Y,Z); % also learn mesh command title('3 D Pattern', 'Color', 'b', 'FontName','Helvetica','FontSize', 12, Font fprintf("\n Input Parameters: \n----------- -)); fprintf("\n Theta =%2.of,tmin); fprintf(': %2.of,tinc); fprintf(': %2.of, tmax); fprintf("\n Phi=%2.0f,pmin); fprintf('%2.of,pinc); fprintf(: %2.of,pmax); fprintf("\n FIELD PATTERN: %s',v) fprintf('\n \n Output is shown in the figure below-------- fprintf("\n'); after running give the following parameters: The Lower Range of Theta in Degree= o The Upper Range of Theta in Degree= 360 The Lower Range of Phi in Degree o The Lower Range of Phi in Degree o The Upper Range of Phi in Degree= 360 The field pattern: E(THETA,PHI)=1 The field pattern: P(THETA,PHI)=1 The Output should look like this: Input Parameters: Theta = 0 : 2:360 Phi = 0 4 : 360 FIELD PATTERN : 1 Output is shown in the figure below-- 3D Pattern 0.5 0 -0.5 0.5 -0.5 -1 -0.5 O 0.5 The Part of the MATLAB code is here: (ADD and REMOVE) clc; close all; clear all; WRITE INPUT COMMAND SUCH THAT AFTER RUNNING THE PROGRAM, THE MATLAB ASKS YOU "The lower bound of theta in degree=' and assign it as tmin WRITE INPUT COMMAND SUCH THAT AFTER RUNNING THE PROGRAM, THE MATLAB ASKS YOU "The upper bound of theta in degree=' and assign it as tmax WRITE INPUT COMMAND SUCH THAT AFTER RUNNING THE PROGRAM, THE MATLAB ASKS YOU "The lower bound of phi in degree=' and assign it as pmin WRITE INPUT COMMAND SUCH THAT AFTER RUNNING THE PROGRAM, THE MATLAB ASKS YOU "The upper bound of phi in degree=' and assign it as pmax ASSIGN tinc, pinc and rad as 2, 4, and pi/180 respectively in three lines. theta1=(tmin:tine:tmax); phil (pmin:pinc:pmax); theta=theta1.*rad; theta-thetai.*rad; phi-phii. *rad; USE meshgrid command such that [THETA, PHI] is meshgrid of (theta,phi); yı-input('The field pattern: E(THETA, PHI)='); v=input('The field pattern: P(THETA,PHI)=','s'); NOW ASSIGN Y AS ABSOLUTE VALUE OF y1 ratio=max(max(y)); PHI,y); %learn about [X,Y,Z]=sph2cart(THETA, sph2cart command mesh(X,Y,Z); % also learn mesh command title('3 D Pattern', 'Color', 'b', 'FontName','Helvetica', 'FontSize', 12, Font fprintf("\n Input Parameters: \n----------- -)); fprintf("\n Theta =%2.of,tmin); fprintf(': %2.of,tinc); fprintf(: %2.of, tmax); fprintf("\n Phi=%2.0f,pmin); fprintf('%2.of,pinc); fprintf(': %2.of,pmax); fprintf("\n FIELD PATTERN: %s',v) fprintf("\n \n Output is shown in the figure below-------- fprintf("\n'); after running give the following parameters: The Lower Range of Theta in Degree= o The Upper Range of Theta in Degree= 360 The Lower Range of Phi in Degree o The Lower Range of Phi in Degree- o The Upper Range of Phi in Degree= 360 The field pattern: E(THETA,PHI)=1 The field pattern: P(THETA,PHI)=1 The Output should look like this: Input Parameters: Theta = 0 : 2:360 Phi = 0 : 4 : 360 FIELD PATTERN : 1 Output is shown in the figure below-- 3D Pattern 0.5 0 -0.5 0.5 -0.5 -1 -0.5 O 0.5 The Part of the MATLAB code is here: (ADD and REMOVE) clc; close all; clear all; WRITE INPUT COMMAND SUCH THAT AFTER RUNNING THE PROGRAM, THE MATLAB ASKS YOU "The lower bound of theta in degree=' and assign it as tmin WRITE INPUT COMMAND SUCH THAT AFTER RUNNING THE PROGRAM, THE MATLAB ASKS YOU "The upper bound of theta in degree=' and assign it as tmax WRITE INPUT COMMAND SUCH THAT AFTER RUNNING THE PROGRAM, THE MATLAB ASKS YOU "The lower bound of phi in degree=' and assign it as pmin WRITE INPUT COMMAND SUCH THAT AFTER RUNNING THE PROGRAM, THE MATLAB ASKS YOU "The upper bound of phi in degree=' and assign it as pmax ASSIGN tinc, pine and rad as 2, 4, and pi/180 respectively in three lines. theta1=(tmin:tine:tmax); phil (pmin:pinc:pmax); theta=theta1.*rad; theta=theta1.*rad; phi-phil.*rad; USE meshgrid command such that [THETA, PHI] is meshgrid of (theta, phi); y1=input("The field pattern: E(THETA,PHI)='); v=input('The field pattern: P(THETA,PHI)=','s'); NOW ASSIGN Y AS ABSOLUTE VALUE OF y1 ratio=max(max(y)); PHI,y); %learn about [X,Y,Z]=sph2cart(THETA, sph2cart command mesh(X,Y,Z); % also learn mesh command title('3 D Pattern', 'Color', 'b', 'FontName','Helvetica','FontSize', 12, Font fprintf("\n Input Parameters: \n----------- -)); fprintf("\n Theta =%2.of,tmin); fprintf(': %2.of,tinc); fprintf(': %2.of, tmax); fprintf("\n Phi=%2.0f,pmin); fprintf('%2.of,pinc); fprintf(: %2.of,pmax); fprintf("\n FIELD PATTERN: %s',v) fprintf('\n \n Output is shown in the figure below-------- fprintf("\n'); after running give the following parameters: The Lower Range of Theta in Degree= o The Upper Range of Theta in Degree= 360 The Lower Range of Phi in Degree o The Lower Range of Phi in Degree o The Upper Range of Phi in Degree= 360 The field pattern: E(THETA,PHI)=1 The field pattern: P(THETA,PHI)=1 The Output should look like this: Input Parameters: Theta = 0 : 2:360 Phi = 0 4 : 360 FIELD PATTERN : 1 Output is shown in the figure below-- 3D Pattern 0.5 0 -0.5 0.5 -0.5 -1 -0.5 O 0.5 The Part of the MATLAB code is here: (ADD and REMOVE) clc; close all; clear all; WRITE INPUT COMMAND SUCH THAT AFTER RUNNING THE PROGRAM, THE MATLAB ASKS YOU "The lower bound of theta in degree=' and assign it as tmin WRITE INPUT COMMAND SUCH THAT AFTER RUNNING THE PROGRAM, THE MATLAB ASKS YOU "The upper bound of theta in degree=' and assign it as tmax WRITE INPUT COMMAND SUCH THAT AFTER RUNNING THE PROGRAM, THE MATLAB ASKS YOU "The lower bound of phi in degree=' and assign it as pmin WRITE INPUT COMMAND SUCH THAT AFTER RUNNING THE PROGRAM, THE MATLAB ASKS YOU "The upper bound of phi in degree=' and assign it as pmax ASSIGN tinc, pinc and rad as 2, 4, and pi/180 respectively in three lines. theta1=(tmin:tine:tmax); phil (pmin:pinc:pmax); theta=theta1.*rad; theta-thetai.*rad; phi-phii. *rad; USE meshgrid command such that [THETA, PHI] is meshgrid of (theta,phi); yı-input('The field pattern: E(THETA, PHI)='); v=input('The field pattern: P(THETA,PHI)=','s'); NOW ASSIGN Y AS ABSOLUTE VALUE OF y1 ratio=max(max(y)); PHI,y); %learn about [X,Y,Z]=sph2cart(THETA, sph2cart command mesh(X,Y,Z); % also learn mesh command title('3 D Pattern', 'Color', 'b', 'FontName','Helvetica', 'FontSize', 12, Font fprintf("\n Input Parameters: \n----------- -)); fprintf("\n Theta =%2.of,tmin); fprintf(': %2.of,tinc); fprintf(: %2.of, tmax); fprintf("\n Phi=%2.0f,pmin); fprintf('%2.of,pinc); fprintf(': %2.of,pmax); fprintf("\n FIELD PATTERN: %s',v) fprintf("\n \n Output is shown in the figure below-------- fprintf("\n'); after running give the following parameters: The Lower Range of Theta in Degree= o The Upper Range of Theta in Degree= 360 The Lower Range of Phi in Degree o The Lower Range of Phi in Degree- o The Upper Range of Phi in Degree= 360 The field pattern: E(THETA,PHI)=1 The field pattern: P(THETA,PHI)=1 The Output should look like this: Input Parameters: Theta = 0 : 2:360 Phi = 0 : 4 : 360 FIELD PATTERN : 1 Output is shown in the figure below-- 3D Pattern 0.5 0 -0.5 0.5 -0.5 -1 -0.5 O 0.5
Expert Answer:
Answer rating: 100% (QA)
The images youve provided describe a series of instructions for writing MATLAB code to generate a 3D plot The instructions provide details on how to s... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Using publicly available information for Reitmans Canada respond to the following. 1. Identify the areas of knowledge with regard to the Auditee/Company e.g., business and environment that you would...
-
You are an audit team leader overseeing the activity of a trainee auditor. Your team has just completed a surveillance audit and is assembling the final report. The trainee has not contributed to a...
-
Select an organizational change in your company or one you know. Develop an analysis designing the action plan for you, as a leader, to address the organizational change. Include the following, in...
-
(a) Using your knowledge of economics and how markets work illustrate and explain why the price of electricity has increased so much over the past 18 months throughout the EU. You should consider the...
-
A laser used to read CDs emits red light of wavelength 700 nm. How many photons does it emit each second if its power is? (a) 0.10 W, (b) LOW?
-
Construct the ATI curve for the sampling plan N = 1200, n = 50, c = 1. Suppose that the process average nonconforming rate is 3%. Explain the value of ATI for that level of nonconformance.
-
In a chemical processing plant a liquid is pumped from an open tank, through a \(0.1-\mathrm{m}\)-diameter vertical pipe, and into another open tank as shown in Fig. P12.23(a). A valve is located in...
-
Luna Lighting, a retail firm, has experienced modest sales growth over the past three years but has had difficulty translating the expansion of sales into improved profitability. Using three years'...
-
Nike had sales of $44.487 billion in 2021. Suppose you expected its sales to grow at a rate of 18% in 2022, but then slow by 3% per year to the long-run growth rate that is characeristic of the...
-
Reconsider the Goferbroke Co. prototype example, including its analysis in Sec. 16.3. With the help of a consulting geologist, some historical data have been obtained that provide more precise...
-
On July 15, 2021, Ortiz & Co. signed a contract to provide Ever Fresh Bakery with an ingredient-weighing system for a price of $93,600. The system included finely tuned scales that fit into Ever...
-
With the money he earned from his volleyball training school, Jay just purchased a 10%, semi-annual, $1,000 bond exactly three months after the last interest payment date. The bond was priced at...
-
Calculate the Altman Z score for both years. Would you give a loan to the company? Below you can find "Alpha Logistics" financial statements for 2020 and 2019 (all amounts are in euro): Balance Sheet...
-
Suppose you invested $ 1 0 , 0 0 0 in an account that pays 5 % simple interest. How much money will you have at the end of 5 years?
-
Luxury furniture is promoting a no HST ( 1 3 % ) event for the fall sale. What is the actual selling price for the Sofa before tax shown on your receipt, if the ticket price of the sofa is $ 7 9 5 ....
-
With a present value of $100,000, an interest of 5% and a term of five years: i. Calculate the annual payment. ii. Prepare the amortisation schedule based on the annual payment.
-
One major limitation of using accounting profitability as a measure of competitive advantage is its focus __________on versus ________. Multiple Choice Tangible assets Intangible assets Resources...
-
Why do CPA firms sometimes use a combination of positive and negative confirmations on the same audit?
-
Discuss a situation in which it would be more appropriate to use a dowhile statement than a while statement. Explain why.
-
How can generic methods be overloaded?
-
State whether each of the following is true or false. If false, explain why. a) The Key Data property includes data about modifier keys. b) A Form is a container. c) All Forms, components and...
-
The following data refer to a compound impulse turbine having two rows of moving blades and one row of fixed blades in between them. Nozzle angle \(=15^{\circ}\), Exit velocity of steam from the...
-
In a stage of impulse-reaction turbine, steam enters with a speed of \(250 \mathrm{~m} / \mathrm{s}\) at an angle of \(30^{\circ}\) in the direction of blade motion. The mean blade speed is \(150...
-
A simple impulse turbine has one ring of moving blades running at \(150 \mathrm{~m} / \mathrm{s}\). The absolute velocity of steam at exit from the stage is \(80 \mathrm{~m} / \mathrm{s}\) at an...
Study smarter with the SolutionInn App