fprintf for command window

trying to Create output for the command window using fprintf " using matlab 2018b"
x = 2;
y = 4;
z = 7;
h = 9;
sol1 = x + h
sol2 = z/h
sol3 = y*cos(z)
sol4 = sqrt(h)*(z)^2
sol5 = abs(-x)/log(y)
fprintf('%s%4i\n',' Addition: ',A)
fprintf( )

2 个评论

I don't see an assignment to a variable A and if it is intended to be a function with no inputs, it would sure help to see the code for it...

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Functions 的更多信息

产品

版本

R2018b

标签

提问:

2019-1-27

Community Treasure Hunt

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

Start Hunting!

Translated by