MATLAB is a high-level language and interactive programming environment for numerical computation and visualization developed by MathWorks.

learn more… | top users | synonyms (2)

1
vote
0answers
6 views

BLAS1-type operations on vectors

Does anybody know what is MATLAB using for performing BLAS1-type operations, e.g., dscal or daxpy? >> a=ones(1,1e6,'double'); >> b=ones(1,1e6,'double'); >> a=2*a; % dscal >> ...
0
votes
0answers
8 views

How to order and print string cells content by the match within the individual strings, Matlab?

I want to print the content of a cell line such that matching strings are one after another. The original line looks like: Example 1: 'E11E81' 'E21E81' 'E31E51' 'E31E61' 'E61E81' From ...
0
votes
1answer
7 views

Converting a Matlab fft2 diffraction example into Python

I trying to teach myself some FFT basics using python. At the moment I'm trying to reproduce a matlab FFT2 diffraction result using python and associated libraries. The example I'm trying to simulate ...
1
vote
1answer
15 views

NaN when using constrained minimization in Matlab?

I am trying to maximize a function of 10 variables. I do this by the following piece of code: b = [1 2 3 4 1 7 -1 -4 9 1].'; %// initial value of the decision variable goal = @(b) -sum(F(b)); ...
0
votes
0answers
8 views

Matlab: check cell status inside uitable

I wish to create an if statement that will check if a specific cells of a logical column inside a uitable are true or false. Therefore, how can I check the logical cell status (upon clicking a push ...
1
vote
1answer
10 views

Find entrance of matrix for each adjacent pair of numbers in vector and multiply

I have a (transition) function defined by a matrix say P=[0.75,0.25;0.25,0.75] and I have a vector say X=[1,2,1] then i would like to find P(1,2)*P(2,1). How is the easiest way to generalise this? I ...
0
votes
0answers
7 views

Power spectral density from fft

I use fft to estimate power spectral density but I undergo some difficulties to understand the underlying meaning of the procedure documented and currently applied. I use matlab and even after having ...
0
votes
0answers
7 views

Linux (GLNXA64) using mxCreateUninitNumericMatrix R2013b

In one mex file I created an output matrix with the command plhs[0] = mxCreateNumericMatrix((mwSize)destLen, 1, mxUINT8_CLASS, mxREAL); working fine. For speedup I wanted to use the dynamic memory ...
0
votes
1answer
15 views

Putting each n elements of a list in another list(matlab)

I have a list with 10 elements. I want to put each 2 elements in a list. How do I write the code? P = [1 2 3 4 5 6 7 8 9 10] I want the result as below: [[1 2] [3 4] [5 6] [7 8] [9 10]]
0
votes
0answers
12 views

Matlab custom spherical bessel function NaN at 0

I have a problem involved spherical Bessel functions of order 0. I wrote my own spherical Bessel function: function js = sphbesselj(nu,x) js = sqrt(pi ./(2* x)) .* besselj(nu + 0.5, x); end which ...
0
votes
2answers
25 views

How to Split Large Images in to parts Using MATLAB

I got a satellite image of size [17935 10968] pixels,I want to cut image equally and process my required algorithm on individual parts (eg: I need to cut above pixel range into 4 equal parts).. How ...
2
votes
5answers
73 views

Performance Tradeoff - When is MATLAB better/slower than C/C++

I am aware that C/C++ is a lower-level language and generates relatively optimized machine code when we compare with any other high-level language. But I guess there is pretty much more than that, ...
1
vote
2answers
20 views

MatLab equivalent of charAt() in java

I'm a beginner in MatLab, but I have had a lot of experience in java. I'm in the middle of looping through a string, but I need to be able to do a simple method like charAt() from java. I have looked ...
-2
votes
0answers
16 views

How to find the orientation textures in mammogram images?

I am currently working on identifying the orientation patterns in a mammogram image.I am implementing the works i have studied in a paper.In that paper, the author has used gabor filters to obtain the ...
0
votes
1answer
17 views

MATLAB ERROR IN PINV COMMAND

i am using a code for surface approximation of triangulation ,which is copied here [totalTris,three] = size(tri); [totalPoints,two] = size(registeredPts); % 1. Find the 3 equations for each ...

15 30 50 per page