Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
I did the program correctly.
But, when I try to plot i(n) versus vk.
I am gettting error as "All evaluations result in error or a complex result".
can anyone help me.
Thank you.
Solved! Go to Solution.
You can't plot i(n) vs v.k, because i is not a function of v.k. I think this is what you want.
I don't see that error anywhere in your worksheet.
However, regarding your definition of i(n), v.k is a range variable, and you can't use a range variable like that. It's not clear to me exactly what you want to do though. If v.k were a vector then i(n) would return multiple values for any given value of n (the number of values being equal to the number of elements in the vector). Is that what you want, or something different?
Yes, I want to plot values of i(n) versus vk(range values from -150e-3 to 150e3).
where n is the state variable which is computed from f(n) :=find(n)
when i try to plot i(n) versus vk(range variable). I am getting error as
All evaluations resulted in either an error or as a complex result.
You can't plot i(n) vs v.k, because i is not a function of v.k. I think this is what you want.