フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Please guide to define these functions

1 回表示 (過去 30 日間)
farzad
farzad 2014 年 7 月 17 日
コメント済み: farzad 2014 年 7 月 17 日
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 件のコメント
farzad
farzad 2014 年 7 月 17 日
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])

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by