Community Profile

photo

Andrew Janke


Last seen: 3 days ago

39 total contributions since 2018

Contact

Andrew Janke's Badges

  • Knowledgeable Level 1
  • Solver
  • Personal Best Downloads Level 1
  • First Review
  • 5-Star Galaxy Level 1
  • GitHub Submissions Level 3
  • First Submission
  • First Answer

View details...

Contributions in
View by

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

8 months ago | 0

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

8 months ago | 0

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

8 months ago | 0

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

8 months ago | 0

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

8 months ago | 0

Answered
Error downloading .txt or .nc files through the ftp link
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...

8 months ago | 1

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

8 months ago | 0

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

8 months ago | 1

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

8 months ago | 0

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

8 months ago | 1

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

8 months ago | 0

Answered
append several csv files into one
If you're using a newer version of Matlab, you probably want to use readtable instead of csvread. Don't forget the file extensio...

8 months ago | 0

Answered
Urlread/Webread issue on internal network
Like the error web page says, your access to that website is being blocked by your company's network configuration. Contact your...

8 months ago | 0

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

8 months ago | 0

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

8 months ago | 0

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

8 months ago | 0

| accepted

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

8 months ago | 0

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

8 months ago | 0

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

8 months ago | 0

| accepted

Submitted


dispstr
A Matlab API for extensible, polymorphic custom object display

8 months ago | 1 download |

Submitted


apjanke/SLF4M
A simple but powerful logging framework for Matlab

8 months ago | 1 download |

Thumbnail

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

9 months ago

Solved


Calculate BMI
Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...

9 months ago

Solved


Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

9 months ago

Solved


Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

9 months ago

Solved


Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

9 months ago

Solved


Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...

9 months ago

Solved


Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

9 months ago

Solved


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

9 months ago

Solved


Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

9 months ago

Load more