Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hi all,
I am getting an error as all evaluations resulted in either an error or a complex result
when I try plot a 2D graph in which,
x-axis ranges from 0.01 to 1
y-axis is logarithmic.
I attached my code below.
Could you please tell me how to overcome this error ?
y-axis must be logarithmic and x-axis is normal values ranging from 0.01 to 1.
Solved! Go to Solution.
If I plot regularly, the values of f2(y) are negative. You can't have the log of a negative number.
If I plot the negative and make the vertical scale log, you get:
If I plot regularly, the values of f2(y) are negative. You can't have the log of a negative number.
If I plot the negative and make the vertical scale log, you get:
Hi vetri veeran,
you have to use the logarithmic scale for the x-axis only.
Regards
F. M.