I just have one simple question. How do i calculate the integral of this area?
    4 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Christian Nilsson
 il 15 Ott 2017
  
    
    
    
    
    Commentato: Torsten
      
      
 il 16 Ott 2017
            r=@(z)2+sin(5*z+2.2*cos(5*z));
z=linspace(0,2*pi);
x=r(z).*cos(z);
y=r(z).*sin(z);
plot(x,y)
0 Commenti
Risposta accettata
  Star Strider
      
      
 il 15 Ott 2017
        One approach:
r=@(z)2+sin(5*z+2.2*cos(5*z));
z=linspace(0,2*pi);
x=r(z).*cos(z);
y=r(z).*sin(z);
Ixy = cumtrapz(z, abs(r(z)));
Check = max(abs(r(z)))^2 * pi;                  % Area Must Be Less Than Maximum Circle Area
plot(x,y)
axis equal
text(0, 0, sprintf('Area = %.2f', Ixy(end)), 'HorizontalAlignment','center', 'VerticalAlignment','middle')
6 Commenti
  Walter Roberson
      
      
 il 16 Ott 2017
				Note that the original question was one of discrete calculation, a finite number of specific z values. The integral() approach is for continuous z.
  Torsten
      
      
 il 16 Ott 2017
				But the formula to calculate the area inside the parametric curve (x(z),y(z)) is not abs(r(z)), discrete or not ...
Best wishes
Torsten.
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



