Problem 2849. Matlab Basics - Assigning Variables

Solution 1336836

Submitted on 12 Nov 2017 by Daniel Meier
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
A = 2.34; assert(isequal(class(A),'double'))

2   Pass
B = int64(17); assert(isequal(class(B),'int8')||isequal(class(B),'int16')||isequal(class(B),'int32')||isequal(class(B),'int64'))

3   Pass
C = 'hello'; assert(isequal(class(C),'char'))

Suggested Problems

More from this Author28

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!