MATLAB Heart Curve

Posted by Arkapravo on Stack Overflow See other posts from Stack Overflow or by Arkapravo
Published on 2010-04-27T09:53:42Z Indexed on 2010/04/27 10:13 UTC
Read the original article Hit count: 321

Filed under:

I am trying to get this in MATLAB, however I am not successful ! Any MATLAB gurus out there ?

alt text

I guess simple commands should work, a program may not be needed.

The error, I am getting is;

>> t = -pi:0.1:pi;
>> r = ((sin(t)*sqrt(cos(t)))*(sin(t) + (7/5))^(-1)) - 2*sin(t) + 2 ;
??? Error using ==> mtimes
Inner matrix dimensions must agree.

© Stack Overflow or respective owner

Related posts about matlab