change the color nodes
Show older comments
hi
i want change the color some nodes like the this pic but i can't
pls help me
thanks

2 Comments
Adam Danz
on 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
on 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.
Accepted Answer
More Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects 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!