What type of Build in function used for plot such graph? or how to plot such graph?
조회 수: 2 (최근 30일)
이전 댓글 표시
채택된 답변
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!