필터 지우기
필터 지우기

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