plot function with its inverse reflection
Mostrar comentarios más antiguos
Hello every one,
If possible..I need plot the function.

The one part of function at the top of the graph, its base at alpha =0.5
and contains an inverse reflection in the down of alpha =0.5
I don't know how to use inverse reflection to the function about alpha =0.5, in my file the inverse reflection is around zero ?,
Or is it better to split one function into two functions and drawing it?but what about alpha?
The output of the drawing like this alpha , with the top and down part of functions

but in some different in shape of function.
If any Prof. can help me in correcting any one of my file ...thanks allots
12 comentarios
darova
el 19 de Ag. de 2021
Do you have any ideas what is wrong with your code? There is no
in original formulas. What did you get it from?
I found a mistake in the condition: when x=b or x=c then two rows can be true
Those peaks show that

hasan s
el 19 de Ag. de 2021
darova
el 19 de Ag. de 2021
i see
Why don't just the data?
x1 = x * 0.5;
g2 = g1*0.5;
plot(x1,g2+0.5)
line(x1,-g2+0.5)
hasan s
el 21 de Ag. de 2021
As i said previously: check the conditions carefully, because a few conditions are met simmultaneously
[a,b,c,d] = deal(1,2,3,4);
x = b;
cond1 = a <= x && x <= b; % condition is met
cond2 = b <= x && x <= c; % condition is met
cond3 = c <= x && x <= d;
[cond1 cond2 cond3]
hasan s
el 23 de Ag. de 2021
hasan s
el 30 de Ag. de 2021
darova
el 1 de Sept. de 2021
Was happy to help. Cheers
Respuestas (0)
Categorías
Más información sobre Surface and Mesh Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

