- Enclose with " for exact match e.g., "uitable report"
- Advanced on-site Matlab training - amazing value
- Afterthoughts on implicit expansion
- Speeding up Matlab-JDBC SQL queries
- Working with non-standard DPI displays
- uigetfile/uiputfile customizations
- Icon images & text in Matlab uicontrols
- Aligning uicontrol contents
- Customizing uifigures part 2
- Zero-testing performance
- AppDesigner’s mlapp file format
- Customizing axes part 5 – origin crossover and labels
- Customizing uifigures part 1
- Listbox selection hacks
- A few parfor tips
- Handling red Java console errors
- MEX ctrl-c interrupt
- Desktop (40)
- Figure window (45)
- Guest bloggers (56)
- GUI (143)
- Handle graphics (74)
- Hidden property (39)
- Icons (7)
- Java (158)
- Listeners (20)
- Memory (14)
- Mex (11)
- Presumed future risk (342)
- Public presentation (3)
- Semi-documented feature (7)
- Semi-documented function (32)
- Stock Matlab function (125)
- Toolbox (6)
- UI controls (47)
- Uncategorized (12)
- Undocumented feature (181)
- Undocumented function (33)
TagsActiveX Callbacks COM Compiler Desktop Donn Shull Editor Figure FindJObj GUI GUIDE Handle graphics HG2 Hidden property HTML Icons Internal component Java JavaFrame JIDE JMI Listener Malcolm Lidierth MCOS Memory Menubar Mex Optical illusion Performance Profiler Pure Matlab schema schema.class schema.prop scribe Semi-documented function Toolbar uicontrol UIInspect uitable uitools uiundo Undocumented feature Undocumented function Undocumented property
- TheBlackCat (16 hours 18 minutes ago): It is hard to say without seeing more code. It may very well be that the data can only come in a few formats, so transposing it is the correct thing to do.
- Guillaume (17 hours 33 minutes ago): Well, presumably, the code is operating on vectors, so the alternative could be dataA(:) + dataB(:) But really, the proper alternative would have been to find out why the data...
- TheBlackCat (1 day 11 hours ago): What would your alternative be? The equivalent one I can think of would be: if numel(dataA)~=1 && numel(dataB)~=1 && any(size(dataA)~=size(dataB)) dataB = dataB'; end A more...
- Yair Altman (1 day 13 hours ago): @David – while I fully agree with you that it’s not good coding style/practice, I’ve seen much worse client codes. Most Matlab users don’t have a degree...
- David B (1 day 13 hours ago): If nothing else I hope that the exercise of debugging this proved as a rude wake-up call for the author of that original and terrible code in the try/catch. They should be ashamed.
- TheBlackCat (2 days 9 hours ago): Your client is lucky the problem got caught. A lot of such issues will likely go unnoticed. For example, basically anything with a mathematical operation followed by the use of...
- Yair Altman (2 days 11 hours ago): @Steve – thanks on both accounts. I amended the text accordingly.
- Steve Eddins (2 days 11 hours ago): I am looking into the possibility of adding a “compatibility consideration” to the release note. Implicit expansion was pulled from the final release of R2016a for...
- Yaroslav (3 days 14 hours ago): Hi @Marco, Thank you for your comment. Unfortunately, your solution tells me only how many monitors I can have. What I need is to know how many monitors I currently have. To be...
- marco (3 days 19 hours ago): Hi, maybe this can be helpful: >> monitorPos = get(0,'MonitorPositions') monitorPos = 1 1 1600 900 1601 1 3200 900 then you can play with ‘pixels’ positions
- Samuel Brocksopp (3 days 22 hours ago): Hi there, I have been suffering the burden of MATLAB’s FTP functions for a few days now. Like you stated in your post, some of the other solutions are not ideal or...
- Kristian Loewe (4 days 17 hours ago): It seems that feature(‘OpenGLLoadStatu s’) has been dropped. It’s still available in R2014b but not in R2015b (Linux versions). Do you know if it’s...
- Yaroslav (5 days 0 hours ago): Hi Yair, Suppose I have two monitors. How can I tell a figure to appear on the secondary one, if it exists? I can do something likehFig = figure('Units','normalized'...
- Matthias Kirchhoff (8 days 19 hours ago): As for me the solution using java.awt.Toolkit.getDefaultToo lkit.getScreenSize does not work correctly when using more than one monitor. Better use: ge =...
- Yair Altman (11 days 2 hours ago): Try to close the ResultSet and stmt (as I’ve shown in the post) after you’ve used them, in order to clear the cache between subsequent JDBC calls, otherwise they...
Search Results for: gui246 relevant articles found:
In my previous post, I explained how the findjobj utility can be used to access a Matlab component’s underlying Java component. Findjobj has another role: displaying the component hierarchy of complex Matlab containers such as the figure window, GUIDE or the Editor. When findjobj is called with no output arguments, the function infers that the user requests to see the GUI version, rather than to get the control’s Java handle: >&g… Continue reading
Last week I presented a detailed explanation of the uiinspect utility, which displays a GUI listing all the properties, callbacks and internal methods of an inspected object. Something like Matlab’s inspect tool on steroids. I explained that uiinspect uses com.mathworks.mlwidgets.inspector.PropertyView, which in turn uses JIDE’s PropertyTable. PropertyView automatically extracts the inspected object’s properties and displays th… Continue reading
…ccur within the specified number (e.g., fast double-clicks) will be considered by the component as only a single click. The default value of 0 means that all clicks will be processed separately, which is often undesirable in GUI applications. Remember that the value is in milliseconds, not seconds. FlyOverAppearance – boolean flag (default=false); if set, the button appearance is changed to a flat (2D) appearance with a special 3D border… Continue reading
…for example to create graphical insets. Multi-layered graphs, with each layer having independent axes. Figure 2: A multi-layered graph. Each plot has its own graph layer with independent axes. Built-in mouse interactivity and GUIs for interactive plot editing. Figure 3: A plot editor for a single-layered graph. Java programmers might note here the use of a few custom-designed Swing widgets: a dial that subclasses JSlider and supports multiple-tur… Continue reading
When designing Matlab applications, we can either use Matlab’s designer (guide), or manually position each GUI component programmatically, using its Position property. Matlab lacks the layout managers so common in Java, that enable easy relative component positioning, taking into account dynamic container size, components spacing weights etc. Of course, we can always trap the container’s ResizeFcn callback to update our layout, but d… Continue reading
…available space for a new label. I could drive the entire content down to make space for it, but that would reduce the usable space for the actual contents, which is already at a premium: Adding a transparent label to Matlab GUI (click for full-size image) A natural place for the new label, as indicated, would be on top of the empty space next to the content’s sub-tabs (Correlation and Backtesting). This empty space is taken up by Matlab&#… Continue reading
Matlab includes a wide variety of internal widgets (GUI components) that could be very useful in our GUIs. One such widget is an animated spinning icon, which is often used by Matlab itself and numerous toolboxes to illustrate a running task: Sample usage of an animated spinning icon One of the internal widgets that are readily-available for use in our Matlab GUI and displays a similar (but not identical) spinning icon is BusyAffordance, which i… Continue reading
…either directly or because its container was resized. ComponentShownCallback – fired when the component is displayed (setVisible(true)). Compare: ComponentHiddenCallback FocusGainedCallback – fired when the component gains GUI focus, by mouse click, Tab click, or calling the component’s requestFocus() method. FocusLostCallback – fired when the component loses focus to another component or window. Compare: FocusGainedCallback Hierarchy… Continue reading
A couple of weeks ago, a reader of this website requested an article about color-selection components. So Ed – this one’s for you Matlab includes a fully-documented uisetcolor function to enable color selection. uisetcolor uses a modal dialog window for this. To integrate this color-selection dialog in our GUI, simply add a uicontrol button or a menu item that call uisetcolor in their callback function. An example of such an integra… Continue reading