Second Z-axis's

2 次查看(过去 30 天)
Hussein
Hussein 2023-8-7
I need to plot second Z axsis [0- 100%] as below figure

采纳的回答

Star Strider
Star Strider 2023-8-7
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')
.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Axis Labels 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by