why this code is not correct?
s = summ(v)
>> b=s
>> s(1)=[]
>> c=[[s],0]
>> s=[b+c]
>> s(end)=[]
sorry mate, this is unfair for those who actually came up with a compact solution
No need to be sorry.
Personally I think the regexp should be always forbidden.
I used it (and I had never thought about it before) because it seems that everyone is using it.
Solve the set of simultaneous linear equations
279 Solvers
Rotate input square matrix 90 degrees CCW without rot90
385 Solvers
280 Solvers
539 Solvers
Write a code that will follow the equation y = x * (x + x) * x.
216 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!