change the color nodes
Ältere Kommentare anzeigen
hi
i want change the color some nodes like the this pic but i can't
pls help me
thanks

2 Kommentare
Adam Danz
am 5 Jun. 2019
OP's code in the attached nodes.m file:
clc
clear
n = 10;
m=10;
b=2;
l=2;
x = linspace(0,b,n+1);
dx = x(2)-x(1);
y = linspace(0,l,m+1);
dy =y(2)-y(1);
X=[0:dx:b];
Y=[0:dy:l];
hold on
for i=1:m+1
for j=1:n+1
xe=X(i);
ye=Y(j);
plot(xe,ye,'rx','LineWidth',5,'MarkerSize',2,'color','b')
end
end
title('Nodes')
Steven Lord
am 5 Jun. 2019
What function did you use to create this plot? That will affect how or if you can do what you're asking.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
