Q:

Write a function mwh_to_gj that will convert from MWh to GJ

0

Write a function mwh_to_gj that will convert from MWh to GJ. 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

mwh_to_gj.m

function out = mwh_to_gj(mwh)

% Converts from MWh to GJ

% Format of call: mwh_to_gj(mwh)

% Returns gigajoules

out = mwh * 3.6;

end

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now