Comments on: TODO https://undocumentedmatlab.com Charting Matlab's unsupported hidden underbelly Sat, 21 Oct 2017 16:45:44 +0000 hourly 1 https://wordpress.org/?v=4.4.1 By: Yair Altmanhttps://undocumentedmatlab.com/about/todo#comment-410544 Thu, 20 Jul 2017 06:30:30 +0000 http://undocumentedmatlab.com/?page_id=59#comment-410544 Try it in R2017b :-)

]]>
By: D Brienhttps://undocumentedmatlab.com/about/todo#comment-410518 Wed, 19 Jul 2017 22:24:49 +0000 http://undocumentedmatlab.com/?page_id=59#comment-410518 I am experimenting with this now. You need to change your java version to 1.8+, which requires setting the environment variable. It doesn’t appear that this breaks anything as far as I’ve seen, but officially even MATLAB 2017a still is on 1.7, which is too bad. You will also need to set up your static classpath to include the jfxrt.jar and any custom functions you will end up using.

From there a JFXPanel will initialize the JavaFX toolkit and you can add a scene and all of the JavaFx functions work fine. You will need to use Yair’s method for sending event notices if you wish to communicate with MATLAB. This is nice though because you can actually use css to skin the look of the GUI. It seems like possible the best option for creating fully customizable GUIs in MATLAB.

The set up is the biggest pain I’ve found is the set up and changing the native java version. Not all clients will want to do that.

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/about/todo#comment-409804 Thu, 06 Jul 2017 12:09:38 +0000 http://undocumentedmatlab.com/?page_id=59#comment-409804 @Victor, yes, you can embed JavaFX in a swing JFXPanel (which you can insert into any Matlab GUI container, e.g. figure/tab/panel), and then modify the contents there. See Malcolm Lidierth’s comment here: http://undocumentedmatlab.com/blog/specialized-matlab-plots#comment-81287

]]>
By: Victorhttps://undocumentedmatlab.com/about/todo#comment-409770 Wed, 05 Jul 2017 20:27:33 +0000 http://undocumentedmatlab.com/?page_id=59#comment-409770 Hi Yair,

is it possible to call JavaFx from Matlab and use it for GUI/graphics?

Thanks and D”Sh from Germany

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/about/todo#comment-388933 Wed, 21 Sep 2016 20:09:59 +0000 http://undocumentedmatlab.com/?page_id=59#comment-388933 @Darin – no, I’ve nothing planned on this topic at this point in time

]]>
By: Darinhttps://undocumentedmatlab.com/about/todo#comment-388930 Wed, 21 Sep 2016 18:58:17 +0000 http://undocumentedmatlab.com/?page_id=59#comment-388930 Are you planning to do Graph / Digraph?

]]>
By: Martin Afanasjewhttps://undocumentedmatlab.com/about/todo#comment-380556 Thu, 16 Jun 2016 09:40:15 +0000 http://undocumentedmatlab.com/?page_id=59#comment-380556 @Herbert – For this kind of information you want to have a look at /proc/self/status. You can replace self with any process ID, but self always automatically resolves to the process that is requesting the information, thus if you read this from within MATLAB with fileread('/proc/self/status'), you’ll get information on the currently running MATLAB process.

The two most interesting fields in this file are VmRSS (RSS = resident set size) which is roughly the currently occupied RAM and VmHWM (HWM = high water mark) which is the peak RAM usage during the lifetime of the process. Some documentation on this file and related files can be found via man 5 proc. If you happen to work on NUMA machine (typically multiple nodes with distinct memory interfaces) then you can inspect /proc/self/numa_maps to get a detailed overview of all memory belonging to the process and how it is distributed across the nodes in the machine. (And man 5 numa provides more detail on how to interpret this file.)

I hope this helps to get you started.

]]>
By: Herberthttps://undocumentedmatlab.com/about/todo#comment-379579 Wed, 08 Jun 2016 07:22:37 +0000 http://undocumentedmatlab.com/?page_id=59#comment-379579 Hi Yair,

if possible, please document some possibilities of measuring MATLAB’s overall RAM usage on Linux (not on a per-line or per-function basis). I thought it might be possible to use some information from the underlying JAVA or Linux’s PROCFS. For the first option, I’m lacking a lot of background information how MATAB uses JAVA and how it allocates memory.

Thanks a lot for consideration.

]]>
By: Maarten van der Seijshttps://undocumentedmatlab.com/about/todo#comment-359287 Mon, 19 Oct 2015 13:49:14 +0000 http://undocumentedmatlab.com/?page_id=59#comment-359287 I recalled seeing this drag&drop request a while ago. I recently posted a Matlab/Java solution on the file exchange to support drag and drop of files and text into Java Swing components. I created it along the way and honestly don’t know exactly what inspired me back then, probably an article of Yair or some other code on the FEX. It might help one to implement drag and drop in a GUI with Java components. For Matlab uicontrols, you could get the underlying Java object using Yair’s findjobj function. You can find it here: http://mathworks.com/matlabcentral/fileexchange/53511.

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/about/todo#comment-357451 Tue, 22 Sep 2015 08:34:49 +0000 http://undocumentedmatlab.com/?page_id=59#comment-357451 @Erik – system_dependent (or its close sibling feature) change very frequently, sometimes even on adjacent releases, so it doesn’t make much sense to “document” it. I wrote about this a few years ago in an article that you might find useful: http://undocumentedmatlab.com/blog/undocumented-feature-function

]]>
By: Erikhttps://undocumentedmatlab.com/about/todo#comment-357449 Tue, 22 Sep 2015 08:26:34 +0000 http://undocumentedmatlab.com/?page_id=59#comment-357449 Please document the system_dependent function (e.g. see its uses in ver.m). It can get OS specific info, which can be of major use for GUI developers that need to customise their GUIs based on the system OS version, not only on the OS being Windows, Linux or Mac OS X.

]]>
By: Matthttps://undocumentedmatlab.com/about/todo#comment-331239 Wed, 10 Sep 2014 00:35:03 +0000 http://undocumentedmatlab.com/?page_id=59#comment-331239 Yair,

I’m very much looking forward to the new ribbon miniseries! There’s some information out there on customizing them, but your contributions often make working with the hidden aspects of Matlab so much easier.

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/about/todo#comment-327192 Mon, 30 Jun 2014 10:05:21 +0000 http://undocumentedmatlab.com/?page_id=59#comment-327192 @Michele – I do not have any plans to discuss these issues: I am not aware of any undocumented (nor documented) feature or tool that supports this.

]]>
By: Michelehttps://undocumentedmatlab.com/about/todo#comment-327190 Mon, 30 Jun 2014 09:17:23 +0000 http://undocumentedmatlab.com/?page_id=59#comment-327190 Hi,

what about (automatic) uml (sequence and class) diagram generator?

Regards

]]>
By: Charliehttps://undocumentedmatlab.com/about/todo#comment-149635 Wed, 30 Jan 2013 15:13:24 +0000 http://undocumentedmatlab.com/?page_id=59#comment-149635 Hi Yair! Excellent blog!

It’d be great if you could talk about Matlab’s serial object and its tricks.

Cheers!
Charlie

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/about/todo#comment-75331 Thu, 23 Feb 2012 16:11:45 +0000 http://undocumentedmatlab.com/?page_id=59#comment-75331 @Eric – Drag & Drop (DND) is on my TODO list, but I do not believe that I will get around to posting an article about this before the second half of 2012, or maybe even 2013. DND is a complex issue that would be difficult to fit into a blog-type article, requiring quite a bit of effort. There are plenty of other low-lying fruits (so to speak) that I would like to publish before DND.

In the meantime, you can read section 3.7 of my Matlab-Java programming book, which is dedicated to this topic. If you want a softcopy report about using Java DND in Matlab, please email me and I will send it to you for a small fee.

If you have a specific issue that cannot wait, I would also be happy to provide you with my consulting services.

]]>
By: Erichttps://undocumentedmatlab.com/about/todo#comment-75321 Thu, 23 Feb 2012 13:54:18 +0000 http://undocumentedmatlab.com/?page_id=59#comment-75321 I am also very interested in a drag & drop Java solution. I had been using one based on richtext.richtextctrl.1 that can be found on the mathworks file exchange, but it never worked on 64-bit operating systems. Now that I am using Windows 7), I am stuck.

]]>
By: Cuciuchttps://undocumentedmatlab.com/about/todo#comment-74656 Fri, 17 Feb 2012 18:30:01 +0000 http://undocumentedmatlab.com/?page_id=59#comment-74656 Introduction to Matlab intended for beginners. The first part of the video can be obtained here. It comes from a course I teach as part of an online Masters degree program in engineering

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/about/todo#comment-73959 Sat, 11 Feb 2012 18:09:43 +0000 http://undocumentedmatlab.com/?page_id=59#comment-73959 @Robert – I must say that I find Mathwork’s official response, directing you to the articles you mentioned above, both flattering and ironic.

Keep in mind that Mathworks does not endorse any of the articles or information on this website. Also, none of my information comes from official Mathworks sources (excluding what I find in the source files of course). I have made mistakes in the past, and I will probably make more mistakes in the future, and without official Mathworks feedback I will not even know that I have made some mistakes. So, everything that I report (especially about my hunches of future plans, as for HG2), should be taken with caution and skepticism.

]]>
By: Malcolm Lidierthhttps://undocumentedmatlab.com/about/todo#comment-72449 Sat, 28 Jan 2012 01:45:56 +0000 http://undocumentedmatlab.com/?page_id=59#comment-72449 @Robert
You might take a look at the SaveAsSVG.m function bundled in the Project Waterloo Swing Library.
http://sigtool.sourceforge.net/
That just uses the Apache Batik Java library (included in MATLAB distributions) to output a MATLAB figure to SVG. It seems to do what you want if I have understood correctly, but to SVG not PNG. Note that MATLAB graphics will be bitmapped, not vectorized, in the SVG

]]>