Suppose I have the following code: Then this would open an earlier specified file, skip the first 10 bytes and write 1 into the following two. But what happens to the first 10 bytes, assuming the opened file did not exist before? If I were to access one, what would I end up getting and why? Answer From the PO…
Tag: matlab
Saliency Model – BMS (having error setting up)
I have downloaded a saliency model called BMS “Exploiting Surroundedness for Saliency Detection: A Boolean Map Approach” from here – available online. The code has been implemented and tested on Windows. I am trying to set up on my machine (Linux Mint), by reading the instructions given insi…
Apache executes MATLAB binary on CentOS 7 with SELinux
I am trying to trigger the run of a pre compiled MATLAB program on a CentOS 7 server form within an Apache context. The system allowes the user to upload some files. Then some sanity checks are performed. Then the MATLAB program is called and it performes some MATLAB magic. I installed the MATLAB environment …
Getting the path to a users documents folder on Linux and MacOSX
I’m currently developing a GUI using Matlab and I need to get the directory of the standard document folder of the user. Under windows I use this: and it works perfectly. Now I planned on doing the same for Linux and Mac with the system(command), but I have no idea what the actual command must look like…
COM-based software control between two computers, and from Linux to Windows
I am not really a specialist in this topic, so please excuse possible hiccups in formulating the question. We are running two programs under Windows, Zemax and Matlab, where Matlab controls Zemax via .NET COM interface. (The fact that it’s Zemax is not critical for this question, it’s just to be s…
Calling Matlab on a linux based Cluster: matlab sessions stops before m file is completly executed
i’m running a bash script that submits some pbs Jobs on a Linux based Cluster multiple times. each Submission calls Matlab, reads some data, performs calculations, and writes the results back to my Directory. This process works fine without one exception. For some calculations the m-file starts, loads e…
Can’t solve this error when monitoring a output using sh
I’m working on an optimization and for that I need to link a matlab code into a linux program and keep monitoring the outputs. I’d done this link using this sh below, however it wasn’t working well, since I couldn’t keep track of more than one ‘expression’. I’ve asked…
Matlab text on Linux with Intel graphics
On my laptop with an Intel HD 5500 graphics card, if I run Matlab (locally or on a remote machine) some text in menus and inside figures is unreadable. This is what the Edit menu of an empty figure looks like: The lines that are unreadable seem randomly chosen but they’re not: in every new figure, it…
Run matlab compiled dll library from a C program on Linux/OSX
So I have a .dll file that was built via Matlab on Windows and I would like to run it on a C/C++ program I’ve created. Is that possible at all? I know I can run it on windows like this: But windows.h is not available on Linux/OSX, is there any other way? Alternatively is there any other format I