Need help with my code I have I don't know how to label the columns on it and change "table" to another function like disp(), display(), and fprintf() instead.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
C=-50:10:150;
F=(C*(9/5))+32;
fprintf('HW #6 - Evan Melanson \n\n');
fprintf('Problem 1 \n\n');
oC=C';
oF=F';
fprintf('degree Celsius and Fahrenheit table\n');
disp(t(round(oC,3),round(oF,3)))
%this is what i have so far whatever you can do to make it work with the
%titles on the columns and ether disp(), display(), and fprintf() instead
%works for me
0 comentarios
Respuestas (1)
Yusuf Suer Erdem
el 18 de Nov. de 2021
C=-50:10:150;
F=(C*(9/5))+32;
fprintf('HW #6 - Evan Melanson \n\n');
fprintf('Problem 1 \n\n');
oC=C';
oF=F';
fprintf('degree Celsius and Fahrenheit table\n');
oC=round(oC,3);
oF=round(oF,3);
plot(oC,oF)
xlabel('Celsius')
ylabel('Fahrenheit')
I changed your codes into this format, i hope it is what you wanted. I did not perceive the part "change table to another function". Good luck!
Ver también
Categorías
Más información sobre Structures en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!