Cody

Problem 2866. Matlab Basics - Rounding II

Created by Yaz Majeed in Community

Write a script to round a variable x to 3 decimal places:

e.g. x = 2.3456 --> y = 2.346

Solution Stats

73.38% Correct | 26.62% Incorrect
Last solution submitted on Mar 26, 2019

Solution Comments

Recent Solvers203

Suggested Problems

More from this Author28

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!