Second Z-axis's
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I need to plot second Z axsis [0- 100%] as below figure

0 Commenti
Risposta accettata
Star Strider
il 7 Ago 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')
.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Formatting and Annotation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!