Yasmin Eady
Followers: 0 Following: 0
Feeds
已回答
Write a function that receives an input argument of a number of kilometers (km) and will output the conversions into both miles (mi) and US nautical miles (n.m.). Use the conversions: 1 km = 0.621 mi and 1 km = 0.540 n.m.
function [miles, nmiles] = convert(k) km_to_miles = 0.621; km_to_nmiles = 1/1.852; miles = k * km_to_nmil...
Write a function that receives an input argument of a number of kilometers (km) and will output the conversions into both miles (mi) and US nautical miles (n.m.). Use the conversions: 1 km = 0.621 mi and 1 km = 0.540 n.m.
function [miles, nmiles] = convert(k) km_to_miles = 0.621; km_to_nmiles = 1/1.852; miles = k * km_to_nmil...
2 months 前 | 0