Gistlib Logo

gistlib

in matlab create two variables: a = 4 and b = 17.2. use matlab to perform the following set of calculations. submit screenshot of matlab commands at command prompt and answers. (i) 5𝑎 in matlab

main.m
a = 4;
b = 17.2;

result = 5 * a;
disp(result);
48 chars
6 lines

The result will be 20.

similar matlab code snippets

compare rebecca and lucy in matlab
how to add variable to disp in matlab
prompt the user 'please enter the fin dimensions [l,b, w] as a vector" and assign the user input to variables l, b, w, respectively in matlab
using input form from user in matlab
how to in matlab
how to create variables in matlab
find the sum of all non prime numbers in matlab
how to list unused simulink variables in the workspace in matlab
sum squares of numbers from 5 to 70 in matlab
who am i in matlab

related categories

matlab
variables
arithmetic-operations

gistlibby LogSnag