0% found this document useful (0 votes)
9 views2 pages

Coulombs Law

Uploaded by

ali amin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

Coulombs Law

Uploaded by

ali amin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Page 1 of 2

COULOMB’S LAW

A small paper on Coulomb’s law, to get the


complete paper please write to
directotkampo@yahoo.com

Some description of the work is contained in the following.

A program in Matlab that will find the Electric Force or Coulomb


Force at various choices. In total, there are more than two (002)
choices.

case 1

q1 = input('Enter the magnitude of charge 1 in descending order\n q1 =


');

q2 = input('Enter the magnitude of charge 2 in descending order\n q2 =


');

r = input('Enter the distance in descending order\n r = ');

F = k * (q1 .* q2) ./ r.^2;

% Create the table

T = table(q1', q2', r', F');

% Set the variable names of the table.

T.Properties.VariableNames(1) = {'CHARGE 1'};

T.Properties.VariableNames(2) = {'CHARGE 2'};

T.Properties.VariableNames(3) = {'DISTANCE'};

T.Properties.VariableNames(4) = {'ELECTRIC FORCE or COULOMB FORCE'};

% Draw the table


Page 2 of 2

disp('THE REQUIRED TABLE IS')

plot(F);

title('\bf Electric Force or Coulomb Force')

case 2

q1 = input('Enter the magnitude of charge 1 in descending order\n q1


= ');

q2 = input('Enter the magnitude of charge 2 in ascending order\n q2 =


');

r = input('Enter the distance in ascending order\n r = ');

F = k * (q1 .* q2) ./ r.^2;

% Create the table

T = table(q1', q2', r', F');

% Set the variable names of the table.

T.Properties.VariableNames(1) = {'CHARGE 1'};

T.Properties.VariableNames(2) = {'CHARGE 2'};

T.Properties.VariableNames(3) = {'DISTANCE'};

T.Properties.VariableNames(4) = {'ELECTRIC FORCE or COULOMB FORCE'};

% Draw the table

disp('THE REQUIRED TABLE IS')

plot(F);

title('\bf Electric Force or Coulomb Force')

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy