Borrar filtros
Borrar filtros

Second Z-axis's

2 visualizaciones (últimos 30 días)
Hussein
Hussein el 7 de Ag. de 2023
Respondida: Star Strider el 7 de Ag. de 2023
I need to plot second Z axsis [0- 100%] as below figure

Respuesta aceptada

Star Strider
Star Strider el 7 de Ag. de 2023
Perhaps this —
x = linspace(0, 40, 20).';
zv = linspace(2, 4.5, 4);
z = repmat(zv,1,3).*exp(-0.1*x) + rand(numel(x),12)/2.5;
xm = repmat(x,1,4);
ym = repmat(ones(size(x)),1,4);
zm = reshape(z,20,4,[]);
figure
hold on
for k = 1:size(zm,3)
plot3(xm,ym*(k-1),zm(:,:,k), 'o-k')
end
plot3(ones(6,1)*min(x), ones(6,1)*3, 5*(0:0.2:1).', '-k')
text(ones(6,1)*min(x), ones(6,1)*3, 5*(0:0.2:1).', compose('% .0f%%',100*(0:0.2:1).'), 'Horiz','left', 'Rotation',-10)
hold off
grid on
view(130,30)
yticks([0 1 2])
yticklabels({'One','Two','Three'})
xlabel('Temp °C')
ylabel('Refrigirant')
zlabel('CCP')
.

Más respuestas (0)

Categorías

Más información sobre Formatting and Annotation en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by