Answered

Hi, I have this function , can help me to vectorize it? thanks

I think this will work. % % % % % CREATE MASK FOR MATRIX MULTIPLICATION % % % % % % each column computes the summation...

Hi, I have this function , can help me to vectorize it? thanks

I think this will work. % % % % % CREATE MASK FOR MATRIX MULTIPLICATION % % % % % % each column computes the summation...

etwa 2 Jahre ago | 0

Question

Major speed reduction (~50x) when doing multiple matrix multiply operations in a row. Is this a (major) bug? Any ideas for a fix?

The code I am running more-or-less implements the following % PREALLOCATE. For the current tests I'm running: N=1200, M=2049...

etwa 2 Jahre ago | 1 answer | 1

Answered

Interpolating matrices of different sizes to the same size

<https://www.mathworks.com/help/matlab/ref/interp1.html interp1> will do what you want. I find that using it with the 'pchip' fl...

Interpolating matrices of different sizes to the same size

<https://www.mathworks.com/help/matlab/ref/interp1.html interp1> will do what you want. I find that using it with the 'pchip' fl...

mehr als 2 Jahre ago | 0

Answered

Is it possible to create a sparse binary (.bin) file on disk?

In case anyone comes across this question looking for the same thing...at some point in the last year I figured out a much bette...

Is it possible to create a sparse binary (.bin) file on disk?

In case anyone comes across this question looking for the same thing...at some point in the last year I figured out a much bette...

mehr als 2 Jahre ago | 1

| accepted

Question

How does MATLAB internally store sparse arrays / Calling MKL's sparse BLAS library for sparse matrix operations

SHORT VERSION <https://software.intel.com/en-us/mkl-developer-reference-fortran-sparse-matrix-storage-formats This is a list ...

mehr als 2 Jahre ago | 1 answer | 0

Answered

access to matlab history while running in nodesktop mode

This question is old and the original poster has probably long since mved on, but I figured in case anyone else comes across thi...

access to matlab history while running in nodesktop mode

This question is old and the original poster has probably long since mved on, but I figured in case anyone else comes across thi...

mehr als 2 Jahre ago | 0

Question

Bug with 'imread' - is there any way around this?

*Issue*: when you use windows to rotate an image, Matlab's 'imread' function does not acknowledge the image rotation and instead...

fast 3 Jahre ago | 1 answer | 1

Question

Question re: Matlab Coder, OpenMP, and compiling the code on a different machine than i was generated.

I have a loop I want to convert to Paralellized C code. My machne (Windows 10) has both Matlab Coder and the Parallel computingt...

fast 3 Jahre ago | 0 answers | 0

Answered

Distributed Computing with RamDisk

This may or may not be related and is more of a general "this might be worth looking into" suggestion than something specific, b...

Distributed Computing with RamDisk

This may or may not be related and is more of a general "this might be worth looking into" suggestion than something specific, b...

fast 3 Jahre ago | 1

Question

Can Matlab "Memory Map" actual memory addresses?

Id like to be able to memory map a set of actual memory addresses and access data from those addresses from multiple instances o...

fast 3 Jahre ago | 1 answer | 0

Answered

New laptop: better i7-7920hq or Xeon E3-1535M v6 for matlab?

I doubt there will be much of a difference. They both use the same generation of CPU Architecture (Kaby Lake) and have effective...

New laptop: better i7-7920hq or Xeon E3-1535M v6 for matlab?

I doubt there will be much of a difference. They both use the same generation of CPU Architecture (Kaby Lake) and have effective...

mehr als 3 Jahre ago | 0

Question

Is it possible to improve fread/fwrite performance and further speed up loading/writing of binary data?

I am working on a project that requires reading and writing large amounts of binary data from disk (10's to 100's of GB). I've m...

mehr als 3 Jahre ago | 1 answer | 0

Question

Please help me create a tall array from a large binary file and "fileDatastore" without running out of memory.

I have a large data file (the particular file I am working with now is ~60gb, though a few hundred gb's is typical) that I want ...

mehr als 3 Jahre ago | 2 answers | 0

Question

How can you set up very large Tall Arrays without Running into swap/page-file issues

I recently tried setting up a tall array, using the following (approximate) code: ds=fileDatastore(filename,'ReadFcn',@myda...

mehr als 3 Jahre ago | 2 answers | 0

Question

Is there a way to limit file and internet access in Matlab?

The use case I am thinking of is: If you are running code that you found online, it might be smart to run it in an "isolated...

mehr als 3 Jahre ago | 1 answer | 0

Question

Does matlab use the AVX instruction set? If so what version?

Advanced Vector Instructions, or AVX, allows multiple floating point and integer operaions to be performed simultaneously, and i...

mehr als 3 Jahre ago | 1 answer | 3

Question

Is it possible to create a sparse binary (.bin) file on disk?

I have a project where I would like to save my results to a binary (.bin) file that is stored on disk. Results need to be saved ...

mehr als 3 Jahre ago | 3 answers | 0

Answered

memmapfile system memory usage and transfer rate

Are you using memory mapped .mat files? If so, and this is just a guess, but it could be because .mat files use compression (wel...

memmapfile system memory usage and transfer rate

Are you using memory mapped .mat files? If so, and this is just a guess, but it could be because .mat files use compression (wel...

mehr als 3 Jahre ago | 0

Question

Possible memory leak with "matfile"? (R2016b)

I'm running a code where the results I am generating are saved to disk using matfile. It is running on matlab R2016b on a Linux ...

mehr als 3 Jahre ago | 0 answers | 0

Question

How to make a figure larger than fullscreen?

I am trying to generate figures larger than my current screen resolution, and matlab doesnt seem to let me. I have a 1080p scree...

mehr als 4 Jahre ago | 2 answers | 0

Question

Avoid "depth limit" for nested parenthesis and brackets

MATLAB has a limit of 32 nested parenthesis / brackets, and I have a function that requires more than this. Can this limit be av...

mehr als 4 Jahre ago | 0 answers | 3

Question

Numerical (finite difference) and analytic (symbolic toolbox) derivative do not agree.

I have a rather complicated function (6 free variables and 1 fixed variable) that I am trying to find the jacobian of. I know of...

mehr als 4 Jahre ago | 0 answers | 0

Question

Can you simulate multiple instances of matlab without actually opening matab multiple times?

Is this Possible? I know you can open multiple instances of matlab and run separate independent scripts on each, but is there an...

mehr als 4 Jahre ago | 1 answer | 0

Question

Location of mex executable

I am trying to find the location of the mex executable for use with another program (madagascar). In order to use madagascar, it...

mehr als 4 Jahre ago | 0 answers | 0

Question

How can i vectorize a matrix multiplication of higher dimension arrays?

I want to multiply a 6x6 matrix A and a 6x1 vector B at every grid point in a 3D earth model. Currently I am doing this: ...

mehr als 4 Jahre ago | 2 answers | 0

Question

How to load data from a location other than current directory

I would like to be able to load a .mat file from an arbitrary location that is not my currently selected folder. Example: dat...

mehr als 5 Jahre ago | 1 answer | 1

Question

Suppress error warnings in matlab (when using parfor loop)

I am trying to supress a specific error message in one on my codes (specifically a "no start point" warning in a curve fitting f...

mehr als 5 Jahre ago | 2 answers | 2

Answered

Pre-define some weights/phase using the fit function to fit a fourier series to data

I was able to figure this one out on my own. I created my own custom fitting function using the following code: w=1; Fou...

Pre-define some weights/phase using the fit function to fit a fourier series to data

I was able to figure this one out on my own. I created my own custom fitting function using the following code: w=1; Fou...

mehr als 5 Jahre ago | 0

| accepted

Question

Pre-define some weights/phase using the fit function to fit a fourier series to data

I am trying to decompose some data into a Fourier Series using the fit function, such that: f = fit(x,y,'fourier4') I woul...

mehr als 5 Jahre ago | 1 answer | 0