Skip to main content

Questions tagged [matlab]

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.

5 votes
1 answer
135 views

Accelerating computation of a "2D Variance" using C++ and Eigen in a MEX function

I have the following function in Matlab: ...
drakon101's user avatar
  • 407
1 vote
0 answers
60 views

Bi-Directional A* function in MATLAB

I am currently working on my thesis for 3D path planning involving external elements, and I have completed about 1/5 of the total trials that I am doing. For each 1/5 of the trials I am increasing the ...
LeftFix's user avatar
  • 11
5 votes
2 answers
227 views

Srivastava multivariate Fox H function in MATLAB

I was trying to rewrite the Python code in MATLAB. The result is consistent. But, the MATLAB code is so slow. Any help would be appreciated. Ref python code link The MATLAB code written by me is as ...
138 Aspen's user avatar
  • 411
8 votes
3 answers
2k views

Why/How is Matlab's circshift function so efficient?

I have the following function in Matlab: ...
drakon101's user avatar
  • 407
2 votes
1 answer
131 views

Optimizing Matlab Code for Efficient Computation of a Formula with Detrending

i am trying to practice on matlab with the code below: I randomly generated x and y variable to implement the following formula in matlab : $${\sum_{i=1}^{n-ln} \bar{Y}_{i}\left(\bar{X}_{i} - \frac{...
V013's user avatar
  • 51
2 votes
1 answer
123 views

considering only the instants of trading with the relative price avoiding stale returns

in my MATLAB code I describe a model for price formation with stale returns in this framework there are 2 type of trader: informed traders who always trade in the "right direction" and noise ...
V013's user avatar
  • 51
6 votes
1 answer
264 views

C++ Eigen/Mex function to perform two pagewise convolutions on a 3D matrix with a simple kernel

I am trying to accelerate an algorithm where I am computing a 2D variance of many complex matrices stored as pages of a 3D array in Matlab. My implementation uses a Mex function with the C++ Matlab ...
drakon101's user avatar
  • 407
3 votes
1 answer
68 views

Simple validation and mathematical function in MATLAB

I've made a script (Triangle.m) to calculate the area of a triangle in MATLAB: ...
Freddy Mcloughlan's user avatar
0 votes
1 answer
91 views

Performance Optimization in Matlab

I am working with a rather large data set (upwards of 1 million entries across 3 variables), and need to isolate a subset of that data with specific values in one of the 3 data fields. The data are ...
Andrew's user avatar
  • 1
4 votes
0 answers
63 views

Use XYZ data to create cross sectional profiles across beach terrain, using OS Grid

This might be a slightly long question, but I've recently been doing a bit of R&D on the data processing workflows within the company that I work at and it would be great to see if there are any ...
Adam Johns's user avatar
3 votes
1 answer
132 views

String / Char Vector Concatenation Performance Comparison in Matlab

Considering the suggestion of using modern string arrays instead of char vectors proposed by Cris Luengo, I am trying to make a code snippet for performance comparison of these two cases. The ...
JimmyHu's user avatar
  • 7,068
2 votes
2 answers
232 views

No Reference Image Quality Assessment for Video in Matlab

I am trying to perform the No-Reference Image Quality Assessment (NR-IQA) calculation on video. Several NR-IQA methods including Naturalness Image Quality Evaluator (NIQE), Perception based Image ...
JimmyHu's user avatar
  • 7,068
2 votes
1 answer
235 views

Fractional indexing and interpolation to reconstruct an image

I have a c++ project written as a Matlab Mex program that is constructing an image composed of IxJ pixels. Each pixel value is calculated by finding the contributions to that pixel from all the ...
drakon101's user avatar
  • 407
2 votes
1 answer
237 views

Cholesky decomposition

This code is Cholesky decomposition in numerical linear algebra. ...
Arvin jmf's user avatar
2 votes
1 answer
77 views

Recursion to generate fractal

I used recursion to generate fractal and got the desired result but I think my code can be better I started using MATLAB a few days ago and since than trying and learning new things. Now this code ...
Abdul Azeem's user avatar

15 30 50 per page
1
2 3 4 5
12