MATLAB Answers

Round a signal in simulink?

2 views (last 30 days)
John Doe
John Doe on 20 Oct 2020
Answered: Fangjun Jiang on 20 Oct 2020
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.

Sign in to comment.

Answers (1)

Fangjun Jiang
Fangjun Jiang on 20 Oct 2020


Community Treasure Hunt

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

Start Hunting!