Watch out! Martix size!
This works in Matlab but not here? It fails on Test 3, but when I use the same value of x and the same function in Matlab it works...
Your output y is a row vector (or scalar), but in 3'rd test it should be a column vector. Predefine y first with the same size as x.
good solution
It dseon't mettar waht oedrr the lrettes in a wrod are.
676 Solvers
Project Euler: Problem 8, Find largest product in a large string of numbers
337 Solvers
409 Solvers
07 - Common functions and indexing 6
364 Solvers
2695 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!