How i can plot the below sigmoid function?
Afficher commentaires plus anciens
p=2;%Gradient coefficent
z=[0:0.1:1/2]*1e-3;
G=1-1/2*(((h/2)-z)/(h/2)).^p; Sigmoid fuction
z1=[-1/2:0.1:0]*1e-3;
G1=1/2*(((h/2)+z)/(h/2)).^p; Sigmoid function
How i can plot the sigmoid function in the all thickness [-1/2:1/2] ?
p=2;%Gradient coefficent
z=[0:0.1:1/2]*1e-3;
G=1-1/2*(((h/2)-z)/(h/2)).^p; Sigmoid fuction
z1=[-1/2:0.1:0]*1e-3;
G1=1/2*(((h/2)+z)/(h/2)).^p; Sigmoid function
Hi,
I am trying to plot the below sigmoid function versus all thickness.
Any help on how to do that?
Thanks.
Réponses (1)
KALYAN ACHARJYA
le 5 Mar 2021
It is all about specific parameter values how we know this, because we cannot be from the same subjective field.
- Define the typical values parameter.
- Expression or equation must be correct.
Here I have shown how you can obtain such a plot, but note that, to get exactly the same plot, the parameter values and expressions must be the same according to the literature.
p=1:10; %P data is OK
h=4;
z=-0.2:0.01:0.2;
for i=1:length(p)
G=1-1/2*(((h/2)-z)/(h/2)).^p(i);
plot(z./h,G);
hold on
grid on;
end
Please do modify accordingly, more note on x data, which is z/h

Catégories
En savoir plus sur Surface and Mesh Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!