How can I change the Marker Style in a plotregression graph
Show older comments
Dear All I am doing a ANN modelling where a lot of regression graph is needed for presentation. I am planninf to present the regression graph with different marker. Normally matlab has 'circle' as a default marker type. Please guide me how to select different types of marker.
1. I tried this code but doesn't work. plot1 = plotregression(targets,outputs,'Marker','s','LineStyle','-',... 'DisplayName','Data',... 'Color',[0 0 0]); 2. The following code is applicable to select the default marker line, color but the default marker types cant be changed. y = xlsread('outputs.xls'); x = xlsread('DO.xls'); du = xlsread('Dates.xls'); figure %set(0,'DefaultMarker','*'); set(0,'DefaultLineMarker', '+') %set(0,'DefaultMarkerSize',7) set(0,'DefaultLineMarkerSize',6); set(0,'DefaultLineLineWidth', 2); %set(0,'DefaultLineMarkerColor','b'); plotregression(x, y,'All');
3. But in the normal graph I made a graph using different marker color, types and line width.
du = xlsread('Dates.xls'); plot(du,targets,'--*k','linewidth',2,'markersize',6,'markerfacecolor','k'); xlabel('Dates'), ylabel('Dissolved Oxygen (mg/l)') hold on; plot(du,outputs,'--xk','linewidth',2,'markersize',6,'markerfacecolor','w'); legend('Observed Value','Predicted Value')
I will really appriciate if you kindly guide me.Thanks in advance.
Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!