Question

can you please write this code in different way because this is for my friend and i want to change it to submit it other wise we both will get zero

i attached also the question down also i am not sure of his answers so just try to solve it and your trial will be so apprciated anyway thanks for your time and efforgts :-

From Maxwells equations we have, 0B From this expression, we need to compute H, we have the relation between B and H as B ur

the question was l. Write a MATLAB script that finds the symbolic expression of H from E given Cartesian coordinates as, E-E,(x, y, z, t) , +

From Maxwell's equations we have, 0B From this expression, we need to compute H, we have the relation between B and H as B urt MATLAB code is given below for computing H. clc; clear all; close all; % from maxwell's equations we have del X E--Del B / Delt % from the abve expression we need to obtain H. We have B-mu syms x y zt; % lets say Ex-x^3*y42"z % lets say Eys y13"z"2"X % lets say Ez-z"3"X42"y H. % now find the curl of E as follows X=[xyz]; % Now obtain the Integral of Y wrt time % H is given by H-B/mu where mu-4"pl*10A-7 % define mu as follows mu = 4"pl*10A-7; result: 14722366482869645213696"t"(x"2"z"3-2"Х"y"3"2))/5934300740056779 (ax) 14722366482869645213696*t"(x"3"y"2-2 rry"z"3)/5934300740056779 (ay) (4722366482869645213696*t(-27xA3y z+ yA3z2)/5934300740056779 (az)
l. Write a MATLAB script that finds the symbolic expression of H from E given Cartesian coordinates as, E-E,(x, y, z, t) , + Ey(x, y, z, tay + Ez(x, y, z, t) ,
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Matlab code:


% aim: to find the H; we have B=UH; { U is permeability }
% H=B/U;
%maxweell's equation--> del*E=-{del(B)/(del(t))}
% E is electric field intensity
% B magnetic flux density.

clc;clear all;close all;
  syms x y z t;
U=4*pi*10^(-7) % pearmiabilty
Ex=x^3*y^2*z;
Ey=x*y^3*z^2;
Ez=x^2*y*z^3;
E=[Ex,Ey,Ez] % Electric field
X=[x y z];
s=curl(E,X) % finding the curl of E
b=int(s,t) % integration of obtained resul of curl(E)
B=-b % Magnetic flux density
display('magnetic field intensity')
H=B/U % magnetic field intensity

output:


U =

1.2566e-06


E =

[ x^3*y^2*z, x*y^3*z^2, x^2*y*z^3]


s =

x^2*z^3 - 2*x*y^3*z
x^3*y^2 - 2*x*y*z^3
- 2*x^3*y*z + y^3*z^2


b =

t*(x^2*z^3 - 2*x*y^3*z)
t*(x^3*y^2 - 2*x*y*z^3)
t*(- 2*x^3*y*z + y^3*z^2)


B =

-t*(x^2*z^3 - 2*x*y^3*z)
-t*(x^3*y^2 - 2*x*y*z^3)
-t*(- 2*x^3*y*z + y^3*z^2)

magnetic field intensity

H =

-(4722366482869645213696*t*(x^2*z^3 - 2*x*y^3*z))/5934300740056779
-(4722366482869645213696*t*(x^3*y^2 - 2*x*y*z^3))/5934300740056779
-(4722366482869645213696*t*(- 2*x^3*y*z + y^3*z^2))/5934300740056779

Add a comment
Know the answer?
Add Answer to:
Can you please write this code in different way because this is for my friend and i want to chang...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I want the math lab code for theses problems in a unique way

    I want the math lab code for theses problems in a unique way Theory A projectile is launched from point A up an incline plane that makes an angle of 10 with the horizontal. The mountain is 6,000 m high. Vo 10° Figure 1: Flightpath of a projectile. If we neglect the air resistance, the flight path of a projectile launched at an initial speed vo and an angle θ of departure relative to the horizontal is a parabola (see...

  • Please help to answer this question and show the work clearly because I want to learn....

    Please help to answer this question and show the work clearly because I want to learn. I will give thumbs up for sure, thank you very much!!! lebi, 03134\. The Assume that a circuit has the impulse response of h(t)= { 10, elsewhere input x(t) to the circuit is given by x(t)=6u(t), where u(t) is the unit step function. Assume that the circuit output is given by y(t). a) (20 pts) Use the convolution integral to derive the expressions for...

  • Please Solove only (a)and (b) Please, Write so that I can recognize 4.20 Consider the system...

    Please Solove only (a)and (b) Please, Write so that I can recognize 4.20 Consider the system depicted in Fig. P4.20(a). The of the input signal is depicted in Fig. P4.20(b). I FT FT z(t) Z(jw) and y(t) Z(ja) and Y(jo) for the following cases: -» Y(j»). Sket (a) w(t) cos(5 mt) and h(t) sin 6 (b) w(t) cos(5mt) and h(t) sin 5 (c) w(t) depicted in Fig. P4.20(c) and h(t) sin2r cos (5 rt X(jw) z(t) x)X hit) w(t) cos...

  • MATLAB question I need the code exactly as you would write it in MATLAB. thank you...

    MATLAB question I need the code exactly as you would write it in MATLAB. thank you 1. Consider a Gaussian solution of the traveling-wave form ψ(z,t)-exp(-a(z-vt)2). The parameter values are a 1, 2. (a) Explain the physical meaning of these parameters (eg. what would happen if we took a = 10 instead?) Determine the direction of propagation of this solution: Is it traweling to the left or to the right? (2pts) (b) Write a Matlab code to plot the Gaussian...

  • I do NOT need part a. I really need help on b,c,d,and e though! Thank you

    I do NOT need part a. I really need help on b,c,d,and e though! Thank you 2. Evaluate the line integral where C is the given curve: BE SURE THAT YOU PARAMETERIZE EACH CURVE! (a) ez dr where C is the arc of the curve z = y3 from (-1,-1) to (1,1); (b) 2,2 d_T + y2 dy where C consists of the arc of the circle x2 + y2-4 from (2,0) to (0,2) followed by the line segment from...

  • can you please write every step A point charge qı- 3 uC is at the origin,...

    can you please write every step A point charge qı- 3 uC is at the origin, and another point charge q2 with charge -5C is on the x-axis at x = 4 m. (1) Find the electric field E along X axis, Y axis, and total E at the point P (4 m, 3 m) due to the two charges. Leto be the field from qı and E be the field from 42. (2)You may use the fact that K...

  • please do this problem in matlab and show me the code. Thanks. please do this problem...

    please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me the code. Thanks.please do this problem in matlab and show me the code. Thanks. please do this problem in matlab and show me...

  • Real Analysis II (Please do this only if you are sure) ********************** *********************** I am also providing the convex set definition And key details from my book which surely helps 1...

    Real Analysis II (Please do this only if you are sure) ********************** *********************** I am also providing the convex set definition And key details from my book which surely helps 11. Show that K is a convex set by directly applying the definition. Sketch K in the cases n= 1, 2, 3. is a basis for E. This is the n-parallelepiped spanned by vı, vertex 1% with 0 as a Definition. Let K E". Then K is a convex set...

  • can you please prove the following theorem using the provided axioms and defintions. using terms like...

    can you please prove the following theorem using the provided axioms and defintions. using terms like suppose in a paragraph format. please write clearly or type if you can ! 1 Order Properties Undefined Terms: The word "point and the expression "the point z precedes the point y will not be defined. This undefined expression wil be written z < y. Its negation, "z does not precede y," will be written y. There is a set of all points, called...

  • please do this problem in matlab and show me the code. Thanks. please do this problem...

    please do this problem in matlab and show me the code. Thanks. please do this problem in Matlab and show me the code. Thanks. Problem #1: Circuits and linear-systems In the last HW you developed the governing equations for the “Wheatstone”-bridge circuit used extensively in engineering applications (shown below). B R R2 A D G m RA с E The resulting equations were solved for the output voltage and currents using the function: function [V_out, I_vector] =Wheatstone_bridge (v_in, R_vector) In...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT