What type of Build in function used for plot such graph? or how to plot such graph?
1 回表示 (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/905635/image.jpeg)
0 件のコメント
採用された回答
Rik
2022 年 2 月 24 日
The plot3 function will do this.
help plot3
4 件のコメント
Simon Chan
2022 年 3 月 5 日
Workaround as follows:
clear; clc;
rawdata = readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/915159/branch%20loss%20for%20all%20case.xlsx');
figure
ax = gca;
plot3(ax,1:length(rawdata),repelem(1,1,length(rawdata)),rawdata(:,1),'b--');
hold(ax,'on')
grid(ax,'on');
for k = 2:5
plot3(ax,1:length(rawdata),repelem(k,1,length(rawdata)),rawdata(:,k));
end
hold(ax,'off');
xlabel(ax,'Branch');
zlabel(ax,'Branch power loss (kW)');
ylabel(ax,'DSTATCOM');
ax.YTickLabel={'base case','dg1','dg2','dg3','dg4'};
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!