How do I plot this function A, i dont have syms so i need to plot it without that! Thanks!

1 view (last 30 days)
clear all
close all
clc
A = -.125*r+(1.125/r);
figure(1);
fplot(A)

Answers (1)

VBBV
VBBV on 9 Dec 2022
clear all
close all
A = @(r) -.125*r+(1.125/r);
figure(1);
fplot(A,[-5 5])
Warning: Function behaves unexpectedly on array inputs. To improve performance, properly vectorize your function to return an output with the same size and shape as the input arguments.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!