what is wrong with my script
Mostrar comentarios más antiguos
clear all
for loop_index = 1:2
x = input('Input number to convert');
units = input('Input the units to convert from')
if units == mm
cm = x/10
m = x/1000
inch = x/25.4
km = x/1000000
end
if units == cm
mm = x*10
m = x/100
inch = x/2.54
km = x/100000
end
if units == m
mm = x*1000
cm = x*100
inch = x*39.37
km = x/1000
end
end
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Axis Labels en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!