-
13 Comments
Show
10 older comments
Beniamin Stecula
on 11 May 2022
To get size 10 you have to change y to ans:
function ans = times2(x)
2*x;
end
Nikolay Tranakiev
on 12 Jul 2022
Nice solution!
Shivam Kumar
on 21 Sep 2023
nice solution
Suggested Problems
-
4689 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
832 Solvers
-
Rounding off numbers to n decimals
4787 Solvers
-
Matlab Basics - Convert a row vector to a column vector
640 Solvers
-
1713 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!