Cody

Problem 2849. Matlab Basics - Assigning Variables

Solution 999921

Submitted on 7 Oct 2016 by Massimo Zanetti
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!