Matlab gui 2006 compatibility with new version 2012 - matlab

I am trying to run matlab gui code written in matlab via 2006. I believe the code worked with 2010, but while running 2012a, I just get blank outline of the gui without any of the buttons displayed. Any ideas? If you have any questions, I can provide more information.

I selected all and moved it down in GUIDE to see the buttons.

Related

VB6 form cuts off toolbar at run-time on Windows 7/8/10 but not XP

I have a Visual Basic 6.0 application which has several forms hosting toolbars. One of these forms, as depicted in the image, displays with its toolbar cut off or truncated on the right by the form's right hand edge. There should be a 'Paste' button also displayed.
At design time the form displays correctly. At run time it also displays correctly on Windows XP, but not on 7/8/10. I am using a VMWare VM running XP Professional 32-bit for development. Notable properties include: form is re-sizeable; toolbar does not wrap. I have tried setting the form width manually in the 'Load' event with no effect. Aside from this issue I've had no problems running this Visual Basic 6.0 application on any version of windows. Any help would be greatly appreciated. Thank you.
Why you use Windows XP as environment of development?
You should use always the latest version of Windows (Windows 10) to avoid this problems.
You should never use Windows XP as a development environment because it is too different from Windows versions (Vista and later). It would make sense only if you use the Classic theme in all versions of Windows, otherwise you will find many differences because system object measurements vary from theme to theme. Only the Classic theme is constants on all Windows versions.
My solution example: on my applications I use save/load routines to manage the form size and position (I use a simply user INI file). So, when the user change them will be saved on INI file, the next session the same size e position will be loaded again.
However, this solve the problem with resizable form, for fixed forms don't.
Finally, i suggest you to create a Windows 10 (VMWare or VirtualBox), install all VB6 environment, and use this to develop.
But, of course, if your host system is already Windowx 10, then use this directly.

Running MATLAB scripts from Sublime Text 3 without opening new instances

Good day,
I'm a rather inexperienced code writer, as my only experience is with MATLAB. However, I'll soon be learning all about Python, and I was recommended to use Sublime Text as an editor. In the mean time I'd like to get a feel for the editor by using it for my MATLAB tasks, and I'm having some trouble getting it to work so that I can run MATLAB scripts from Sublime, without having it opening up a new MATLAB instance every single time I run code. Would anyone be able to assist me with this?
I'm using Windows 7 Ultimate x64, MATLAB 2013B, and Sublime Text 3. Right now I'm building my scripts using
{
"cmd": ["C:/Program Files/MATLAB/R2013b/bin/matlab.exe", "-nodesktop", "-nosplash",
"-r", "\"run('$file')\""],
"selector": "source.m",
"working_dir": "${project_path:${folder}}"
}
I'm not sure if I want the nodesktop, but I can just take that away. The point is that doing this opens up a new MATLAB screen every time, which takes a while and feels rather unnecessary.
I'd post this on the sublime forum, but it seems to be down for me.
You will need to run MATLAB as a server if you don't want a new instance for each call. I'm afraid I can't help you with the specifics, but you can have a look at the MATLAB Automation Server page in the official documentation. And then find out how to call COM objects from Python, maybe using PyWinAuto. Good luck.
P.S. Yes, the Sublime Text forum is down for me too. It has been down for five days now. Not good.

matlab code analyzer produces empty tooltips

I'm running MATLAB (R2013b) on Ubuntu (results of ver command are pasted below).
I've just started working with this system, and I've realized that coding is seriously hard because the typical "tooltips" that show up in the editor are empty. Unfortunately I cannot paste screenshots, but here I describe the problem: the orange marks on the right margin of the editor should indicate a warning. Passing the cursor on them, one typically gets a tooltip with a short message, detailing the reason of the warning.
In my case, I still see the tooltip... but cannot read anything in there, it's just a gray rectangle. This is terribly annoying... Some idea on what may be the problem?
>> ver
MATLAB Version: 8.2.0.701 (R2013b)
Operating System: Linux 3.5.0-41-generic #64~precise1-Ubuntu SMP Thu Sep 12 16:50:04 UTC 2013 x86_64
Java Version: Java 1.7.0_11-b21 with Oracle Corporation Java HotSpotâ„¢ 64-Bit Server VM mixed mode
Are you using the Unity desktop (if you don't know, you probably are, since Unity is the default).
I've encountered your problem with multiple Matlab versions under Linux, and it always boiled down to using a "3D / fancy pants" window manager.
Try using the "Gnome Classic (no effects)", "Ubuntu 2D" or mate sessions and report back whether your problem still exists. Here's a screenshot of the standard desktop login screen in Ubuntu 12.04:
To see the available sessions, do a left-mouse click on the ubuntu logo next to the username (here test):
I had the same problem and solved it without disabling Unity.
Solution:
-open matlab
-go to Preferences->colors
-uncheck "use system colors" for desktop tool colors
-Apply
Now you should see text.
It seems likely that the problem is due to one of 3 scenarios:
1) The relevant default colors in Unity are grey text ion grey background.
2) Matlab Doesn't manage to read the default relevant colors from Unity
3) there is a bug in matlab where it not just greys out the color controls in the GUI but actually greys out the underlying colors.

MATLAB help/documentation not displaying correctly

I'm having a problem with the built-in help/documentation within MATLAB 2013a (issue also present in 2012b).
Upon opening the help files the pages appear with no formatting, only plain text. Search results do appear correctly though.
I have found only one instance of someone else with this issue, on MATLAB central here. However, there are no responses to the author's question. The issue I'm having is exactly the same as described there.
I have tried removing the preference folder and relaunching MATLAB but this doesn't help.
I'm using Windows 8.1 and MATLAB 2013a.
Any help or suggestions on how to fix this would be very much appreciated.
Edit:
Thank you everyone for the feedback so far. I don't believe java to be the issue, I have the latest version installed (1.7.0_45) while MATLAB uses it's own version (1.6.0_17). Both of which co-exist on my machine.
Following horchler's thread led me to another semi-related bug report here. The following code is listed at the bottom of the workaround (the script attached to the workaround didn't fix anything unfortunately).
com.mathworks.mlwidgets.html.HtmlComponentFactory.setDefaultType('HTMLRENDERER');
This results in a degraded appearance of documentation pages and loss of some functionality but is still an improvement over the plain text and scrambled pages.
Hopefully from this new information we can work towards a solution!
One solution is to go back to IE-10, or to use the patch on http://www.mathworks.com/support/bugreports/989850
Which basically replaces the localnav.js at <MATLAB>/help/includes/product/scripts
The link to download!
This is an old post, but I had the same issue and have a fix (not downloading R2013b or java related). Just downgrade from IE 11 to 10: Go to System (or System & Security)->Windows Update->View Update History->Installed Updates -> Find IE11 and uninstall it. Your system should revert back to the prior installed version. This fixed the help issues.
The problem is related to Internet Explorer 11, which MATLAB uses to render its help files. I was experiencing this problem in Windows 7 and rolling back to IE 10 fixed it right up. Unfortunately, that's not an option with Windows 8.

Matlab deployment with financial toolbox?

I am compiling a matlab code to exe and it has the uicalendar function in it. I did put the main app as my main .m file and in the setting I checked the financial toolbox.
The file compiled successfully and I can run the GUI but when I press the button that calls the uicalendar, the calendar will not show up.
Any idea ?
Thank you
According to this page, all GUI tools provided by the Financial toolbox (including uicalendar) are not supported by the MATLAB compiler for deployment.
Maybe you should search the File Exchange for an alternative...