Community Profile

# Andrew Janke

##### Last seen: 8 days ago
47 total contributions since 2018

View details...

Contributions in
View by

Submitted

fancyclip
Enhanced clipboard copy & paste functionality for Matlab

Question

Convenient handling of datetime function arguments and class properties
Hi folks, At work, we're in the process of adopting Matlab's new datetime type. We're on R2019b currently. Our code previously ...

5 months ago | 1 answer | 1

### 1

What frustrates you about MATLAB? #2
Here's my Matlab Gripes, 2020 Year End Edition. This is coming from the perspective of someone who's primarily a software engin...

5 months ago | 0

Submitted

MatlabProjectTemplate
A template for creating repos for Matlab library and application projects

Submitted

SLF4M
A simple logging framework for Matlab, built on top of SLF4J and Log4j

Solved

Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

8 months ago

Solved

Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

8 months ago

Solved

Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

8 months ago

Solved

Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

8 months ago

Close diary file on Error
The onCleanup function is what you want in modern Matlab. No try/catch to ugly up your code, and it's robust even against a dbqu...

1 year ago | 0

Trouble Using Abstract Class from .NET Assembly
You do not need to, and in fact cannot, directly instantiate this abstract class. That's what an abstract class is: a class with...

1 year ago | 0

Changing format of a Struct
You should consider using a Matlab table array instead of a struct for cases like this. They're more suitable for data in this f...

1 year ago | 0

Abort external code process called by Matlab
There's no general mechanism for aborting a C# function call. The C# function has to be written specifically to support aborting...

1 year ago | 0

How to iterate through rows of a table, such that after each iteration some computation is done and then the below row is reached?
To iterate over the rows of a table, use height() to see how high your index should go: for iRow = 1:height(r) % ... do wo...

1 year ago | 0

Geoff is right. You're passing a URL to ftp(), when it only accepts host names. You need to do the directory navigation and file...

1 year ago | 1

Changing the default Java TimeZone does not work with createConnectionForPool
Each of the workers in the Parallel Pool is a separate process with its own separate JVM. You need to run that java.util.TimeZon...

1 year ago | 0

out of memory matlab runtime 2015b
Hard to say without knowing what operations your program is doing. But since you have a lot of free memory left, you might be ru...

1 year ago | 1

How to replace a string at specific line number in a text file?
Try this: Read in the whole text file Split it on \r?\n to break it in to lines Now you have an array of lines, so you can ed...

1 year ago | 1

Why does Matlab keep forgetting my path?
If I were you, I would give up on setting your path with pathtool or the Matlab GUI (since those try to change the path in the M...

1 year ago | 1

My function only works in the online matlab and not on the one installed on my laptop
Check to make sure your script is not depending on any files you have in your Matlab Drive. Your Matlab Drive is available by de...

1 year ago | 0

append several csv files into one

1 year ago | 0

1 year ago | 0

Is the Database Toolbox required for any MATLAB runtime connection to a database?
Yes, the Database Toolbox is required for database access from Matlab, unless you write your own custom replacement for it that ...

1 year ago | 0

Converting old Compiled GUIDE application with global variables
Older versions of the MCR are still available for download. Can you not just install the older MCR version that it was compiled ...

1 year ago | 0

How to run a standalone executable compiled in older version FROM console
Check the state of the %PATH% environment variable from within Matlab. Matlab adds its own libs to the PATH, and those libs over...

1 year ago | 0

| accepted

Get pointer to underlying data in mex C++ API
That mxGetPr() call is copying the data. The MEX API changed in R2018a when Matlab switched to the "interleaved complex data mod...

1 year ago | 0

xlsx format without the com server?
You need to use a third-party library like Apache POI to do this. Coincidentally, I'm writing an Office IO API to support use c...

1 year ago | 0

Error using mex G:\Matlab_WS\code_test\Assignment1\Add_Two.c:3:1: warning: return type defaults to 'int' [-Wimplicit-int] Add_Two(U16 a, U16 b)
See this line where the function is actually defined in Add_Two.c? Add_Two(U16 a, U16 b) You need to add an explicit "`U32`" a...

1 year ago | 0

| accepted

Submitted

dispstr
A Matlab API for extensible, polymorphic custom object display

Solved

MATLAB Counter
Write a function f = counter(x0,b) to construct a counter handle f that counts with an initial value x0 and a step size b. E...

1 year ago