How to properly write model function?

I want this to be my model function:
and I have this:
(I have no idea what the periods (.) are for so I just through them in where ever)
Help please :(

 Accepted Answer

READ the error message. What is the little pointer pointing at?
Does this expression represent the product of p(3) and x?
p(3)x
Or is that just invalid syntax?
If you have no idea how to write a MATLAB expression, then you need to start at the beginning. Read some of the getting started tutorials. You might also learn what the . does for those operators.

1 Comment

This is my last project ever using matlab so i'm not going to bother learning.
thanks for helping me see the error.

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!