« first day (1595 days earlier)      last day (1627 days later) » 

2:43 AM
I don't think there's any macOS folk here, but just in case any of you have noticed something similar:
0
Q: MATLAB no longer unloading MEX-files after upgrade to macOS Mojave

Cris LuengoIn MATLAB, clear mex unloads all MEX-files from memory (unless they're locked). Under previous versions of macOS, I was able to re-compile a MEX-file and run the modified version without restarting MATLAB, simply by issuing a clear mex command. This is no longer possible under Mojave. For exampl...

 
 
9 hours later…
11:26 AM
posted on November 11, 2019 by Steve Eddins

Of all the MATLAB or MathWorks toolbox functions that have been mentioned in this blog since 2006, imshow and imread have appeared the most. As in last week's post, they often appear together, right at the beginning: ... read more >>

 
 
9 hours later…
VoB
8:20 PM
Hi everyone, I'd need an opinion.
In a working precision diagram, is it correct to put on x-axis a measure of the computational effort (such number of grid points) and in the y-axis the elapsed time?
Or do I need to put the error on the x-axis?
The contest is the comparison of two solvers
 
8:40 PM
1
Q: Reading a large text file using python is way slower than the same code for reading the same text using Matlab, Any idea why?

SimaSI have the following code in Matlab for reading a text file Text file is having XML format but I read it as a text file: function [jointAngleData,PositionData, AccelerationData,OrientationData, AngularVelocityData,AngularAccelerationData,TimeStamps] = getDatafromMVNX (file,elimina...

Shocking! ^^^
@VoB Not sure what a precision diagram is, but the name makes it sound like it shows precision. If you are not putting precision (or error?) on one of the axes, you're not showing precision...
On the other hand, you can plot whatever you want against whatever else you want. Just make sure that the independent variable, if you have one, is on the x-axis. Your readers will expect this, and upsetting that convention makes it harder to read graphs.
 
@CrisLuengo that's beyond "python is slow". Numpy can be quite fast for instance. That code is abysmal
calling df.append in a loop is probably as bad (or worse) than snowballing numpy arrays like that
Does MATLAB have optimization for PositionData = [PositionData ; currentlinedata];? I keep forgetting
with python that's guaranteed to keep allocating new arrays with each iteration
 
@AndrasDeak No. PositionData(end+1)=currentlinedata is much better.
Or at least this was the case in R2017a. Not sure it has improved since.
I presume it hasn't.
 
probably hasn't
> I even tried to use regular expression and BeautifulSoup package. Neither gave me better timing.
that remark tells me I shouldn't engage
 
LOL!
 
VoB
8:55 PM
Thanks Cris. A more scolastic question, sorry... if I want to show the error in solving my differential equation, but don't have the analytical solution, how can I do?
 
@VoB I don't have experience with that. Typically one shows precision of numerical solutions by slightly tweaking the input parameters and looking for the size of change in the output. Not sure that's relevant in your case though.
 
VoB
Thanks anyway for the hints, Cris! ;)
 
you can also refine the parameters to get a more precise solution, and see how much that changes
 
Your data in C and Octave is different. 2nd row, 4th value: 0.58 vs 0.5. If I take your C values in Octave, I get your C output. — Cris Luengo 1 min ago
 

« first day (1595 days earlier)      last day (1627 days later) »