Azzera filtri
Azzera filtri

Moving my plotted Figure

1 visualizzazione (ultimi 30 giorni)
Tertius Poolman
Tertius Poolman il 29 Nov 2020
Hi There.
I am trying to align my plotted figure to my annotations. Can someone please assist me with this. Please see picture below. The arrows and dimensional lines are supposed to be in line with the black circles (nodes)
I used the live plot editor and this is what it should look like. But which command do I use to achieve this and what are the values.
My annotations are as follows:
%Lines
annotation('line',[0.1828125 0.859895833333333],[0.110940298507463 0.110940298507463]);
annotation('line',[0.1828125 0.1828125],[0.070362473347548 0.14818763326226]);
annotation('line',[0.408333333333333 0.408333333333333],[0.070362473347548 0.14818763326226]);
annotation('line',[0.634375 0.634375],[0.070362473347548 0.14818763326226]);
annotation('line',[0.859895833333333 0.859895833333333],[0.070362473347548 0.14818763326226]);
annotation('line',[0.953645833333333 0.911979166666667],[0.185501066098081 0.185501066098081]);
annotation('line',[0.953645833333333 0.911979166666667],[0.517057569296374 0.517057569296374]);
annotation('line',[0.953645833333333 0.911979166666667],[0.849680170575692 0.849680170575692]);
annotation('line',[0.933333333333333 0.933333333333333],[0.185501066098081 0.849680170575692]);
%Loads
annotation('textarrow',[0.1828125 0.1828125],[0.584287846481876 0.536247334754797],'Color',[1 0 0],'String',{'10kN'},'FontSize',12);
annotation('textarrow',[0.1828125 0.1828125],[0.91904264392324 0.871002132196162],'Color',[1 0 0],'String',{'10kN'},'FontSize',12);
annotation('textarrow',[0.408333333333333 0.408333333333333],[0.584287846481876 0.536247334754797],'Color',[1 0 0],'String',{'10kN'},'FontSize',12);
annotation('textarrow',[0.408333333333333 0.408333333333333],[0.91904264392324 0.871002132196162],'Color',[1 0 0],'String',{'10kN'},'FontSize',12);
annotation('textarrow',[0.634375 0.634375],[0.584287846481876 0.536247334754797],'Color',[1 0 0],'String',{'10kN'},'FontSize',12);
annotation('textarrow',[0.634375 0.634375],[0.91904264392324 0.871002132196162],'Color',[1 0 0],'String',{'10kN'},'FontSize',12);
annotation('textarrow',[0.859895833333333 0.859895833333333],[0.584287846481876 0.536247334754797],'Color',[1 0 0],'String',{'10kN'},'FontSize',12);
annotation('textarrow',[0.675 0.644791666666667],[0.517057569296374 0.517057569296374],'Color',[1 0 0],'String',{'10kN'},'FontSize',12);
annotation('textarrow',[0.897916666666667 0.870833333333333],[0.517057569296374 0.517057569296374],'Color',[1 0 0],'String',{'10kN'},'FontSize',12);
%Dimension Annotations
annotation('textbox',[0.285375 0.11407249466951 0.01775 0.0266524520255864],'String',{'4m'},'FontSize',12,'FitBoxToText','off','EdgeColor',[1 1 1]);
annotation('textbox',[0.5119375 0.11407249466951 0.01775 0.0266524520255864],'String',{'4m'},'FontSize',12,'FitBoxToText','off','EdgeColor',[1 1 1]);
annotation('textbox',[0.739020833333333 0.11407249466951 0.01775 0.0266524520255864],'String',{'4m'},'FontSize',12,'FitBoxToText','off','EdgeColor',[1 1 1]);
annotation('textbox',[0.915583333333333 0.353944562899787 0.01775 0.0266524520255864],'String',{'3m'},'FontSize',12,'FitBoxToText','off','EdgeColor',[1 1 1]);
annotation('textbox',[0.915583333333333 0.674840085287846 0.01775 0.0266524520255864],'String',{'3m'},'FontSize',12,'FitBoxToText','off','EdgeColor',[1 1 1]);

Risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by