I bought a new mac computer and I installed matlab 2014a on it. The problem I'm quite experiencing is weird and I couldn't find a way to fix this so far. I searched for the whole day yesterday and part of this morning, with no lucky.
I have a folder called Università and matlab has problem with the accent on it.
>> disp('Università');
Universit�
>> feature('DefaultCharacterSet')
ans =
UTF-8
I put feature('DefaultCharacterSet','UTF8') on my startup.m, but the only thing changed in the result there.
I read many people had this problem, but I'm not as lucky as them.
Any suggestion will be appreciated.
Cheers
Just solved a similar problem. You might want to change your OS X default language and restart Matlab. Just go to System Preferences - Language & Region - Advanced, and then change the Format Language to your language where these characters are used, and restart Matlab. This got at least umlaut characters working for me. Good luck!
Found from here: http://nl.mathworks.com/help/matlab/matlab_env/setting-locale-on-macintosh-platforms.html
Related
I'm using Mathematica 10 now, however, when I read/use codes written in an old-version, for instance, 2002, some codes may change heavily.
Can anyone recommend a good software to read them? I tried sublime text 3, but it doesn't work.
Thanks!
Is the old code in a Mathematica Notebook (.nb) file? If so, then you should be able to open it in Mathematica 10. It may just prompt you while you are opening it, saying something like, "This notebook was created in an older version of Mathematica, some things might be weird."
Since a few weeks whenever some app needs our password our needs our permission for something, it no longer displays it as understandable language, but with weird characters. How can we fix this?
It is probably a problem with your language for some inputs / options.
Look at this documentation about how to change your language for specific options:
http://support.apple.com/kb/PH11251
Depending on which version of OSX you are running, you might want to try Font Book (in the Applications folder) and specifically search for Look for Enabled Duplicates. Sometimes having duplicate or misnamed fonts can cause rendering problems like this.
There are other utilities as well, such as Font Doctor that can do similar (and more extensive) searches.
I am quite familiar with MATLAB, although not so much with writing GUIs in it. Now my boss gave me a MATLAB program with GUI which was developed on a Windows machine and runs there without problems. I copied it to my mac (osx 10.6.5 with MATLAB R2009b) using a USB memory stick and tried to work on the files on my computer.
When starting the GUI, some of the callbacks are executed, some not. I was able to open the figure file containing the GUI in GUIDE, but there cannot click on the callback fields in the Property inspector. Also some components are not shown in GUIDE which are visible when running the GUI. First I suspected it might be corrupted by changed newline characters, but learned that .fig files are binary, so this should not be the case. I opened the binary .fig file with a text editor and found the following ASCII line followed by binary data:
MATLAB 5.0 MAT-file, Platform: PCWIN, Created on: Tue Aug 10 17:11:57 2010
Are the GUIs created with MATLAB OS specific? Wouldn't this be really stupid?
I opened the files on the windows machine again and tried to export them or save them by specifying that I want them to be compatible with other operating systems but could not find an option like this.
Of course I researched this on google, and wondered that I did not really find something related. If an incompatibility exists, I think this would have been discussed, right?
Anyone knows about it or had the same problem before?
Hmmm, ok. Well, the answer is quite embarrassing but still bears some potential to learn from it. The folder that my boss gave me contained a lot of files and figures with similar names, like:
bla1.fig
bla.fig
bla0.fig
the simple problem was, the first time I opened the figure with GUIDE I opened figure bla.fig instead of bla1.fig. After this I always used the reopen function of GUIDE and did not see that it was always the wrong file. this caused the problems.
==> so there is no incompatibility between Mac and PC, although I wonder why the platform is written in the file then
==> it could have been a problem with backwards-compatibility as the original figure was created with MATLAB 5
==> as #Adrian and #Mikhail pointed out: it would be very very useful to use a Version control system in order to prevent to have hundreds of files with different numbers where most of them are of no use anymore
There seems to be some incompatibilities between different platforms and also between different versions, from my experience (MATLAB 5, 6, and 7) also -- I've encountered similar situations many times.
I am not exactly sure when the GUIDE became available with MATLAB -- I first noticed about it when I was using the first version of MATLAB 7. (It used to be very unstable at first, but is very usable now. For example, I vaguely remember a critical issue with MATLAB 7 Student version. You had to download a patch to make the GUIs work.)
Does your boss know how the *.fig file was created and in which MATLAB version? Can you open the *.fig on the old version of MATLAB and display the GUI correctly?
Some functions have possibly become obsolete since the earlier version of MATLAB that was used to create the figure, and may be causing some minor problem with it. If that is the case, you can troubleshoot it by checking all the error and warning messages that appear on the Command Window (or the MATLAB Console.)
Also, you should be able to load the *.fig files on the workplace using the following command from the Command Window, assuming that the files are in MATLAB's search path.
load your_file.fig -mat
You should then see a structure dataset, and see all of the figure properties, etc. in that structure.
You can use the information to create a new figure without the GUIDE (GUI Development Environment / Tool).
I recommend you writing your own GUI app. It's not that difficult, with/without the GUIDE.
I recently opened a site with some Tips on MATLAB Programming for beginners and intermediate users, and update it in my spare time. If you have any specific question about GUI building, I may (or may not) be able to provide answers there...
I'm using English version of Vista and having problems with using programs that display Russian characters somewhere. For example dictionaries doesn't work for me, since they display Russian character. Also I see just "magic" characters in text editor (notepad) when open a Russian text file. I tried to change whole Vista Interface language to Russian, but it still didn't solve the problem.
I CAN read any web page from browser, that's not a problem. Also adding "Russian" in "Text Services and Input Languages" doesn't solve this problem.
Does anyone know how to solve this?
Thanks.
My System: 32-bit Windows Vista Home Premium - SP2
After spending whole day on this issue I was finally able to solve it.
I just needed to change language for non-Unicode applications to Russian. I never knew about this property :). I hope my answer will be helpful to someone.
Do any of you have any good links that you could share with me? I am looking for a FAST programmers editor that can open a file containing over 100, 000 lines of code really fast? i'm currently using notepad atm and its taking a good 8 seconds to open a file that is 29000 lines long :(
i would prefer something that is just like notepad.
and yes, i have tried everything that i've found on google and they all either have splash screens, or they are just too slow. i don't want to wait 8 seconds just to add a line or two. or just to check what number the last array is etc...
Have you had a look at Notepad++.
I use this editor extensively and have been very impressed thus far.
check out
Programmer's notepad
You could always try vi / vim
Have you tried Sublime Text? I just tried it with 100,000 line file where each line contained 'x' * 80, and it only took about a second.
Personally I use jed, which is a lightweight emacs clone, but it's probably not to everyone's taste. (In particular, it doesn't really feel like a Windows application - it doesn't have the normal keyboard shortcuts etc. Once you're used to it, it's very quick though...)
Textpad is what I've used for years. It's cheap, light-weight, yet very functional.
It does have a splash by default, however, that can be disabled in the options.
I just ran a test of the Zeus programmer's editor and it loaded a 100,000 line C/C++ file in less than a second.
Cream. It's Vim, but with sane keyboard bindings.
TextMate if you use Mac
I am wondering why no one hasn't mentioned SciTE yet... its one of the best code editors, with source code coloring support (don't know if that's the correct term for it), and lots other features...
you can also try Notepad2, such as good replacement for notepad itself, extending it to be good enough as a code/simple programmer's editor...
Nobody mentioned Emacs yet?
I use it on the PC i'm on now without trouble (and the beast has 256Megs of RAM..)
In the linux world GEdit and Kate fits most needs.
Notepad++ has code coloring for almost every language.
Dreamweaver is great to use purely as a text editor/FTP tool if you're doing web stuff.