Second Z-axis's
4 ビュー (過去 30 日間)
古いコメントを表示
I need to plot second Z axsis [0- 100%] as below figure
0 件のコメント
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Formatting and Annotation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!