yay
good
it's good
function b = area_square()
a = input('Enter the side of square:')
b = sprintf('Area of square is: %f',a*a)
end
What's wrong with it
function b = area_square(a)
b = a^2;
end
Lovely code!
y
Very simple
1234 Solvers
Find the sum of the elements in the "second" diagonal
999 Solvers
Switch matrix to a column vector
265 Solvers
2481 Solvers
Solve a System of Linear Equations
3817 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!