From 9d17f8bc578c96bda52bd2611625bacb8b518afb Mon Sep 17 00:00:00 2001 From: Yi Hong Ang Date: Sun, 26 Jun 2016 20:45:45 +0800 Subject: Add a section on code sections/cells (#1855) --- matlab.html.markdown | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'matlab.html.markdown') diff --git a/matlab.html.markdown b/matlab.html.markdown index ddc0cb40..51b7bd4e 100644 --- a/matlab.html.markdown +++ b/matlab.html.markdown @@ -25,6 +25,23 @@ like this %} +% Two percent signs denote the start of a new code section +% Individual code sections can be run by moving the cursor to the section followed by +% either clicking the "Run Section" button +% or using Ctrl+Shift+Enter (Windows) or Cmd+Shift+Return (OS X) + +%% This is the start of a code section +% One way of using sections is to separate expensive but unchanging start-up code like loading data +load myFile.mat y + +%% This is another code section +% This section can be edited and run repeatedly on its own, and is helpful for exploratory programming and demos +A = A * 2; +plot(A); + +%% Code sections are also known as code cells or cell mode (not to be confused with cell arrays) + + % commands can span multiple lines, using '...': a = 1 + 2 + ... + 4 -- cgit v1.2.3 From 9ca9e466a7c7d94080f7c87808e2ce409c586b5a Mon Sep 17 00:00:00 2001 From: Yi Hong Ang Date: Mon, 31 Oct 2016 02:10:11 +0800 Subject: Add new reading resources on MATLAB --- matlab.html.markdown | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'matlab.html.markdown') diff --git a/matlab.html.markdown b/matlab.html.markdown index 51b7bd4e..86b116c6 100644 --- a/matlab.html.markdown +++ b/matlab.html.markdown @@ -557,6 +557,8 @@ c = a + b ## More on Matlab -* The official website [http://http://www.mathworks.com/products/matlab/](http://www.mathworks.com/products/matlab/) -* The official MATLAB Answers forum: [http://www.mathworks.com/matlabcentral/answers/](http://www.mathworks.com/matlabcentral/answers/) +* [The official website](http://www.mathworks.com/products/matlab/) +* [The official MATLAB Answers forum](http://www.mathworks.com/matlabcentral/answers/) +* [Loren on the Art of MATLAB](http://blogs.mathworks.com/loren/) +* [Cleve's Corner](http://blogs.mathworks.com/cleve/) -- cgit v1.2.3