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

 採用された回答

John D'Errico
John D'Errico 2016 年 8 月 28 日

0 投票

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 件のコメント

Megan Mizinski
Megan Mizinski 2016 年 8 月 28 日
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