Questions tagged [matlab]
Programming questions about MATLAB are off topic and should be asked on Stack Overflow. MATLAB is a high-level language and interactive programming environment developed by MathWorks. It is the foundation for a number of other tools, including Simulink and various toolboxes that extend the core capabilities.
256
questions
0
votes
1
answer
101
views
Viewing exacution of a single file in GNU Octave (echo fcnname on)
Question is simply: in MATLAB, you could simply use echo myFun on to set the echo status of a single function m-file to on, which then shows you each of the lines executed.
In GNU Octave, however, ...
3
votes
2
answers
1k
views
Starting Matlab in Command Line Cygwin
I would like to start Matlab in its 'shell mode' from the Cygwin terminal. However if I enter
matlab
the GUI appears. If instead I try
matlab -nodesktop
Then a new command line opens in another ...
1
vote
0
answers
797
views
Cannot run program due to "device is not ready" error
I have a 32bit Matlab mex function that was linked against OpenDDS libraries as well as my own custom ones. I made a Visual Studio 2010 setup project to deploy the necessary dlls to other machines. I'...
0
votes
1
answer
6k
views
“Installation Failed” when installing Microsoft Windows SDK 7.1
The operating system of my laptop is Windows7x64. Whenever I install MatlabR2013b on it, this message is shown at the end of installation process:
Your installation may require additional ...
0
votes
0
answers
98
views
Why does pressing Shift+F5 insert @ character in some text editors?
While debugging in matlab (and sometimes in the code editors of other IDE's, such as Visual Studio 10) I noticed that sometimes pressing shift+F5 (keyboard shortcut for stop debugging) inserts the @ ...
0
votes
1
answer
3k
views
Forwarding high quality graphics from matlab via ssh
I am connecting to a local server that runs MATLAB (version 2015a) via ssh with the X forwarding option (ssh -X).
However when I start MATLAB I get this warning:
libGL error: failed to open drm ...
0
votes
2
answers
77
views
Disable win7 harddisk ram for a specific software
Sometimes when you ask matlab to create a very large array, it exceed actual ram and tries to go into harddisk, which slows down the computer so much that it becomes impossible to close matlab, only ...
1
vote
0
answers
315
views
Unable to launch matlab after installation
I have recently installed a copy of Matlab on my Linux Mint distro to a secondary hard drive. I have tried running it in different ways and none of them seems to work.
I have tried using sudo, and ...
1
vote
1
answer
271
views
How to start matlab daemon
I have a plist calling a python script every day. The python script calls different matlab routines depending on their success. This works perfectly fine when I'm using the computer but when I'm not ...
0
votes
1
answer
106
views
Call MATLAB installed on network drive from Cygwin shell script
MATLAB is installed on a network drive, and I want to call it from a shell script. The installed location is \\apps\matlab2014b$\bin\win64\MATLAB.exe in P:\. I am using Cygwin to run the shell ...
1
vote
3
answers
515
views
Spreadsheets for Matlab
I was wondering if there was a way to directly write a spreadsheets in Matlab, or if someone had published a Matlab add-on that specifically introduced spreadsheets?
0
votes
1
answer
40
views
reading from file in matlab and store its content in 2 variables
i have input file like image below and it contains adjacency matrix+ one number in first line. so here is the problem that i cant read file in order to set this information in 2 variable
one of them ...
1
vote
1
answer
2k
views
Can I install Matlab on my external HDD drive?
I am running Win 7 on my laptop. My hard drive is very small 128 G, and I haven't storage enough to install Matlab on local partition. Can I install Matlab on my external hard and use it without any ...
1
vote
2
answers
56
views
Summing a row excluding its minimum value
I need some help please.
Let's say I have a matrix:
4 5 6 6
a= 2 7 9 1
9 0 4 5
I want to find the sum of row 2, without including the minimum value of row 2 (that's 1),
I have tried this:
...
0
votes
2
answers
2k
views
How to access MATLAB license server vis ssh?
I have MATLAB installed on my laptop which should connect to a certain host that stores license information. I used to be able to use MATLAB anywhere that I had an internet connection. Recently, I ...
1
vote
1
answer
366
views
How to show Matlab local documentation in system browser when pressing F1?
I'm using Windows7 and Matlab R2013a on my PC.
I find it impossible to copy/paste in Matlab's window help or help browser:
so I click Get Page Address and copy the command:
web([docroot '/matlab/ref/...
0
votes
1
answer
555
views
Unable to run Matlab on Ubuntu after fresh installation
specs:
OS - Ubuntu 15.04 (64-bit) and Matlab - ver. R2013a (64-bit)
I have successfully installed and activated Matlab. After trying to run it via terminal, it is showing error on the terminal.
...
2
votes
1
answer
2k
views
MAC equivalent - user name & appdata
I have a couple of questions:
On PC I can get the username from the environment variable USERNAME and on LINUX it is USER - what the MAC equivalent?
The users local area on windows can be found via ...
1
vote
1
answer
59
views
renaming all files with similar structure to same name
I have a lot of files in subsubfolders. They all look like in.*.radiate, where * is just a number.
Is there a way to rename all of them with a single command to just in.radiate?
Either in linux or ...
0
votes
1
answer
48
views
Matlab test existence of file(fail)
I try to execute this 2 commands but the result is very weird
K>> delete lista_arqs.txt
Warning: File 'lista_arqs.txt' not found.
K>> exist('lista_arqs.txt','file')
ans =
2
I mean..... I tried ...
2
votes
2
answers
12k
views
Running MATLAB from Mac OSX terminal
I'd love to run matlab from the terminal on my Macbook (running Lion), forgoing the standalone matlab interface. All the information I've found online suggests that the command is simply something ...
2
votes
1
answer
181
views
Matlab user guides in Kindle format
I want to read the Matlab user guides and getting started guides in Kindle format, but I can not find them in Amazon. Someone could show me how to convert a special section in the Help file into the ...
0
votes
0
answers
650
views
How to make regular backups with TeamViewer?
I have to use a remote computer for a computational project in MATLAB. Therefore I connect to it via TeamViewer, and run my codes in that machine. But I also want to write the code on my computer, and ...
14
votes
4
answers
39k
views
Why is Adobe Flash Player downloaded as a ".dmg.mdlp" file?
When I download the current Adobe flash player installer from the Adobe website using Safari 6.0.1 under OSX 10.8.2, I end up with a file named 'install_flash_player_osx.dmg.mdlp' in my downloads ...
0
votes
1
answer
158
views
Running MATLAB installed on a cluster from mac
I recently switched to mac from ubuntu, and I was wondering if there is any way in which I can use the MATLAB installed in a Linux cluster in my mac.
I can run it without user interface, by using ssh ...
0
votes
1
answer
155
views
record audio with builtin and external mic simultaneously
I want to record two channels of audio into Matlab on OSX, using the internal microphone and an external usb microphone at the same time.
Is this possible without any additional hardware?
0
votes
1
answer
5k
views
Unknown Java error: Warning: Unable to load Java Runtime Environment
I am getting the following error dialogue when I want to run a program. The program has previously worked and it is giving this error all of a sudden:
Warning: Unable to load Java Runtime Environment:...
2
votes
1
answer
25k
views
Change the file from .mat to .txt
How can I convert a .mat file into a .txt file with all the headers? I do not know how many fields are present.
How do I export this data? I have MATLAB.
I tried in MATLAB:
load('test_data.mat');
...
0
votes
1
answer
434
views
Remote access to matlab from windows computer to mac
first of all I must say: please be patient with me(!)
I work with matlab in my university. Lately I have being working with very heavy codes and my computer is not powerful enough. A professor, and ...
0
votes
1
answer
687
views
MATLAB crashes unexpectedly on Windows 7
I'm having difficulties in running a set of experiments due to frequent and unpredictable crashes of MATLAB. I am working on Windows & and I suspected that it was related to plotting graphs. Now, ...
0
votes
1
answer
1k
views
How to change font of matlab console in windows
I like to run matlab in console mode without JVM. So basically I run this command:
matlab /nojvm
It looks like this:
What I want to do is change this font. And maybe the colors. What would be best ...
1
vote
4
answers
2k
views
How can I close a program with dos when the computation is finished?
I have a a problem with running a program in matlab by either the use of a batch file or just the dos() function. I can now open a program en run it with the input by using:
start program.exe ...
1
vote
0
answers
6k
views
Matlab is continuously asking me to activate when I am trying to launch
Matlab is continuously asking me to activate when I am trying to launch
cd /usr/local/MATLAB/R2014a/bin
User@User-Inspiron-N5010:/usr/local/MATLAB/R2014a/bin$ sudo ./matlab
What is the solution for ...
2
votes
1
answer
613
views
What is required to run executable files built from MATLAB?
When I deploy my project to an exe file and bring it into another, which computer hasn't installed MATLAB yet, does it work fine or do I need to install something?
For example, Java apps need the ...
2
votes
2
answers
692
views
xterm: Running a long simulation in MATLAB on a remote machine
I would like to run a long simulation (24 hours) in MATLAB installed on a remote linux machine, using xterm.
I have no problems connecting to the remote machine from my Macbook, and launching MATLAB ...
4
votes
3
answers
6k
views
Matlab libraries in Ubuntu
I just installed matlab on my computer, seemingly successfully, but I've been trying to run a program, and I'm getting the following error:
>> reproduceResults
Warning: Directory already exists....
1
vote
0
answers
33
views
How can I search in the Matlab command window for things named with an underscore?
Matlab 2013a can't seem to search in the command window. Example:
I called two functions NLSCN and NLSCN_FAST. But when searching inside the command window, I was able to find the first, and not the ...
0
votes
0
answers
92
views
Having problems with installation of microsoft sdk on win 7 home premium
I wanted to install libsvm in MATLAB r2012 on my laptop ( win 7 home premium system ) . Now on the site , libsvm asks to run mex -setup , when I run this command in matlab , it fails and asks to ...
2
votes
2
answers
2k
views
Play a sound or chime through ssh
I've a nice question for you all. I'm performing some numerical analysis though SSH connection with my Linux machine. Since each numerical analysis lasts for 3-4 minutes during them I'm doing some ...
1
vote
3
answers
453
views
Open current file in external editor
For all it's shortcomings, I usually prefer to work inside the Matlab IDE, rather than in an external editor (due to ease of debugging, running and so on).
However sometimes I want to open the ...
0
votes
1
answer
171
views
Is my FPS limited by CPU or graphics card? Rotating 3D surfaces in Matlab
I have a modern laptop. When I use Matlab to visualize a 3D surface with a large number of vertices, I can only get a frame rate around 5 FPS when rotating it. With transparent surfaces, only 1 FPS.
...
0
votes
1
answer
656
views
Why doesn't 7-zip appear in the contextual menu in Windows Explorer for MATLAB's .mat files after installing MS Office?
I use MATLAB and after installing MS Office 7-zip doesn't appear any more in the contextual menu when trying to zip some .mat files: http://youtu.be/uJvSC4oCes8. How can I solve it?
1
vote
2
answers
953
views
To plot Matlab data in SageMath?
I have matlab matrix 100x100, which I want to draw in Sage Notebook.
I run
plot(open(DATA+'matlab.mat'))
I get
verbose 0 (2387: plot.py, generate_plot_points) WARNING: When plotting,
failed to ...
0
votes
1
answer
674
views
How to run program on Unix server and then close SSH? [duplicate]
I need to run a long operation in MATLAB on a remote Unix server. But I know I won't be able to stay logged in via SSH the whole time. I am root/admin if that helps.
How can I do this without losing ...
1
vote
1
answer
1k
views
Matlab launcher not found windows 8
I recently installed matlab in windows 8, in a different drive, other than the program files. After installation, its strange but am not able to find any launcher icon. Be it for uninstallation, or ...
1
vote
1
answer
922
views
Calling matlab from Unix command line
I have a Matlab script named "main_wrapper.m" in my /home/user/MATLAB directory. I want to call this script from the Unix command line. This script ends with a quit, so it's expected to quit by itself....
1
vote
1
answer
945
views
Matlab 2013a cannot find library powerlib
I have installed matlab 2013a in my computer. Everything works fine. But when I typed in powerlib in prompt it says cannot find library. Can anyone say how to install this library manually?
1
vote
2
answers
625
views
Don't sync files during Matlab execution in Dropbox (Linux)
I'm a strong Dropbox user. I usually log in (via SSH) to my Linux machine and use Matlab on a Dropbox folder which automatically syncs everything. However, at this moment, my code generates a lot of ...
0
votes
1
answer
2k
views
Allocating more CPU usage to MATLAB
I was wondering if there was a way to allocate more CPU usage to MATLAB. Currently, it says that 85% of my CPU is is idle. Is there some way to increase the threads MATLAB uses, or something along ...
0
votes
1
answer
2k
views
Linux MATLAB not able to access Windows files through smb drive
I am running Linux kernel 2.6.18-371. I have read
http://www.linuxdoc.org/HOWTO/SMB-HOWTO-8.html
and am able to access my windows files from command line using
/usr/bin/smbclient -L <serverName&...