Community Profile

photo

Stuart McGarrity

Last seen: Today Active since 2005

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

Published


Adding a Column to a Table in My Web App
32:31 Here I want to add a “Row Totals” column to a pivot table in the web app that I’m working on. I...

25 days ago

Thumbnail

Published


Converting a Script to a Function Example
3:36 Here is an typical example of converting a script to a function. In this case, as well using the...

1 month ago

Thumbnail

Published


Developing a Simple Mechanism to Log Metric Values
33:20 A few years time ago I developed a mechanism and MATLAB function to track values over time I was...

2 months ago

Thumbnail

Published


Pause on Error with MATLAB App Designer
8:09 Here is a video I recorded not long after 22a was released, but I haven’t posted it yet. It shows...

2 months ago

Thumbnail

Published


Using a parfor Loop to Store the HTML of Many Web Pages
28:17 Previously, I used a parfor loop to make a bunch of web requests. Here I want to use a parfor...

3 months ago

Thumbnail

Published


Updating an App UI Control To Change The Item List
12:20 I need to update a drop-down UI control in my app so that the items in the list are no longer...

4 months ago

Thumbnail

Published


Investigating a Failed Unit Test for My App
8:18 After I added a new UI control to my web app, in a live stream recently, I ran my full set of...

5 months ago

Thumbnail

Published


Pausing and Manually Modifying The Data in a Long Running Script
7:30 Here I want to change the behavior of a long running script, by pausing it and manually changing...

5 months 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

6 months ago | 5 downloads |

Thumbnail

Submitted


Comparison of C++ and MATLAB Using OOP Example
Wireless Communications Application Example Used to Compare C++ and MATLAB® Code

6 months ago | 9 downloads |

Thumbnail

Submitted


What's New for Object-Oriented Programming in MATLAB Webinar
Code examples used in "What's New for Object-Oriented Programming in MATLAB®" Webinar

6 months ago | 4 downloads |

Thumbnail

Published


Debugging Example: Why is my data not being filtered correctly?
22:39 Some data in my MATLAB function is not being filtered out as it should be. I will need to...

6 months ago

Thumbnail

Published


Adding a Cell Selection Callback to a Table in My MATLAB App
20:17 Here, I add a cell selection callback to a table in one of my MATLAB apps by copying this...

7 months ago

Thumbnail

Published


Accessing Files Relative to a MATLAB Project’s Root Folder
10:52 While trying to troubleshoot another bug, which I couldn’t reproduce, I found something else I...

7 months ago

Thumbnail

Published


Run/Continue to Here in the MATLAB Editor
3:23 The “Run/Continue to Here” button in the MATLAB Editor, lets you jump to a future spot in your...

8 months ago

Thumbnail

Published


Adding New Features to a Web App: Livestream on YouTube Today
I’ll be doing my Blog live today on YouTube at 11am EDT. It will be a code-along as I normally do, mostly working with App...

9 months ago

Thumbnail

Published


Modifying My App to Handle an Old Data Set Used in a Test Case
14:49 The unit tests for my web app have failed because I added a new variable to my data set. Rather...

9 months ago

Thumbnail

Published


Adding Another Column to a Table in my Web App
17:14 Here I am going to try and add an additional column to a table in my web app. Its been more than...

10 months ago

Thumbnail

Solved


Find relatively common elements in matrix rows
You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...

10 months ago

Published


Refactoring Some of My Code into a Local Function
10:36 Here I try to move a chunk of code into a local function, so I can re-use it multiple times,...

11 months ago

Thumbnail

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

11 months ago

Published


Renaming a Function in a MATLAB Project
8:12 Here I want to rename one of my functions. Traditionally, this would involve manually updating...

11 months ago

Thumbnail

Solved


subtract central cross
Given an n-by-n square matrix, where n is an odd number, return the matrix without the central row and the central column.

12 months ago

Published


Upgrading One of My Functions to Use an arguments Block and String Arrays
10:13 I’ve upgraded a function that I often use with some features introduced in recent releases of...

12 months ago

Thumbnail

Solved


Get the area codes from a list of phone numbers
Given a string of text with phone numbers in it, return a unique'd cell array of strings that are the area codes. s = '508-647...

1 year ago

Solved


I Plead the Fifth
Write a function to provide a yes or no answer to the input string. However, it must plead the 5th amendment (return an empty st...

1 year ago

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the numbers. Otherwise return false. Example...

1 year ago

Solved


Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

1 year ago

Solved


Find the index of n in magic(n)
If input n=5, then magic(n) is 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22...

1 year ago

Solved


Create an index-powered vector
Given a input vector x, return y as index-powered vector as shown below. Example x = [2 3 6 9] then y should be [...

1 year ago

Load more