How to solve the the parameter 'SampleTime' must be a real double scalar (period) or a real double vector of length 2 (period, offset).
19 ビュー (過去 30 日間)
古いコメントを表示
the parameter 'SampleTime' must be a real double scalar (period) or a real double vector of length 2 (period, offset); where period, offset must be finite and non-negative and offset must be less than period.
10 件のコメント
困
2024 年 7 月 30 日
移動済み: Fangjun Jiang
2024 年 7 月 30 日
I still came across this problem, Anyone knows how to fix it?
Fangjun Jiang
2024 年 7 月 30 日
In this particular case, class(Ts) being 'single' was the root cause. The solution was to specify the sample time as 'double(Ts)'.
回答 (2 件)
Fangjun Jiang
2022 年 7 月 22 日
編集済み: Fangjun Jiang
2023 年 4 月 28 日
This is the cause and it shocked me.
The "Ts" is currently of data type "single". Change it to be "double".
0 件のコメント
Walter Roberson
2022 年 7 月 23 日
移動済み: Joel Van Sickel
2023 年 4 月 27 日
specify double(Ts) as the Sample Time in the block?
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Custom Training Loops についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!