The way the combination "Solution-Scratch pad" works, is confusing and awful.
These are trivial problems, and still (!), in submitting them - by the way Cody and it's solution check-out works, make them frustrating to solve - one is asking why they don't work. Even if you make a fast-running error as I did (the square of g was omitted in the first few attempts, the solution is exact (with wrong formula) for the 1st test: bank(1,1)....).... You should delete the wrong solutions as they don't have any value: nor for new solvers, nor for the ones when they "solve" the problem.
I understand, You tried to de-incentivize people to submit wrong answers - many times, but by keeping them listed (wrong solutions), you give not even a marginally statistically worth information - it's crap and garbage, based on may subjective factors for errors, especially taken into account the way the Solution-Solver scratchpad work. And, they are nor user-friendly, nor similar to true MATLAB environment.
Interesting question 😁
@Teodo: Thanks for the feedback and let us know your frustration with using the Scratchpad. Just want to let you know that we are actively working on an update to improve the user experience to make it more 'similar to a true MATLAB environment', as you commented. We will let you know when we have an update.
Compute a dot product of two vectors x and y
Reindex a vector
The Answer to Life, the Universe, and Everything
Who is the smartest MATLAB programmer?
Find the treasures in MATLAB Central and discover how the community can help you!
Select a Web
Choose a web site to get translated content where available and see local events and
offers. Based on
your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country
sites are not optimized for visits from your location.
Contact your local office