Why do i need to use .^ notation ?

% This is my function.
function y = PBTask4P1_f(x)
y = 4.2*x.^4-5*x.^3-7*x;
plot(x,y);
xlabel('INPUT X')
ylabel('OUTPUT Y')
end

Answers (0)

This question is closed.

Tags

Asked:

on 3 Apr 2021

Closed:

on 3 Apr 2021

Community Treasure Hunt

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

Start Hunting!