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

4 Monate ago | 1

| accepted

Published


Animation Playback Controls in Live Scripts (R2021a)
Jiro's Pick this week is MATLAB Plot Gallery - Animation by MathWorks Plot Gallery Team.I chose this animation example to...

4 Monate ago

Thumbnail

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) ...

4 Monate ago | 0

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

4 Monate 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.

4 Monate 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...

5 Monate ago | 0

Published


The Matrix Lab Has You
Sean's pick this week is The Matrix lab has you by Mathworlds. I discovered this after reading...

5 Monate ago

Thumbnail

Published


File Exchange Categories for your Valentine
Jiro's Pick this week is 2-axis CNC ILC cutting machine by Bartlomiej Ufnalski. This example is about a particular type...

5 Monate ago

Thumbnail

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...

5 Monate 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...

5 Monate ago | 0

| accepted

Published


Tracing the boundary of a binary region in an image
Brett's Pick this week is Freeman chain code, by Nicolas Douillet.ContentsA new file prompts a thought experimentFreeman...

5 Monate ago

Thumbnail

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?

6 Monate 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...

6 Monate 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,[...

6 Monate ago | 0

Answered
Appdesigner uitable and uistyle
capital S in addStyle :)

6 Monate 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...

6 Monate 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...

6 Monate ago | 0

Published


Convert your live scripts to markdown file
Jiro's Pick this week is Live Script-to-Markdown by Michio, one of my colleagues in MathWorks Japan.As you know, File...

7 Monate ago

Thumbnail

Published


2020 Index
We hope 2021 is a better year for everyone and the world! Pick of The Week IndexDetermining next available file...

7 Monate ago

Thumbnail

Answered
Timer callback with alternating paths based upon which path was triggered before
You could use a simple persistent variable in your callback function to maintain state.

7 Monate ago | 0

| accepted

Answered
Is this right?
-4 v -5?

7 Monate ago | 0

| accepted

Published


Leaf Pile 3D
Sean's pick this week is leafpile3d by Nathaniel Barlow and the extended version with drag by Chris Verhoek. ...

7 Monate ago

Thumbnail

Answered
Manipulating PowerPoint Custom Document Properties Using ActiveX
You should strongly consider using the MATLAB Report Generator to generate the presentations. It lets you use existing template...

7 Monate ago | 0

Published


Aircraft Intuitive Design
Richard is a Consulting Engineer at MathWorks focused on the Embedded Coder product for code generation,...

8 Monate ago

Thumbnail

Answered
Is there a script or app to convert many (>50) matlab figure files into powerpoint presentation??
You can do this pretty easily with the MATLAB Report Generator. Presentation Generator Development - MATLAB & Simulink (mathwor...

8 Monate ago | 0

Answered
Sorting time in 1 hour time slots.
Look at retime. doc retime

8 Monate ago | 0

Published


Emulating a physical experiment of measuring M&M’s
Jiro's Pick this week is M&amp;M statistics by Lisa R. Thompson.A common challenge I hear from educators is how to conduct...

8 Monate ago

Thumbnail

Answered
please help with work
v = ["Not Valid" "Valid"]; v(isvarname(input('enter variable name: ', 's'))+1)

8 Monate ago | 1

| accepted

Answered
How to unit test several different functions that take the same input arguments efficiently?
Look into using TestParameters. You can use an array of function handles as the parameter values to traverse different function...

8 Monate ago | 1

Load more