Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Please guide to define these functions

1 Ansicht (letzte 30 Tage)
farzad
farzad am 17 Jul. 2014
Kommentiert: farzad am 17 Jul. 2014
Hi All
I would like to know how can I parametrize and define the function of the shape that I have put in the following attached photo , if you could give me all the functions to create all the shapes to be able to change between them
thank you very much
  1 Kommentar
farzad
farzad am 17 Jul. 2014
I am using this code , but always have a size problem , cause all the parts should be functions of each other
N=2000; c=.5; p=4*c; alfa=pi/3; deltax=p/N; l1=p/2-2*c*cot(alfa); l1=floor(l1/deltax)*deltax; R=1; x1=0; x2=c*cot(alfa)-cos(alfa)*R*tan(alfa/2); x2=floor(x2/deltax)*deltax; x3=c*cot(alfa)+R*tan(alfa/2); x3=floor(x3/deltax)*deltax; x4=c*cot(alfa)+l1/2; x4=floor(x4/deltax)*deltax; % x6=x3+c*cot(alfa); x=[x1:deltax:x2-deltax]; y2=tan(alfa).*x; x=[x2:deltax:x3-deltax]; xc=x3; yc=c-R; y3=sqrt(R^2-(x-xc).^2)+yc; x=[x3:deltax:x4-deltax]; p=4*x4; y4=c*x./x; y=[y2 y3 y4]; x=x1:deltax:x4-deltax; plot(x,y) break y=[y y(end:-1:2)]; y=[y -y(2:end)]; x=x1:deltax:p+deltax; plot(y) ylim([-1.5*c 1.5*c])

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by