Write a function mwh_to_gj that will convert from MWh to GJ
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:3| Question number:24.3
All Answers
total answers (1)
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:3| Question number:24.3
total answers (1)
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