What type of Build in function used for plot such graph? or how to plot such graph?
2 views (last 30 days)
Show older comments
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/905635/image.jpeg)
0 Comments
Accepted Answer
Rik
on 24 Feb 2022
The plot3 function will do this.
help plot3
4 Comments
Simon Chan
on 5 Mar 2022
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'};
More Answers (0)
See Also
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!