I tried plotting the area defined by (x,y), where x=a^2-b^2 , y=a*b , 0<=a<=1 & 0<=b<=1: in MATLAB, but I don't know how to do it probably. Here is what I have done so far:
a=0:0.0001:1; b=0:0.0001:1; x=a.^2-b.^2; y=a.*b; plot(x,y);
Please help me The problem is that when evaluating x & y, I don't want a & b to be always the same as long as 0<=a<=1 & 0<=b<=1. But I have no idea to resolve this issue!!
You know how to use meshgrid! In fact, I know that, because you used it in your other question.
So it you want to plot something over all combinations of a and b, then why not use meshgrid? (10000 points in each dimensions will be wild overkill of course.)
Or perhaps you want this?
rect = [a 0+0*a; 1+0*b b; flip(a) 1+0*a; 0+0*b flip(b)]; a = rect(:,1); b = rect(:,2); x=a.^2-b.^2; y=a.*b; plot(x,y,'-b');