Solving implicit equation for three variables
Show older comments
I want to solve the supersphere equation x^n+y^n=1 for x_range=y_range=.1:.1:1 and n=.3:.3:3.
I have done the plot with fimplicit command, but that was improper for me since I cannot find the x and y values for the stacked sequence.
Please help.
h=20; %no of points
x_max=1;
x_min=0.1;
y_max=1;
y_min=0.1;
n_max=3;
n_min=0.1;
dx=(x_max-x_min)/h;
dy=(y_max-y_min)/h;
dn=(n_max-n_min)/h;
[i,j,k] = meshgrid(1:h+1,1:h+1,1:h+1);
x= x_min + (i-1).* dx;
n= n_min + (j-1).* dn;
y= y_min + (k-1).* dy;
numElementsN = length(n);
numElementsX = length(x);
numElementsY = length(y);
U = zeros(numElementsX,numElementsN,numElementsY);
for r=1:numElementsN
for s=1:numElementsX
for p=1:numElementsY
z=fzero(findt,0.1:.1: 1, 0.1:.1: 1, 0.3 :.1: 3);
end
end
end
where, the function findt is referred to
function F=findt(x,y,n)
F = x.^n+y.^n-1;

Accepted Answer
More Answers (0)
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!