Community Profile

photo

Stuart McGarrity

MathWorks

Last seen: Today Active since 2005

I'm from a small town called Largs near Glasgow in Scotland. I studied for my undergraduate degree in Electronic and Microprocessor Engineering and PhD in Signal Processing at Strathclyde University. I live in Natick, MA.

Statistics

All
  • Explorer
  • Personal Best Downloads Level 4
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • First Answer
  • Solver

View badges

Content Feed

Solved


Word Counting and Indexing
You are given a list of strings, each being a list of words divided by spaces. Break the strings into words, then return a maste...

7 days ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

14 days ago

Solved


MATLAB Counter
Write a function f = counter(x0,b) to construct a counter handle f that counts with an initial value x0 and a step size b. E...

1 month ago

Solved


Binary Coder
Take an input number and print the binary value of this number.

1 month ago

Solved


Fix the last element of a cell array
Note: this is lifted directly from <http://www.mathworks.com/matlabcentral/answers/82825-puzzler-for-a-monday Puzzler for a Mond...

1 month ago

Solved


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

1 month ago

Solved


Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

2 months ago

Published


Debugging at Point of Error
12:16 One of my MATLAB scripts has failed and is currently stopped at the error point. By having...

5 months ago

Thumbnail

Published


Using parfor to Make Many Web Requests
47:27 My colleague asked me to access all the pages on a web server in order to populate it’s cache. I...

6 months ago

Thumbnail

Published


Analyzing Sitemaps
51:43 Today, I want to analyze the sitemaps on mathworks.com. These XML files, in standard locations,...

7 months ago

Thumbnail

Published


Repurposing Some MATLAB Code to Detect Large Web Images
46:56 I need to find all video thumbnails on our website that are larger than a certain size. I tried...

7 months ago

Thumbnail

Published


Shortest Path Between Two Web Pages
31:05 I want to find how you get to a particular web page on our website from another one, i.e. what...

8 months ago

Thumbnail

Published


I Want To Add An “Are You Sure?” Alert To My Web App
28:38 The web app I’m working on manipulates a set of MAT files and lets me switch between them....

9 months ago

Thumbnail

Published


AutoHotkey Shortcuts for the MATLAB Editor
11:49 I created some AutoHotkey shortcuts to make it easier to execute arbitrary lines of code in the...

10 months ago

Thumbnail

Published


Copying Text to the Clipboard in MATLAB Web App – Fail
18:29 I want to occasionally copy text from data in a table in my web app, so I try to add a line to...

11 months ago

Thumbnail

Published


Adding Another Output Argument to a Function
18:23 I need to add another output argument to a function I made last week, to return some more...

12 months ago

Thumbnail

Solved


Join Strings with Multiple Different Delimiters
The idea is to form the string S by interleaving the elements of a cell array of strings DELIMITER and another cell array of st...

1 year ago

Published


Adding a try/catch With Email Notification
22:38 One module of a large MATLAB project I maintain failed last night and caused the whole...

1 year ago

Thumbnail

Published


Scraping Links from a List of Web Pages
44:14 My colleague Sherrie just asked me if I could extract the links from a specific set of pages,...

1 year ago

Thumbnail

Published


Scraping Links from a Set of MATLAB Documentation Pages
58:36 My colleague Sam asked if I could help him try and understand how a set of documentation pages...

1 year ago

Thumbnail

Published


Hiding Tabs in My MATLAB Web App
35:05 I’ve added a few tabs to my web app recently to provide some new functionality. However they are...

1 year ago

Thumbnail

Published


MATLAB Web App Update, Test, and Commit
25:05 I need to develop a new feature in one of my MATLAB web apps. I also need to test it, commit it...

1 year ago

Thumbnail

Published


MATLAB arguments Block: Conversion from inputparser
11:00 I eventually got around to converting a complex use of inputparser to an arguments...

1 year ago

Thumbnail

Published


MATLAB arguments Block: First Look
16:57 Here I try using the new MATLAB arguments block for the first time. It was introduced last year...

1 year ago

Thumbnail

Published


Handling a Zero Size Variable
6:20 One of my daily running MATLAB functions has errored out and it looks like its because a variable...

1 year ago

Thumbnail

Submitted


Comparison of C++, Java, Python, Ruby and MATLAB OOP Example
RedBlack Tree Binary Search Example Used to Compare of C++, Java™, Python, Ruby and MATLAB® Code

1 year ago | 5 downloads |

Thumbnail

Published


MATLAB Projects: Tidying Up
12:58 There are still a lot of unused files in my project folder. The code also uses functions from...

1 year ago

Thumbnail

Published


MATLAB Projects: First Look
14:47 I have a large MATLAB application which consists of more than 100 files that I have accumulated...

1 year ago

Thumbnail

Published


Building a String of Browser Version Numbers
20:40 I need to construct a string of latest and previous browser version numbers that will form part...

1 year ago

Thumbnail

Published


Adding Another UI Control to My MATLAB App
14:36 Here, I need to add another simple drop-down UI control to the app I’m making with in App...

1 year ago

Thumbnail

Load more