From 985d23a52b76593a120adff5381c2df3a80fe298 Mon Sep 17 00:00:00 2001 From: HairyFotr Date: Wed, 23 Aug 2017 10:14:39 +0200 Subject: Fix a bunch of typos --- 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 86b116c6..6dc9f697 100644 --- a/matlab.html.markdown +++ b/matlab.html.markdown @@ -353,7 +353,7 @@ double_input(6) % ans = 12 % anonymous function. Useful when quickly defining a function to pass to % another function (eg. plot with fplot, evaluate an indefinite integral % with quad, find roots with fzero, or find minimum with fminsearch). -% Example that returns the square of it's input, assigned to the handle sqr: +% Example that returns the square of its input, assigned to the handle sqr: sqr = @(x) x.^2; sqr(10) % ans = 100 doc function_handle % find out more -- cgit v1.2.3 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 From 2cdee6fe487f6d7a660fdac551b07d6ff4e9e9a7 Mon Sep 17 00:00:00 2001 From: taivlam <47955724+taivlam@users.noreply.github.com> Date: Thu, 7 May 2020 03:23:41 +0000 Subject: [matlab/en] Corrected "Multiple each element in A" to "Multiply each element in A" in line 237. --- 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 5790bcc6..4ca31857 100644 --- a/matlab.html.markdown +++ b/matlab.html.markdown @@ -234,7 +234,7 @@ A' % Concise version of complex transpose % On their own, the arithmetic operators act on whole matrices. When preceded % by a period, they act on each element instead. For example: A * B % Matrix multiplication -A .* B % Multiple each element in A by its corresponding element in B +A .* B % Multiply each element in A by its corresponding element in B % There are several pairs of functions, where one acts on each element, and % the other (whose name ends in m) acts on the whole matrix. -- cgit v1.2.3