6 lines
120 B
Matlab
6 lines
120 B
Matlab
function J = ev_to_j(electron_volts)
|
|
%EV_TO_J Transform electron-volts into Joules
|
|
J = electron_volts * 1.602e-19;
|
|
end
|
|
|