Answered

Save Excel worksheet as csv Using com Object

Apparently 'xlCSV' just stands for '6', which Excel interprets as saving as CSV format. So if I do: SaveAs(eSheet1,'C:\myfi...

Save Excel worksheet as csv Using com Object

Apparently 'xlCSV' just stands for '6', which Excel interprets as saving as CSV format. So if I do: SaveAs(eSheet1,'C:\myfi...

4 months ago | 0

| accepted

Question

Save Excel worksheet as csv Using com Object

I'm trying to save an Excel worksheet as a CSV. Here's my code: % Connect Matlab to Excel e = actxGetRunningServer('...

4 months ago | 1 answer | 0

Submitted

Vasicek

Illustrates various methods to calculate bond prices under Vasicek model.

2 years ago | 4 downloads |

Question

How to edit compiler options with codegen?

I am compiling at matlab function into a mex using codegen. I'd like to edit the compiler flags (specifically the optimization o...

3 years ago | 0 answers | 0

Question

How do I change font size for Live Scripts?

The option to change the font size for the new "Live Scripts" is not in preferences where you can change all the other font size...

3 years ago | 2 answers | 7

Question

Factor symbolic expression involving exp()

I have a symbolic function exp(a+b), and would like to factor out A=exp(a) to produce exp(a+b) = A*exp(b), but I cannot figure o...

3 years ago | 1 answer | 0

Question

How to pass a matrix back using arrayfun?

I have a function that performs a lot of element wise operations and returns numerous output. An example is A = myfun(B) w...

3 years ago | 2 answers | 0

Question

MATLAB's R2015b new JIT experiences a severe degradation in speed in the following example, but the documentation says it was significantly improved. Why would the following simple code run so much slower?

When I run the following code: I = 1000; J = 1000; K = 1000; A = rand(I,K); B = rand(K,J); C = zero...

3 years ago | 1 answer | 2

Question

How to use nvblas on Windows?

I would like to use Nvidia's nvblas library to automatically offload level 3 BLAS routines to GPUs. However, I cannot figure out...

3 years ago | 0 answers | 0

Submitted

Update MATLAB's MKL

This basic text file will update MATLAB 2014b's MKL from version 11.1.1 to 11.3.1

3 years ago | 1 download |

Answered

Fast interp1 with 'spline'

griddedInterpolant is a lot faster than interp1, interp2, etc. routines.

Fast interp1 with 'spline'

griddedInterpolant is a lot faster than interp1, interp2, etc. routines.

3 years ago | 0

Question

How to interpolate partially gridded intput?

If you had a griddedInterpolant defined by two vectors of coordinates: x = [1:10]'; % x coordinates y = [10:...

4 years ago | 0 answers | 0

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

4 years ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

4 years ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

4 years ago

Question

How to use multiple GPUs asynchronously

I have two GPUs connected to my computer. I've explored on Mathworks, but can't find an easy way to use both GPUs in my code (th...

4 years ago | 1 answer | 0

Question

Minimize MDCS Data Transfer

I am using MDCS on a Linux cluster. I repeatedly for a parfor loop in the following spirit: while parfor i=1:n ...

4 years ago | 1 answer | 0

Question

MATLAB crashes when I try to plot.

I upgraded to 2014b, and now MATLAB crashes whenever I try to plot. Any advice? I can't even use the opengl command, as that cau...

4 years ago | 3 answers | 3

Question

Run mex on AWS cluster?

Is it possible to run a mex function on an AWS cluster via MDCS? I use Windows 7 on my PC. Is it correct that I would need to co...

4 years ago | 2 answers | 0

Question

Intel® Parallel Studio XE 2015 for Fortran

I would like to use Intel Visual Fortran Composer XE 2015 for Fortran along with Microsoft Visual Studio 2013 Professional to co...

4 years ago | 2 answers | 0

Submitted

3D Linear Interpolation for GPU

3D Linear Interpolation for GPU

4 years ago | 1 download |

Question

How to make my GPU interpolation code faster?

I am doing a lot of linear interpolation for a project. MATLAB's griddedInterpolant function for the CPU is fast, and their over...

4 years ago | 2 answers | 1

Submitted

parsave

This function allows you to save variables inside a parfor loop.

8 years ago | 2 downloads |