Can someone please help! I cannot plot this graph.
1 view (last 30 days)
Chunru on 10 Sep 2021
x=[-0.1:.001:0.1]+eps; % your original x has only 1 point without the step.
% In addition, x can be zeros abd the y is not defined for x=0.
% Here we plot the data. However, you should check the formula
More Answers (1)
Image Analyst on 10 Sep 2021
Because your x has only one value in it. Try using linspace() and specifying the number of elements you want in x:
x = linspace(-0.1, 0.1, 2000);
y = 35000000*x + 401000./x - 17122.7./x.^2 - 1494500;
plot(x,y, 'b-', 'LineWidth', 2);