How to make conditional plotting
显示 更早的评论
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
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!