As i understand it, the algorithm is only supposed to change the middle element of the matrix. That means the answer to problem 1 in the test suite is incorrect.
@William, the problem is not only to change the middle term but to do basic operations with it.
In the first suite 5 is the middle number, add 2 and 8 (column elements) and then subtract 4 and 10 (row elements), so 5+2+8-4-10 = 1
Yes, I understand how the value x(2,2) was calculated, but why did the values of x(1,2) and x(3,2) change?
I do not understand why all the element in the second column equal 1 in the first test suit?
Project Euler: Problem 1, Multiples of 3 and 5
Return the first and last characters of a character array
Number of digits in an integer
Find the remainder with the factorial of PRIMES?
Find the treasures in MATLAB Central and discover how the community can help you!
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