yay
good
it's good
area of square is s*s
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
How to find the position of an element in a vector without using the find function
2478 Solvers
Back to basics 8 - Matrix Diagonals
783 Solvers
"Low : High - Low : High - Turn around " -- Create a subindices vector
320 Solvers
561 Solvers
462 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!