Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB EXERCISE 1.4 MATLAB that uses functions from the previous three MATLAB exercises and calculates and plots the electric force on a point charge due

image text in transcribed

MATLAB EXERCISE 1.4 MATLAB that uses functions from the previous three MATLAB exercises and calculates and plots the electric force on a point charge due to N other point charges in free space. The input to the program consists of N, coordinates of charge points, and charges Q1, Q2,..., Qv, as well as coordinates and charge of the point charge on which the force is evaluated. (ME14.m on IR) Electric force due to multiple charges. Write a program in Write a MATLAB script: Name the file "AME-01-04.m". Submit a listing of your script code. Get user information using input () N number of source charges X, then Y, then Z - the source charge location in units of cm Q-the value of the source charge in nC Repeat for each vector, X, then Y, then Z the test charge location in units of cmm Q-the value of the test charge in nC. Write the components of the Force and its magnitude on the console Draw 'o' at each source point and a dotted line from each source to the field point in BLUE. Using vecPlot3D, draw the vector contribution from each source at the field point in BLUE. (NO circle) draw the Total Force Vector at the field point in RED. (including the circle , 'o') Scale all vectors by dividing by (100 * magnitude of the resultant force) Submit an image of your figure window for Q1--nC a (1,0,0), Q2nC(0,1,0), Q3-+1nC @ (1,1,0), Qtest +1nC a (3,3,3)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

How to find if any no. is divisble by 4 or not ?

Answered: 1 week ago

Question

Explain the Pascals Law ?

Answered: 1 week ago

Question

Question Can employees make contributions to a profit sharing plan?

Answered: 1 week ago