How to remove zero from float value.?

Mira le · Jun 19, 2023 · 1.9K views
Question
Hello everyone,   I have a problem I would like to help me solving it i have float value when I make division opeation and I obained value like this: 0.9093 0.9074 0.9014 I use round but I got: 0.9000 0.900 0.900 0.900 Iwant to remove these zeros to be 0.9 0.9 0.9 0.9
Expert Answer
Profile picture of Neeta Dsouza
Neeta Dsouza PhD Expert
Answered Aug 16, 2026
x = [0.9093    0.9074    0.9014]
x = 1×3
    0.9093    0.9074    0.9014
vpa(round(x,1),2)
ans = (0.9  0.9  0.9)

 

100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!