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
1
vote
0
answers
178
views
Straightening a curved image in MATLAB
I registered a video of the experiment that I am carrying on - It is an image of a rotating cylinder. However, when I save the image, the cylinder appears a bit skewed as you can see in the image file ...
1
vote
0
answers
489
views
Truncate an array in a specified dimension in Matlab
In Matlab, does a pad command exist, which also pads in the negative dimension
(therefore removing indices in a specified dimension)?
[Edit: I knew something did this - fft does this for the input, ...
1
vote
0
answers
40
views
Creating an specific type of meta-algorithm
I need to create a program able to create an algorithm to Matlab. For instance, in this program, I want to give it an integer n>0 and make it create a Matlab algorithm with the following code:
u1 = ...
1
vote
1
answer
1k
views
Prevent Matlab from creating java.log.* files in the home directory?
I've recently started using matlab. If started with the jvm, log files will be created in the home directory (a different one every time it starts up).
Opening log file: /home/max/java.log.4363
...
0
votes
1
answer
595
views
how to multiply a matrix by its transposed?
I want to multiply a matrix by its transposed in order to knwo if it verify QtQ=I.
Yet when I compute it on matlab I get something strange using a concept I'm not aware of: conj(x).
Therefore, how ...
3
votes
3
answers
4k
views
Cannot install anything on Windows 10: "Error 997.Overlapped I/O operation is in progress"
I'm trying to install Matlab, but the culprit is probably Visual C++ Redistributable (which Matlab is installing along the way).
When I run the setup, every time it fails with:
Error 997....
1
vote
1
answer
4k
views
Is MATLAB performance increased if it is on SSD
I have a 256gb SSD which has my OS (windows 8) and Office on it. I also have a 4TB USB3.0 external hard drive. I do a fair bit of image and signal analysis using MATLAB. Will there be performance ...
1
vote
0
answers
72
views
Plot abscissa points
I have been instructed to plot abscissa points. This is new to me, even the concept is alien to me. I have a set of data, where S is the x-axis and res the y-axis. The goal is to plot a figure where ...
0
votes
1
answer
1k
views
Serial Port not found by MATLAB to communicate with Arduino
I'm just trying to know how to established serial communication between Arduino and MATLAB. From this tutorial I copied the code, but as for my PC use "Windows" I had to change my serial port name. ...
0
votes
1
answer
241
views
How to constuct Taylor expansion of arbitrary function in Matlab?
I am reading a book titled "Homotopy Analysis Method in Nonlinear Differential Equation" by Shijun Liao. In chapter 13 Application in Finance: American Put Option, there is appendix about mathematica ...
1
vote
1
answer
1k
views
How to set MATLAB R2015a as the default program for opening mfiles?
I have Mathematica 10.2 and MATLAB R2015a installed on my computer and unfortunately MATLAB m-files are recognized as Mathematica notebooks by the window.
When I right-click on an m-file and choose ...
0
votes
1
answer
633
views
PSAT install on Matlab for MAC
Hi anyone knows how to install PSAT on Matlab on Mac computers?
I have installed and running already Matlab 2015b.
A guide would be great.
Thanks in advance
My steps was:
to put the entire psat ...
3
votes
1
answer
675
views
Editing a "Fixed Width" Text File
I had originally drafted this question in Engineering SE, but on second thought it makes a lot more sense here. I don't know if SuperUser SE just doesn't have MathJax formatting or if I don't know how ...
1
vote
0
answers
191
views
How can I create an alias for `dbstep` inside the matlab debugger?
I'm using the terminal debugger of MATLAB.
Among the various commands, one frequently has to type dbstep or dbstep in to advance line per line.
Using the GUI debugger is not an option for me.
I'm ...
0
votes
1
answer
202
views
Pymatbridge win32 error (trying to install matlab_kernel in Python)
My goal is to install matlab_kernel on my anaconda so that I can run Jupyter with matlab kernel on my smaller laptop. However, there is a problem, when I run pip install matlab_kernel I get an error ...
0
votes
0
answers
129
views
How to increase number of available SMB requests in Windows 7?
I use an program (Matlab) which is giving errors about exhausting the number of change notification handles (CNH), known in Windows as server message blocks (SMB). Matlab's tech support said that ...
3
votes
1
answer
3k
views
How do I force Excel to open documents with add-ins when another application has opened Excel process?
When MATLAB R2015b interacts with Excel, it opens one Excel process and then keeps the process open until MATLAB is closed. When this happens, if I try to open a spreadsheet through File Explorer, it ...
0
votes
0
answers
30
views
Is running 2 instances of MATLAB safe?
Can I run another MATLAB while waiting for a long loop to finish?
I tried that before and it worked, but recently I tried again and found my PC (64-bit Windows 8.1 and MATLAB R2015b) frozen, with a ...
0
votes
0
answers
1k
views
Further actions message after installing Matlab R2015a, Are they all needed?
At the final step of installing Matlab R2015a on my Win7x64 machine, I've come up with the following message.
What is this?
Should all of these steps be done?
Your installation may require ...
0
votes
3
answers
2k
views
How to add .bash_profile in Windows to run Matlab-based IPython notebooks
I'm looking at this tutorial to run matlab code in IPython notebook:
http://anneurai.net/2015/11/12/matlab-based-ipython-notebooks/.
but I am stuck at step3:
I edited the .bash_profile file located ...
1
vote
1
answer
533
views
Read UDP packages created by another computer
Laptop 1 Laptop2
192.168.1.103 192.168.1.120
Ubuntu Windows 8
? <-- Matlab: UDP
I use MATLAB software on my windows and I ask it to generate real ...
1
vote
1
answer
401
views
Matlab Graphical Display Issues
I'm working on Ubuntu 15.04 and I'm accessing Matlab throught ssh (-X) on distant machine which run on fedora 20.
Few days ago I had to change my computer for a new one with a CPU/iGPU i5-6200U(...
0
votes
1
answer
3k
views
Restore MATLAB preferences on a computer that doesn't store them, e.g. work computers with limited permissions
I have two questions (and answers to them). I could make two separate questions and answers of them, but I won't, because the second question is the same as the first, but with a twist. The two parts ...
1
vote
1
answer
208
views
Is it possible to save a dynamic path to Matlab search path or pathdef.m?
I want to add a path like
getenv('userprofile'),'\Dropbox\Matlab\example1'
to the Matlab pathdef.m file. The system variable %userprofile% will change from computer to computer.
Adding the phrase ...
1
vote
1
answer
1k
views
Is there a GUI way to copy a folder's path in MATLAB?
Is there a way to easily copy the name of a folder's full path within MATLAB, from the MATLAB folder window, into a MATLAB script or command window?
Dragging with mouse would be very nice, but I ...
0
votes
2
answers
57
views
Function argument in dir function inMATLAB
Is there a way to use dir command in a function in MATLAB. I want to take argument in fiction and that argument to be part of dir command for e.g
function a = abc(num)
aaa=dir('abc_num_*.csv);
...
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, ...
1
vote
0
answers
798
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
133
views
matlab-emacs doesn't open a file for edit (2014b)
I downloaded and installed the matlab-emacs project from http://matlab-emacs.sourceforge.net/ using the dl_emacs_support.m script and edited my .emacs file according to the instructions.
When I run
...
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 ...
3
votes
2
answers
2k
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 ...
2
votes
1
answer
941
views
MS Excel 2013 function TODAY() not updating unless source file is open
I use the TODAY() function in an excel worksheet which is accessed using MATLAB (i.e. I don't read the worksheet directly). Now I have to open the excel file just to update the TODAY() function, and ...
0
votes
0
answers
99
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
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
316
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 ...
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 ...
5
votes
2
answers
2k
views
How to increase the font size in the Matlab help browser permanently?
Maybe I'm getting old, but the text in Matlab's built-in help browser is too small for me to read comfortably. It is possible to increase the font size using Ctrl-+, but every time a new help page is ...
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 ...
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
1
answer
556
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 ...
1
vote
1
answer
369
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
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 ...
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:
...
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
0
answers
651
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 ...
0
votes
1
answer
156
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?