Community Profile

photo

Sean de Wolski


MathWorks

5,797 total contributions since 2004

I like to be outside. But if I'm inside, I like to be using MATLAB.

I'm a Senior Application Engineer at MathWorks and civil/structural engineer by education.

Sean de Wolski's Badges

  • Scavenger Finisher
  • Master
  • 36 Month Streak
  • Thankful Level 2
  • Quiz Master
  • Creator
  • Speed Demon
  • Personal Best Downloads Level 2
  • GitHub Submissions Level 3
  • First Review
  • 5-Star Galaxy Level 3
  • First Submission
  • Revival Level 3
  • Knowledgeable Level 4
  • First Answer

View all

Contributions in
View by

Answered
How to shift all the non-zero elements of a matrix to the right of the matrix?
Without loop or cells: x = [1 2 3 0 0 1 2 0 0 0 1 2 3 0 0 0 1 0 0 1 2 3 1 2]; xt = x.'; sxr = sort(logical(xt), 1, ...

6 days ago | 2

Answered
Trouble with jsondecode() and jsonencode()
fprintf(fid,"%s",str2) That way if there are format spec characters in the JSON they are not interpretted as such.

8 days ago | 1

Answered
How can I create a standalone application using my model from Regression Learner?
You need to get the data into the compiled app. Typically with compiling to an executable this would be by passing in a file na...

9 days ago | 0

Answered
TiledLayout fill with for loops
f = figure; t = tiledlayout(f,5,3); for ii = 1:15 nexttile(t) plot(sin(1:(ii*10))) end

14 days ago | 0

Answered
Is it possible to vectorize this?
A = [1 2 0 3 4 6; 9 3 4 0 9 5; 4 3 0 5 6 7; 3 7 7 3 0 0;1 1 8 8 4 8; 0 0 0 0 4 2; 0 0 0 0 0 0] B = accumarray(repmat((1:height(...

14 days ago | 2

| accepted

Answered
How to add graph in the template used for report generation
The plot can go into any block hole you have in the template. You can use mlreportgen.dom.Image or mlreportgen.report.Figure to...

14 days ago | 2

| accepted

Answered
What MATLAB functions are underappreciated?
onCleanup - I want to reliably do this thing at the end... I've actually gotten to the point that I will pass these (or cell ar...

19 days ago | 1

Answered
What MATLAB functions are underappreciated?
tempname/tempdir - Need to write something and guarantee write permissions on any platform...

19 days ago | 0

Answered
What MATLAB functions are underappreciated?
mfilename I use this all of the time for building relative file or folder paths. I want currentProject().RootFolder to replace ...

19 days ago | 0

Answered
How to reshape a dataset?
Convert the dataset to the much more modern and supported table using dataset2table. Look at unstack()

20 days ago | 0

| accepted

Answered
datenum resulting in incorrect values
Please use datetime instead of datenum. If you have an excel date, you can convert directly from that d = datetime(x, 'Convert...

28 days ago | 1

Answered
How to correctly use MONTHS function?
You should use datetimes, durations and the between function for this: >> d1 = datetime('may 31 2000', 'InputFormat', 'MMM dd y...

1 month ago | 0

Answered
How to convert arc length to km?
Arc length from the distance function is the distance. It will be in units of the ellipsoid or the value of the fifth input arg...

1 month ago | 0

| accepted

Answered
How to add set/get methods methods in class constructor
You want dependent properties: Set and Get Methods for Dependent Properties - MATLAB & Simulink (mathworks.com)

1 month ago | 0

Answered
Finding threshold value with Otsu Method
doc graythresh

1 month ago | 0

Answered
Will newer versions of the MATLAB Compiler Runtime work on older versions of MATLAB?
No. The runtime needs to match the version of MATLAB it was compiled with.

1 month ago | 0

| accepted

Answered
randsrc() in SimEvents simulink
Put this before it: coder.extrinsic('randsrc')

1 month ago | 1

| accepted

Answered
array2table won't accept variable name input
Support for invalid variable names was added recently so you're probably on an older release that required >>isvarname(varname) ...

2 months ago | 0

Answered
System command calls different version of gdal
Can you provide the full path to the gdal executable? system('<gdalroot>/gdalinfo --version');

2 months ago | 0

Answered
How to turn off the JIT compiler in MATLAB R2020b?
No. All MATLAB code is JIT compiled in releases 15b and later.

2 months ago | 0

| accepted

Answered
Generating enlarged figure for Report.
https://www.mathworks.com/help/releases/R2020b/matlab/ref/matlab.ui.figure-properties.html#d122e384507 Look at the paper posi...

2 months ago | 0

Answered
How to calculate hourly average value for measured Temperature, CO2, RH and Rid in 5 minutes interval
Read it in as a timetable readtimetable then call retime which does exactly what you want. t = readtimetable('yourfile') fivem...

3 months ago | 0

Answered
Motor control toolbox license
It doesn't look like it's avaiable - MATLAB Home - MATLAB & Simulink (mathworks.com) Click the see available products button. I...

3 months ago | 0

| accepted

Answered
How to add Python Libraries which are referenced in a Python routine
Are you sure the python environment (specified by pyenv) is numpy aware?

3 months ago | 0

Answered
How to convert image .mat back to the mlreportgen.dom.Image object?
You'll need to write the image back to disk as the report generator needs to deserialize it from this format into the report. If...

4 months ago | 0

| accepted

Answered
Shrinking image by averaging
This works img = repmat(1:6,4,1) shrink = @(x)reshape(sum(reshape(sum(reshape(x,2,1,[])),size(x,1)/2,2,[]),2)./4,size(x,1)/2,[...

4 months ago | 0

Answered
Appdesigner uitable and uistyle
capital S in addStyle :)

4 months ago | 0

| accepted

Published


Simulink Keyboard Input v2
Will's pick this week is Simulink Keyboard Input v2 by Emanuele Ruffaldi. I have streamed data into Simulink models from...

4 months ago

Thumbnail

Answered
Function 'daysact' not supported for code generation.
You should use the newer and recommended datetime / duration classes which support c-codegen: d = days(datetime(t1)-datetime(t2...

4 months ago | 0

Load more