Skip to content

Commit 511b446

Browse files
committed
Standardize matlab output
Printing stuff properly seems impossible in this language, but as it is not planned to automatically matlab code anyway, the missing newlines after `[#]` won't matter.
1 parent 9f95a61 commit 511b446

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

contents/euclidean_algorithm/code/matlab/euclidean.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
end
3232

3333
function euclid()
34-
['gcd(520,420) via euclidSub: ',num2str(euclidSub(520,420))]
35-
['gcd(183,244) via euclidMod: ',num2str(euclidMod(183,244))]
34+
['[#] Modulus-based euclidean algorithm result: ',num2str(euclidMod(64 * 67, 64 * 81))]
35+
36+
['[#] Subtraction-based euclidean algorithm result: ',num2str(euclidSub(128 * 12, 128 * 77))]
3637
end

0 commit comments

Comments
 (0)