matlab Questions
5
My trackpad is not comfortable to use so I aim to do coding with my keyboard only.
My "kill line" hotkey do not work no matter what key I set it to. I did unassign all conflicts.
Simple question...
1
Consider the minimally reproducible example:
f = @(x) x
f(end)
Note, the MATLAB syntax highlighter doesn't actually highlight end in blue, showing that it is not parsing as a keyword, even though ...
Legal asked 10/9, 2024 at 8:24
2
Solved
I encounter several errors when calling my MATLAB function from C++. The main idea is: firstly compile a MATLAB function and generate DLL file, and then include .h and .lib files in C++. Finally, w...
Cherianne asked 15/6, 2013 at 5:51
1
I happened to stumble upon an answer posted by user brentlance regarding the linking of Matlab to Python, and was wondering if I could ask the community for some advice regarding the initial setup ...
2
Solved
Following this question which asks (and answers) how to read .mat files that were created in Matlab using Scipy, I want to know how to access the fields in the imported structs.
I have a file in M...
4
Solved
I am trying to calculate the logarithm of a modified Bessel function of second type in MATLAB, i.e. something like that:
log(besselk(nu, Z))
where e.g.
nu = 750;
Z = 1;
I have a problem beca...
Plump asked 9/9, 2015 at 16:21
3
12
Solved
I am creating some figures in MATLAB and automatically save them to files. The problem that by definition the images are small. A good way to solve my problem by hand is to create an image (figure)...
Bedevil asked 8/3, 2013 at 3:59
7
Solved
Consider a set of points arranged on a grid of size N-by-M.
I am trying to build the adjacency matrix such that
neighboring points are connected.
For example, in a 3x3 grid with a graph:
1-2-3
| ...
Taker asked 18/7, 2010 at 22:36
7
I am working on Matlab R2011a student edition. I want to run some demos provided in Matlab which require some toolbox like Embedded Coder and EDA Simulator Link.
I want to check if those toolboxe...
Subdelirium asked 3/8, 2011 at 11:53
3
Solved
When I add grid lines to a log plot, it seems to automatically add every possible grid line, and I would like to only include the major lines. I tried turning the minor ticks off, but it has no eff...
Biogeography asked 28/6, 2024 at 2:52
3
Solved
I'm running into trouble reading a hdf5 matlab 7.3 file with Python.
I'm using h5py 2.0.1.
I can read all the matrices that are stored in the file, but I can not read a list of strings.
h5py shows...
5
Solved
I want to call my Python module from the Matlab. I received the error:
Error using numpy_ops>init thinc.backends.numpy_ops
Python Error:
ValueError: numpy.dtype size changed, may indicate bina...
5
Solved
Is there a keyword in Matlab that is roughly equivalent to None in python?
I am trying to use it to mark an optional argument to a function. I am translating the following Python code
def f(x,y=N...
3
Solved
When I try to calculate the 75th percentile in MATLAB, I get a different value than I do in NumPy.
MATLAB:
>> x = [ 11.308 ; 7.2896; 7.548 ; 11.325 ; 5.7822; 9.6343;
7.7117; 7.3341; 10.39...
Coliseum asked 15/7, 2014 at 17:56
3
Solved
I need to find the regional maxima of an image to obtain foreground markers for watershed segmentation. I see in matlab use the function imregionalmax(). As I don't have the matlab software, I use ...
Hellion asked 22/12, 2014 at 7:13
7
Solved
I would like to plot multiple lines with MATLAB and do it so, that markers would be different in every line. I know that with colours this would be achieved with ColorSet = hsv(12);. Is there some ...
Gynecoid asked 6/3, 2011 at 12:39
13
Solved
You can apply a function to every item in a vector by saying, for example, v + 1, or you can use the function arrayfun. How can I do it for every row/column of a matrix without using a for loop?
Volscian asked 21/2, 2010 at 19:58
5
Solved
I have a 70x70 numpy ndarray, which is mainly diagonal. The only off-diagonal values are the below the diagonal. I would like to make the matrix symmetric.
As a newcomer from Matlab world, I can't...
3
Solved
I am looking for finding or rather building common eigenvectors matrix X between 2 matrices A and B such as :
AX=aX with "a" the diagonal matrix corresponding to the eigenvalues
BX=bX wi...
Selfsustaining asked 3/1, 2021 at 9:49
2
Solved
I have a large project coded in MATLAB, with 15-18 scripts. It is becoming very challenging to understand the whole code. I was thinking that if I can put some scripts in another folder, it will be...
6
Solved
I am trying to run Matlab code using Python. I tried to follow the instructions given on this Mathworks page.
When trying to import Matlab though Python, it was installed using pip install matlab...
7
What are some possible ways to implement a linked list in MATLAB?
Note: I am asking this question for pedagogical value, not practical value. I realize that if you're actually rolling your own lin...
Ramah asked 12/9, 2009 at 0:31
9
Solved
I am not able to figure out how to run MATLAB (.m) code in VSCode.
I have installed the MATLAB Extension for VSCode and added the path for the mlint file for MATLAB as stated in the extension.
&quo...
Crossroad asked 9/10, 2020 at 11:35
8
I see there is an array_split and split methods but these are not very handy when you have to split an array of length which is not integer multiple of the chunk size. Moreover, these method’s inpu...
1 Next >
© 2022 - 2025 — McMap. All rights reserved.