How to plot the graph for parameter vs x variable?

59 Views Asked by At

I'm trying to plot the graph for a parameter vs x variable. I used Matlab software. But I did not get a graph that I want. Is there anything wrong with my code? Here I attached the parameter value and Matlab code that I used. Hope someone can help me.enter image description here

enter image description here

1

There are 1 best solutions below

1
On BEST ANSWER

The way you write your code, MATLAB will think that D is just a number that is, when all is said and done, set to 0.13. You probably want it to be an array to align with the values in the x array. So I suggest that you, in each for loop, change D = to D(i) =.