Hi everybody,
I’m having some trouble visualizing a function with the ListContourPlot function. I’ve already done the calcuations and visualization in MATLAB, but need to reproduce the results in Mathematica as well. I’ve provided a screenshot from MATLAB to show you what I’m aiming for and another screenshot to show you what I’m currently getting in Mathematica.
Calculations are as follows:
linspace[x0_, x1_, n_] := Range[x0, x1, (x1 - x0)/(n - 1)];
Yrange = linspace[-10, 20, 500];
Xrange = linspace[-10, 30, 500];
RErange = 10^(Yrange);
PPLUSrange = 10^(Xrange);
constL = 0.0000346737;
constR = 100000;
z = (1 - (1/RErange)*(PPLUSrange)^0.7*constL)/(1 + (2*pi*RErange/PPLUSrange*constR));
data = Transpose[{Xrange, Yrange, z}];
ListContourPlot[data, Mesh -> None, PlotRange -> {{-10, 30}, {-10, 20}, {0, 1}}, ContourLabels -> All,
ContourShading -> None, DataRange -> {{-10, 30}, {-10, 20}}]
I’m thinking this is some kind of perspective issue, but I’m not sure.
Any help is greatly appreciated!