create a variable that changes its value(polynomial equation) for different time periods

2 ビュー (過去 30 日間)
Hi guys, i am trying to match a graph of my simulink model with a graph of a standarized model.
I have my lateral speed against time. This graph depends on a variable and the time. So with linear fitting i am getting two different polynomials(equations) to multiply to my graph to make it similar to the graph of the standarized model.
What i still dont know how to do is to code it. What i need to do is create a variable that changes its value(polynomial equation) for different time periods, so for example from the time 0 to 2, the variable will be a polynomial equation, and for the time 2 to 4 the variable will be other polynomial equation.
Regards,
Alejandro

回答 (1 件)

Pat Gipper
Pat Gipper 2022 年 4 月 2 日
Maybe something like this.
  1 件のコメント
Alejandro Argote Oramas
Alejandro Argote Oramas 2022 年 4 月 2 日
Thanks, i already had something like that in my code, but u gave me an idea to solve it properly!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangePolynomials についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by