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!