How to convert decimal value into integer in matlab code?

All QuestionsCategory: ToolsHow to convert decimal value into integer in matlab code?
Akshay asked 5 years ago

I need short information.

1 Answers
Kiran answered 5 years ago

Use this to convert decimal value into integer in matlab code.
x = int16(a)
 
a holds decimal value which converted to integer and stored in x.