How can I change marker size and form based on diameter and ellipticity values over frame?
Ältere Kommentare anzeigen
My particle changes their size, form and coordinate over frame. I'd like to display their trajectory with the form of the particle at each point.
How can I change marker size based on diameter(Size of the particle) and ellipticity values(Form of the particle)?
Attached table has 5 columns(Frame number, Xcoordinate,Ycoordinate, diameter of marker, ellipticity( [ (sigmax-sigmay)/(sigmax+sigmay) ] cos(2theta)).
A=xlsread('example.xlsx');
t=A(:,1);
xcoor=A(:,2);
ycoor=A(:,3);
diameter=A(:,4);
ellipticity=A(:,5);
frame=length(t);
for i=1:frame
p1=plot(xcoor,ycoor);
p1.Color(4) = 0.25;
hold on
plot(xcoor(i),ycoor(i),'-ko','MarkerSize',20);
drawnow;
hold off
end
2 Kommentare
darova
am 26 Jul. 2019
Maybe just draw small circle of radius you want?
Jaehwi Bong
am 26 Jul. 2019
Bearbeitet: Jaehwi Bong
am 26 Jul. 2019
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu 2-D and 3-D Plots 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!