Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [matlab]

MATLAB is a high-level language and interactive programming environment for numerical computation and visualization developed by MathWorks. MATLAB can be used when performing tasks such as signal processing and communications, image and video processing, computational finance, and computational biology. It is the foundation for a number of other tools, including Simulink and various toolboxes that extend the core capabilities.

0
votes
1answer
18 views

Way to pass a command to Matlab from tcsh?

I'm looking to call a Matlab script in my tcsh script and pass it a programmatically-generated function call (like functionName(varName)). Is there a way to call Matlab (or any other scripting ...
4
votes
7answers
258 views

Alternative to wait -n (because server has old version of bash)

I would like to solve the following issue about submitting a job that has been parallelised to a specific node. Let me start with explaining the structure of my problem I have two very simple Matlab ...
0
votes
2answers
87 views

Parallelise a for loop in a bash file

I would like to parallelise the for loop in the bash script below. I have two Matlab scripts 1) main.m clear rng default P=2; grid=randn(2,3); jobs=1; 2) f.m sgetasknum_grid=grid(jobs*(...
1
vote
1answer
66 views

Can't start Matlab on Ubuntu 16.04

I've downloaded and installed Matlab 2018b in a folder named Matlab in /home/user/Matlab the file I want to run is /home/user/Matlab/bin/matlab where matlab is a shell script application. First I ...
4
votes
3answers
2k views

Set LD_LIBRARY_PATH correctly

I am using Docker with image of Ubuntu 16.04. I am using this docker to run: Import C++ classes in python with the help of boost.python Import matlab's python package in python with the help Matlab ...
0
votes
1answer
467 views

Cannot mount Matlab 2018a

I am using Ubuntu 18.04, and trying to moutn Matlab ISO using the following command: sudo mount R2018a_glnxa64_dvd1.iso /mnt/cdrom -o loop But terminal is responding back as: mount: /mnt/cdrom: ...
-2
votes
1answer
331 views

Undefined symbol in libharfbuzz

I am using MATLAB on Arch Linux and I am running into problems. When I try and open the help (doc) I get the following error /opt/tmw/matlab/sys/jxbrowser/glnxa64/xulrunner/xulrunner-linux-64/...
0
votes
1answer
352 views

UNIX Epoch Time verification in MATLAB

I am testing MATLAB to ensure that I am correctly applying its functionality. An example from the a data source includes: The current time in UNIX epoch seconds is: 1160967053 The current time in ...
0
votes
0answers
65 views

Matlab not showing up

Matlab blocks at start-up and shows nothing in one machine (toto) while it runs fine in another machine (titi), which by the way, have slightly the same configuration. Both machines run Debian: ...
0
votes
1answer
507 views

running matlab script inside bash

I have a matlab script xxx.m that runs fine within matlab's GUI command window, creating a couple of subdirectories and outputting some data into those subdirectories. When i load Matlab at the bash ...
0
votes
0answers
41 views

Starting another program that shares output terminal with current program?

I have a matlab script that I run from the terminal, that script creates an instance of another program using: system('cd <path> && mpiexec -n 1 ./<program2> &') Problem is I ...
1
vote
0answers
175 views

How to view MATLAB livescripts?

When I try to open a matlab livescript inside the default DE, I get an error that says: Viewing MATLAB Live Script files is not currently supported by this operating system configuration. For more ...
3
votes
1answer
73 views

Writing a bash function to autoload matlab scripts

I want to write a convenience function which loads all the matlab scripts it's passed on the command line. The syntax would look like fmatlab myscript1.m myscript2.m ... mystriptN.m I can easily do ...
2
votes
0answers
39 views

License manager problem after changing rc.local?

I am very new to Linux - so please don't be irritated by the potential weirdness of that question. I am running GNOME 3 on a USB Stick where the host computer is running on Windows. Since I did ...
1
vote
2answers
734 views

opening matlab on ubuntu

I have successfully installed Matlab 2011 on my Ubuntu Mate 17.04 machine. The installation directory is /home/matlab For instance, my installation directory looks like (see image below) Now I read ...
1
vote
1answer
576 views

How to get return value from MATLAB function

I am calling a MATLAB function with a bash script matlab -nodesktop -nosplash -nodisplay -r "matlabfunction input1 input2; quit" I am trying to get a one digit return value from the matlab function, ...
2
votes
0answers
139 views

Access a running MATLAB instance from command line

I am running a few instances of MATLAB on a server via an SSH tunnel and a VNC server. I started the instances using the desktop (via VNC) but something went wrong and now the desktop is completely ...
1
vote
1answer
120 views

How to get a animated pop-up window in MATLAB to display my functions

I apologize if this is the wrong place to ask this type of question. I normally use OpenSUSE x64 systems, but because of issues getting any MATLAB pop-up to work, I switched to Fedora to match ...
2
votes
2answers
255 views

How to create keyboard shortcut for matlab with xfce

I've tried by using the keyboard applications and shortcuts submenu by adding a command "matlab" and associating my desired key combination. This is based on the fact that if I run $ matlab from ...
0
votes
1answer
271 views

How to get gcc-4.7 to /usr/bin/gcc-4.7 as second gcc in Debian Jessie?

I would like to keep my gcc 4.9 but let Matlab use gcc 4.7 because Stable Debian does not support 4.7, as observed in the thread Debian Jessie: Why gcc-4.7 conflicts with gcc-4.8? I do the following ...
1
vote
1answer
28 views

How to prevent Matlab filebrowser to do any changes in filesystem?

I get significant amount of artifacts in Matlab 2016a and 2016b, which are damaging my filesystem, etc random cursor movements moving my Documents folder to Pictures. I do not want that such actions ...
0
votes
2answers
78 views

How to strip reliably most comments in Matlab code?

I want to remove comments reliably without removing newlines (\n) and any piece of essential Matlab code by Unix commands, not by extensions/gadgets/... existing for the target etc here. Test cases ...
-1
votes
3answers
617 views

Why Matlab 2016a cannot be killed by Terminal's CTRL-C in Debian 8.5?

Fig. 1 Pressing two times CTRL+C in Terminal does not act but puts two line breaks in Matlab's command line I think there is something wrong with the keybindings. I have tried both Windows and Emacs ...
1
vote
1answer
135 views

How to Do This LookBehind in Regex?

Data: 1.000000000000002, 0.999999999999999 Expected output: 1.0..02, 0.9..9 where you can replace .. with any other shorthand for cut Pseudocode in Matlab float_thing=1.0000000000000002; % 0....
1
vote
2answers
133 views

Is this “Hardware Error” when using Matlab in Fedora really a hardware problem or could it be software?

I often found the following problem when I using Matlab 2012 in Fedora 20, during or after fft calculation or plot figures. The following is the error massage: [ 635.157606] mce: [Hardware Error]: ...
0
votes
1answer
515 views

Why Unable to Install WFDB?

I am installing WFDB Toolbox for Matlab 2016a in Ubuntu Linux 14.04 64bit, which instructions are here. I do [old_path]=which('rdsamp');if(~isempty(old_path)) rmpath(old_path(1:end-8)); end ...
0
votes
1answer
495 views

Why can't my Unix terminal not find my matlab binaries and making Unix find them again?

This happens to be a new problem because I was able to run MATLAB on the shell until today. I didn't install or update it or anything of that sort, but now I am unable run matlab in the sell. It tells ...
0
votes
1answer
405 views

How to run a 2 script with one in background followed by other

I have a script which links to a process in background. Now i want to run the 2nd script followed by 1st one ( which starts the background process) together. Also is it possible to add an exit ...
1
vote
0answers
41 views

How to see the variables current value of a running matlab process on tmux?

I have a matlab process in tmux which is running for days. Actually I need to see the values of calculated variables till now. I thought that, it is good(if possible) to duplicate the process and then ...
1
vote
1answer
366 views

Is AMD GPU FirePro support enough for Linux's Matlab and CUDA?

I need GPU with CUDA support and open-source community support for FFT computation with Matlab R2015b. I think I need to reject nVidia GPUs because of bad open-source support, here Torvalds about ...
1
vote
1answer
1k views

Having a problem launching Matlab 2010 in Ubuntu related to libXp.so.6

I did not have any problem opening Matlab2010 in Ubuntu by typing matlab2010, but now if I type the same thing, I get: error while loading shared libraries: libXp.so.6: cannot open shared object ...
2
votes
0answers
614 views

How to change 'Input Buffer Size' setting in Minicom

I'm using minicom to interface with a bluetooth device. I have been able to successfully do this in matlab, however I have to first change the 'InputBufferSize' parameter in matlab from 512 to 24 ...
0
votes
1answer
25 views

Are programs able to access read-only files?

For example, I am accessing a computer cluster through SSH, and I am running a Matlab program to take in data and then write to a text file. The problem is, the data is read only. So am I still able ...
1
vote
4answers
4k views

How to call Matlab functions in bash with user input being operands

I want to run matlab using bash which requires the a command like matlab -nodesktop -nosplash -r "functionmat(var1,var2)" to be called. For example, I can run matlab -nodesktop -nosplash -r "...
-1
votes
1answer
462 views

Matlab crashes after screen session disconnect and reconnect

Please forgive the cross-post from matlab answers. This received no response over there. I'll try to go into a bit more detail with this post. http://www.mathworks.com/matlabcentral/answers/242954-m-...
0
votes
1answer
931 views

Get an error when trying to install Matlab 2014a on Debian

I'm trying to install Matlab 2014a on Debian Testing. When I run the install script with sudo ./install -javadir /usr/lib/jvm/java-7-openjdk-amd64/jre/ I get this output Preparing installation ...
3
votes
2answers
4k views

Hardware OpenGL rendering in MATLAB

I am unable to get hardware based OpenGL rendering to work in MATLAB R2015a or R2014b. Prior to R2014b, and the rewrite of the MATLAB graphics stack, everything worked fine. From MATLAB >> ...
2
votes
0answers
254 views

Focus stealing under Xfce in Matlab (Java programs?)

I'm using Matlab R2015a under Debian Linux. I recently switched to Xfce 4.12 as my desktop environment, and since then I am experiencing weird focus behavior: When I try to interact with the ...
2
votes
1answer
296 views

I cannot use the keyboard shortcut <ctrl>+<alt>+<enter> in matlab running in emacs running in screen

In my usual setup, I use use matlab-emacs to run Matlab through the emacs gui. I run matlab and emacs on a linux server, and use ssh and X forwarding so this all shows up on my local ubuntu laptop. ...
0
votes
2answers
889 views

Compile mex files for spm12 in Matlab r2012a student version

in 2012 I bought a student version of Matlab (r2012a, 32bit) which I have now installed on my Ubuntu 14.04.2 LTS. This far, everything works. However, I would like to install SPM12 (a software used ...
2
votes
1answer
402 views

Windowless xterm? (Faking a terminal for a process)

I'm fighting with a rather odd problem with Matlab. The startup script is located in /opt/matlab_2013b/bin and is called matlab. When I run it in terminal, it works fine. But I want to make a ...
1
vote
2answers
2k views

Matlab installed fine but won't start [closed]

I've installed the student version of Matlab 2013b, 64bit, in /opt/matlab2013b. The installation wizard worked perfectly, I have the license and all, but when I navigate to /opt/matlab2013b/bin and ...
0
votes
2answers
440 views

How to install ISO file? [closed]

I've MATLAB R2014a UNIX ISO file , but i'm using windows 8.1 , how can i install this version of MATLAB into windows instead of UNIX ?
2
votes
1answer
126 views

CentOS VM 3972 Segmentation Fault

I'm trying to install MATLAB 2012 on CentOS 5.8 running on a VM cluster. I was able to mount the .iso file, but when I run ./install, it was unable to write to /tmp giving the error, "no space on ...
3
votes
1answer
4k views

Creating/Removing a symbolic link when a USB device connects/disconnects

I'm working with an Arduino board and Matlab under Linux. Matlab, unfortunately, doesn't recognize the Arduino board when is connected unless I create a symbolic link to the Arduino board in /dev by: ...
3
votes
3answers
245 views

Repackaging proprietary software

I was thinking about trying to package Matlab (a proprietary piece of software) for Arch Linux by creating a PKGBUILD to handle installation, dependencies, and conflicts. With the standard Matlab ...
5
votes
6answers
1k views

shell script to control the number of processes of an user

I have to launch a total number, NUMTOT of a program (could be any, C, Mathematica, ns-2... mathematical environments). The problem is that the computer where these processes run only admits a ...
3
votes
1answer
2k views

Connection error for linux webcam driver for matlab

This might seem like a duplicate post, well yes it is, but I have a different problem compared with the duplicate version of it. My value for imaqhwinfo gives me: InstalledAdaptors: {'dcam' '...
1
vote
1answer
1k views

slow Matlab on Ubuntu LTS and ZERO Swap

I was using Matlab2012 under Win7 and my algorithm was consuming a huge amount of memory though it was fast (80 seconds for one iteration). Now I am using Matlab2013 under Ubuntu 12.04 LTS and though ...
0
votes
0answers
1k views

Packaging MATLAB

I have decided to try and package MATLAB for Arch Linux. The MATLAB program consists of a core program and a number of add on toolboxes. I would like to create a different independent package for each ...