Second Z-axis's

2 views (last 30 days)
Hussein
Hussein on 7 Aug 2023
Answered: Star Strider on 7 Aug 2023
I need to plot second Z axsis [0- 100%] as below figure

Accepted Answer

Star Strider
Star Strider on 7 Aug 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')
.

More Answers (0)

Categories

Find more on Formatting and Annotation in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!