How to plot x-axis in both Celsius and Kelvin?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Do you know a simple way how to plot y where axis at bottom is in Kelvin and axis at top is on Celsius?
y = [1 2 3 4 5 6 7 8 9 10]; % variable dependent on temperature
t = [10 20 30 40 50 60 70 80 90 100]; % temperature in degC
T = t + 273.15; % temperature in Kelvin
figure(1)
plot(t,y)
hold on
plot(T,y) % doesnt work so well
xlabel('Temperature, K')
xlabel('Temperature, degC')
I found this link but the example is a bit too compicated..
Thank you for help!
6 comentarios
Star Strider
el 5 de Mayo de 2019
Great!
The XLim call must be after the last line call. The arguments must be the minimum and maximum of all the independent variable vectors in all your line calls.
Respuestas (0)
Ver también
Categorías
Más información sobre Simulink Functions 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!
