Round a signal in simulink?
4 ビュー (過去 30 日間)
古いコメントを表示
Can I round a signal in simulink to the third decimal place?
The round fuction block rounds to the nearest integer, and when I try and use round(var) in a user defined matlab function it works, but round(var,3) errors out.
I feel like this should have a very easy solution, which is currently evading me.
2 件のコメント
Mathieu NOE
2020 年 10 月 20 日
hi
this is a dirty trick but it works
first multiply by 1000, round , then multiply by 1e-3
回答 (1 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!