Scalar variables. Make the following variables
a. a =10
b. b = 2.5´1023
c. c = +2 3i , where i is the square root of -1
j2 / p 3 d. = , where j is the square root of -1 and e is Euler’s number1 d e (use exp, pi)
1
Expert's answer
2019-10-24T08:01:40-0400
For now send the first three.
clc;
clear global;
a = 10;
fprintf('a = %2.0f\n',a)
b = 2.5^1023;
fprintf('b = %1f\n',b)
c = 2 + 3*1i;
fprintf('%s %s\n','c =',num2str(c))
Comments
Leave a comment