Where am i going wrong in this "for loop" script associated with the question below? See the script below the question:
Mostrar comentarios más antiguos
Write a script which will print a table on the screen of the temperature in Celsius and the corresponding temperature in Fahrenheit from 0oC to 100oC in steps of 5oC. [Do not use arrays, calculate values individually with a for loop] (Fahrenheit = 1.8 × Celsius + 32)
script:
x= 0:5:100
y=((1.8*x)+32);
fprintf('%d in Farenheight = %d \n',x,y)
end
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Simulink 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!