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 :(

 采纳的回答

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 个评论

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

请先登录,再进行评论。

更多回答(0 个)

产品

Community Treasure Hunt

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

Start Hunting!

Translated by