Discover MakerZone

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

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!

Problem 1262. Convert elements in numeric array into different class

Write a function that converts elements in a numeric array into a different class. Example:

a = [1:5]; % class: double
b = convertto(a,'uint32');
b =
         1  2  3  4  5
  ans =


Problem Group

Solution Statistics

41 correct solutions 34 incorrect solutions
Last solution submitted on Jun 15, 2016

Problem Comments