Community Profile

photo

Stuart McGarrity


MathWorks

480 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

  • First Answer
  • Solver

View details...

Contributions in
View by

Published


Using Retime with a Timetable to Aggregate Data By Hour
22:25 Last week I used varfun on a datetime variable in a table to count rows by hour. One of my colleagues...

2 months ago

Thumbnail

Published


Using varfun with datetime Values to Group Data By Hour
18:19 When I analyze our website, the testing system I use downloads all pages. It can take several hours as...

3 months ago

Thumbnail

Published


Writing a Script to Count Data in Multiple Text Files
37:54 Here I need to combine the data from multiple text files by grouping and summing by one variable. I also...

4 months ago

Thumbnail

Published


Adding a New UI Element to a MATLAB App with App Designer
21:28 If you have used GUIDE a lot in the past and are thinking of trying out App Designer, this will give you...

4 months ago

Thumbnail

Answered
Forecasting and predict using Artificial Neural Networking
The link in your question is broken.

4 months ago | 0

Published


Cody Code-Along: R2016b Feature Challenge – Use a timetable to analyze a train timetable, Part 4
19:59 In part 4 of the train timetable set of Cody problems, you need to calculate the average trip duration...

5 months ago

Thumbnail

Published


Trying Steve’s First Deep Learning Example
20:23 My colleague Steve Eddins, who you may know from his Image Processing blog, has a new one on Deep...

5 months ago

Thumbnail

Published


Cody Code-Along: R2016b Feature Challenge – Use a timetable to analyze a train timetable, Part 3
10:59 In part 3 of this set of Cody problems, you need to count the number of trains in one day. Afterwards, I...

5 months ago

Thumbnail

Solved


Use a timetable to analyze a train timetable (Part 4)
You are analyzing a train timetable (you have some time to kill since you just missed your train!) What is the average daily tri...

5 months ago

Solved


Use a timetable to analyze a train timetable (Part 3)
Oh no, you missed your train to Boston (again?)! How many times can you miss that train today? (In other words, how many Boston ...

5 months ago

Published


Cody Code-Along on Facebook Live
I tried out Facebook Live this afternoon, doing a MATLAB code-along using problems from Cody. I went through the Cody...

5 months ago

Thumbnail

Solved


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

5 months ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

5 months ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

5 months ago

Published


Cody Code-Along: R2016b Feature Challenge – Use a timetable to analyze a train timetable, Part 2
18:02 In part 2 of this Cody problem you need to select the next departure from a train time table based on...

6 months ago

Thumbnail

Solved


Use a timetable to analyze a train timetable (Part 2)
Oh no, you missed your train to Boston! Find the departure time of the next available train by analyzing the train timetable. Yo...

6 months ago

Published


Converting a Set of Video Caption Text Files From One Format to Another
75:36 I offered to help my colleague Josh to convert a bunch of video caption text files from one format called...

7 months ago

Thumbnail

Published


Developing a Function that Replicates an Excel Worksheet Template
61:23 I need to save multiple MATLAB tables into an Excel spreadsheet; one worksheet for each table. I want the...

8 months ago

Thumbnail

Published


Fixing an Indexing Problem by Inserting Dummy Rows Into a MATLAB Table
33:09 Here I realize that an assumption I had with the contents of a MATLAB table was wrong, so I need to find...

8 months ago

Thumbnail

Published


Cody Code-Along: R2016b Feature Challenge – Use a timetable to analyze a train timetable, Part 1
24:15 Are my blog post titles getting out of hand? Too many levels of hierarchy? This Cody problem introduces...

9 months ago

Thumbnail

Published


Cody Code-Along: R2016b Feature Challenge – When Was That Goal Scored? (One More Time)
13:10 Here I try the first problem again in the Release 2016b Features Challenge. This time I don’t use regular...

9 months ago

Thumbnail

Solved


Use a timetable to analyze a train timetable (Part 1)
Oh no, you missed your train to Boston! Find the departure time of the next available train by analyzing the train timetable. Th...

9 months ago

Published


Creating a Test to Find Incorrect Size Images
49:11 If I find a defect on our website, I first look for other similar defects and then create a test that...

9 months ago

Thumbnail

Solved


When Was That Goal Scored?
We want to find out when the goals were scored in a particular soccer game. For each game, we are given a "Goal Event Data" XML ...

9 months ago

Published


Cody Code-Along: R2016b Feature Challenge – Combine First and Last Names
3:42 In this problem in the Release 2016b Features Challenge set on Cody, you just need to combine an array of...

9 months ago

Thumbnail

Solved


Combine the first and last names
MATLAB R2016 provides a rich set of functions to work with string arrays. In this problem, you will be given two string arrays o...

9 months ago

Published


Cody Code-Along: R2016b Feature Challenge – Fix Addresses, Part 3
3:52 I did part 2 of the text manipulation set of problems in the Release 2016b Features Challenge but forgot...

10 months ago

Thumbnail

Solved


Use R2016b Text Manipulations to Fix These Addresses (Part 3)
We have a series of addresses like the following which we'd like to reformat. Each of the addresses lacks a space and a comma ...

10 months ago

Solved


Use R2016b Text Manipulations to Fix These Addresses (Part 2)
We have a series of addresses like the following which we'd like to reformat. All the addresses are in the Boston area of Mass...

10 months ago

Published


Cody Code-Along: R2016b Feature Challenge – Fix Addresses, Part 1
11:41 You need to remove text between delimiters, in this “Cody Code-Along” for another problem in the Release...

10 months ago

Thumbnail

Load more