blob: 7bc9ea779719bbbbd0758e78a69a8f0a282a0c85 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//Example 21_2
clc();
clear;
//To find the value of magnetic field
eo=4.2*10^-3 //units in V/m
c=3*10^8 //Units in meters/sec
bo=eo/c //Units in T
printf("The value of the magnetic field is Bo=")
disp(bo)
printf("T")
|