From a8911cb7a5bc72d3d13c2b2696f9aa969289f6bc Mon Sep 17 00:00:00 2001 From: veghp <31794642+veghp@users.noreply.github.com> Date: Tue, 13 Mar 2018 14:11:43 +0000 Subject: Update matlab.html.markdown --- matlab.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'matlab.html.markdown') diff --git a/matlab.html.markdown b/matlab.html.markdown index 6dc9f697..3b96d08e 100644 --- a/matlab.html.markdown +++ b/matlab.html.markdown @@ -545,7 +545,7 @@ ans = multiplyLatBy(a,3) % The method can also be called using dot notation. In this case, the object % does not need to be passed to the method. -ans = a.multiplyLatBy(a,1/3) +ans = a.multiplyLatBy(1/3) % Matlab functions can be overloaded to handle objects. % In the method above, we have overloaded how Matlab handles -- cgit v1.2.3 From 19f3a857fb3f5bd4d4250a0db895b91d0cea2531 Mon Sep 17 00:00:00 2001 From: veghp <31794642+veghp@users.noreply.github.com> Date: Tue, 13 Mar 2018 14:16:52 +0000 Subject: Update matlab.html.markdown --- matlab.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'matlab.html.markdown') diff --git a/matlab.html.markdown b/matlab.html.markdown index 3b96d08e..b88b1c03 100644 --- a/matlab.html.markdown +++ b/matlab.html.markdown @@ -374,8 +374,8 @@ disp('Hello World') % Print out a string fprintf % Print to Command Window with more control % Conditional statements (the parentheses are optional, but good style) -if (a > 15) - disp('Greater than 15') +if (a > 23) + disp('Greater than 23') elseif (a == 23) disp('a is 23') else -- cgit v1.2.3 From 93a7d100c2d9f3831a9436b83f513624b99630f7 Mon Sep 17 00:00:00 2001 From: 0u0 Date: Thu, 30 Aug 2018 19:00:20 +0800 Subject: fix #3054 --- matlab.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'matlab.html.markdown') diff --git a/matlab.html.markdown b/matlab.html.markdown index b88b1c03..9cf1f8a4 100644 --- a/matlab.html.markdown +++ b/matlab.html.markdown @@ -221,11 +221,11 @@ A(1, :) =[] % Delete the first row of the matrix A(:, 1) =[] % Delete the first column of the matrix transpose(A) % Transpose the matrix, which is the same as: -A one +A.' % Concise version of transpose (without taking complex conjugate) ctranspose(A) % Hermitian transpose the matrix % (the transpose, followed by taking complex conjugate of each element) A' % Concise version of complex transpose -A.' % Concise version of transpose (without taking complex conjugate) + -- cgit v1.2.3 From 0393e51669da1eaaf3c21d81b05bfdc67daa79a5 Mon Sep 17 00:00:00 2001 From: 0u0 Date: Fri, 31 Aug 2018 12:13:02 +0800 Subject: [en] Adjust statement --- matlab.html.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'matlab.html.markdown') diff --git a/matlab.html.markdown b/matlab.html.markdown index 9cf1f8a4..5790bcc6 100644 --- a/matlab.html.markdown +++ b/matlab.html.markdown @@ -222,9 +222,9 @@ A(:, 1) =[] % Delete the first column of the matrix transpose(A) % Transpose the matrix, which is the same as: A.' % Concise version of transpose (without taking complex conjugate) -ctranspose(A) % Hermitian transpose the matrix -% (the transpose, followed by taking complex conjugate of each element) -A' % Concise version of complex transpose +ctranspose(A) % Hermitian transpose the matrix, which is the same as: +A' % Concise version of complex transpose + % (the transpose, followed by taking complex conjugate of each element) -- cgit v1.2.3