how to give input timeseries daily data into ANFIS

1 回表示 (過去 30 日間)
Rose Johny
Rose Johny 2021 年 3 月 18 日
回答済み: surya venu 2024 年 4 月 4 日
i have daily data for a period of 40 years, i need to do ANFIS training using this data. i need system to process date, so that in graph i can see my values against the data

回答 (1 件)

surya venu
surya venu 2024 年 4 月 4 日
Hi,
To perform ANFIS training, you can follow these steps:
  1. Load your data into MATLAB. Make sure it is in a suitable format, such as a matrix or table, with the dates as one column and the corresponding values in another column.
  2. Convert the "dates" into a numerical format that can be used for training ANFIS. MATLAB has built-in functions like "datenum" or "datetime" that can help with this conversion. Here's the documentation link for both: https://www.mathworks.com/help/matlab/ref/datenum.html https://www.mathworks.com/help/matlab/ref/datetime.html
  3. Prepare your data for ANFIS training by splitting it into input and output variables. The input variables will be the dates, and the output variables will be the corresponding values.
  4. Train the ANFIS model using the "anfis" function in MATLAB. This function allows you to specify the number of membership functions, the type of membership functions, and other training options.
  5. Once the ANFIS model is trained, you can use it to make predictions on new dates or visualize the results. You can plot the predicted values against the original dates using MATLAB's plotting functions like "plot" or "scatter".
Hope it helps.

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by