Community Profile

photo

Stuart McGarrity


MathWorks

524 total contributions 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.

Contact

Stuart McGarrity's Badges

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

View details...

Contributions in
View by

Published


Using clearvars
7:13 When working on a script, I often want to clear all the variables in my workspace except for very...

3 days ago

Thumbnail

Published


I Need to Replace the Checkbox in My MATLAB App with Radio Buttons
19:38 The MATLAB app I’m currently working on has a checkbox to let the user select between two...

23 days ago

Thumbnail

Published


Dynamically Adding Components to My MATLAB App
34:20 I want to add and remove user interface components on the fly in the MATLAB App that I have made...

1 month ago

Thumbnail

Published


Passing Parameters to Apps Built with App Designer
12:33 I need to figure out how to pass a parameter to a MATLAB App that is built with App Designer. In...

2 months ago

Thumbnail

Published


Editing (Another) Function While Stopped at a Breakpoint
28:58 I find myself needing to update one of my functions that takes a while to run, in this case, to...

2 months ago

Thumbnail

Published


Saving State in a WindowButtonMotionFcn Callback
20:55 I need to display some text information when I hover over the nodes in my graph plot. I’m going...

3 months ago

Thumbnail

Published


Counting the Frequency of Parameters in a Set of URLs
35:34 Here I need to know how often different parameters occur in a large list of URLs. I’m not usre...

4 months ago

Thumbnail

Published


Using detectImportOptions with Large Text Files
12:15 Yesterday, I was loading a CSV file of about 1 million rows and 300 columns, comprising lots of...

5 months ago

Thumbnail

Published


My Web Scraping App: Adding a Single-Match Pattern
31:11 Now I want to add a second regex pattern that will only match once per page and display what it...

5 months ago

Thumbnail

Published


My Web Scraping App: Only Get HTML Content if Page List Changes
25:58 Currently, my (small scale) web scraping app reads the HTML content of the list of pages, then...

6 months ago

Thumbnail

Published


Handling Multiple Match Tokens in My Web App
31:30 Now I want to modify the MATLAB app I recently made to scrape web pages, so that it can handle...

6 months ago

Thumbnail

Published


Making Improvements to My Web Page Scraping MATLAB App
38:01 I want to modify the MATLAB app I recently made to scrape web pages, so that it can handle the...

7 months ago

Thumbnail

Published


Deploying My MATLAB App as a Web App
17:02 I want to turn the MATLAB App I developed recently into a web app so it is accessible from a...

8 months ago

Thumbnail

Published


Building a MATLAB App to Extract Web Page HTML Patterns
93:06 A colleague asked if I could extract a date string from a set of MATLAB Answer pages. I’ve often...

8 months ago

Thumbnail

Published


Setting the Strings in a Table to a Constant
9:52 I have a table with many columns, some of which are stings. I want to set all the string values...

9 months ago

Thumbnail

Published


Using a Conditional Breakpoint in a for Loop
2:53 I have a for loop that is transforming my data in a way I did not expect, so I use a conditional...

10 months ago

Thumbnail

Published


Editing a MATLAB Function to Add an Another Parameter
11:14 I’m going to make some edits to another MATLAB function while stopped at a breakpoint, so the...

10 months ago

Thumbnail

Published


Editing a MATLAB Function While Stopped at a Breakpoint
5:57 I often will edit code while stopped at a breakpoint. This lets me have all variables available...

10 months ago

Thumbnail

Published


Trying Out inputparser
20:51 I’m going to try to use inputparser for the first time, to specify name-value pair parameters...

11 months ago

Thumbnail

Published


Debugging a Failed File Import
19:12 One of my continuously running MATLAB scripts just failed and has stopped at a breakpoint (I had...

12 months ago

Thumbnail

Published


Creating a Function to Format a Spreadsheet
33:35 I often export to Excel to share results with others. In doing so I control the format of the...

1 year ago

Thumbnail

Published


Extracting the Variable Names of a Logical Table
16:09 I have a table of logical data, with only one true in a row. I want to find the variable name...

1 year ago

Thumbnail

Published


Making a MATLAB Script to Move a Set of Video Files Based on Content
28:06 I have a folder full of video files (MP4s) which I want to move based on their content....

1 year ago

Thumbnail

Published


Using TCP-IP to Communicate Between Two Instances of MATLAB
16:59 Here I step through how I implemented communication between two MATLAB instances on two...

1 year ago

Thumbnail

Published


Building a Web Server Monitoring App, Part 6: UIFigureCloseRequest Callback
5:46 If you remember, my app creates a timer to control the execution of the main loop. It doesn’t...

1 year ago

Thumbnail

Published


Building a Web Server Monitoring App, Part 5: Hooking-up Some UI Controls
31:13 Now I have a basic working app that starts monitoring a specific server immediately. Next, I try...

1 year ago

Thumbnail

Published


Reading Whole Lines of Text from a File
29:58 Sometimes the text files I need to read have an irregular format, i.e. it changes...

1 year ago

Thumbnail

Answered
How to follow progress of a parfor-loop?
You can implement this with a data queue. See a waitbar example here: <https://www.mathworks.com/help/distcomp/send.html#bvmkkgt...

1 year ago | 1

Published


Building a Web Server Monitoring App, Part 4: Starting with App Designer
35:15 Now that I’ve got most of my data processing and plotting working, I think I can start using App...

1 year ago

Thumbnail

Solved


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

1 year ago

Load more