I am given four functions, namely, F1[e,r ], F2[e,r], G1[e,r], G2[e,r]. I have the following code for conditional plotting in Wolfram Mathematica:
Cond1[e_, r_] := If[And[0 < F1[e_,r_ ]< 1, 0 < G1[e_,r_ ]< 1] , 1, 0]
Cond2[e_, r_] := If[And[0 < F2[e_,r_ ] < 1, 0 <F2[e_,r_ ] < 1,], 1, 0]
Plot3D[Cond1[e, r], {e, -5, 5}, {r, 0.01, 0.99}]
Plot3D[Cond2[e, r], {e, -5, 5}, {r, 0.01, 0.99}]
I seem to be unable to generate the correct code in Matlab to make the same plots. How can I make those conditional plottings in Matlab? Would appreciate any answer. Tilek

댓글 수: 2

Rik
Rik 2020년 1월 31일
So you have these 4 functions that determine Cond1 and Cond2. What should actually be plotted for these four combinations?
What have you tried so far to write this in Matlab syntax instead?
Rik
Rik 2020년 1월 31일
Comment posted as answer by Tilek Zhumabek:
Thank you very much for your response! But I have already handled it.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

2020년 1월 30일

댓글:

Rik
2020년 1월 31일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by