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.
Asked
Active
Viewed 58 times
2
-
So, what is the figure it gives? – Mostafa Ayaz Mar 31 '20 at 08:38
1 Answers
0
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) =.
Arthur
- 199,419
-
Thank you so much. I have followed your suggestion and I got the figure that I want. – Fashareena Mohd Mar 31 '20 at 08:46
