How to convert decimal value into integer in matlab code?

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

I need short information.

1 Answers
Kiran answered 4 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.