Question

Cosine/Sine polynomial summation: Ordinary sum vs. Clenshaw summation

Hi all, I'm interested in knowing whether it is advantageous, specifically in matlab, to sum a cosine/sine polynomial using t...

7 years ago | 0 answers | 0

Question

TriScatteredInterp - Edge constraints for periodic data?

Hello, I try to perform an interpolation on 3D scattered data (data that is gathered on a 3D irregular mesh grid) to a regula...

8 years ago | 0 answers | 0

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...

8 years ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

8 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:...

8 years ago

Answered

Finding multiple values in matrix

Hi, 'Logical indexing' (<http://www.mathworks.nl/help/matlab/math/matrix-indexing.html#bq7egb6-1>) and 'sum() or mean()' shou...

Finding multiple values in matrix

Hi, 'Logical indexing' (<http://www.mathworks.nl/help/matlab/math/matrix-indexing.html#bq7egb6-1>) and 'sum() or mean()' shou...

8 years ago | 0

Answered

Out of memory at the end of simulation

Hi Peter, Do you run the 32-bit or 64-bit version of matlab? You can check the maximum allowed memory that you can adress on ...

Out of memory at the end of simulation

Hi Peter, Do you run the 32-bit or 64-bit version of matlab? You can check the maximum allowed memory that you can adress on ...

8 years ago | 0

Question

Scaled spherical bessel functions

Hi all, Does anyone know about routines that compute - preferably scaled - spherical bessel functions of the first and second...

8 years ago | 1 answer | 0

Question

Using parfor on a single quad-core?

Hi all, Does anyone have an idea whether its advantageous to use a parforloop on a single quadcore? I have some code that cal...

8 years ago | 0 answers | 0

Answered

Aborting callback execution in GUI - Drawnow error

Thanks for this example! This works indeed. I was thinking of using try catch because one iteration takes a long time (due to a...

Aborting callback execution in GUI - Drawnow error

Thanks for this example! This works indeed. I was thinking of using try catch because one iteration takes a long time (due to a...

8 years ago | 0

Question

Aborting callback execution in GUI - Drawnow error

Hi all, I'm working on a GUI, where I have one task that is very computationally intensive. Therefore I want to add a button ...

8 years ago | 2 answers | 0

Question

Solving a linear but ill-posed linear system

Hi, I encountered some numerical problem. I Have a simple exact linear system looking like this: [9.8117e-9 - 3.5...

8 years ago | 0 answers | 0

Answered

Optimizing computing double integrals by elementwise matrix operations

Hi, As far as I've tried, using integral2 does not solve to problem. As I suspected you can't input a matrix to the function....

Optimizing computing double integrals by elementwise matrix operations

Hi, As far as I've tried, using integral2 does not solve to problem. As I suspected you can't input a matrix to the function....

8 years ago | 0

Question

Optimizing computing double integrals by elementwise matrix operations

Hi all, I wrote my own function to calculate the double integral of a function, here referred to as 'fun(x,y)' between the bo...

8 years ago | 2 answers | 0