回答済み

how to integrate a function from 0 to inf?

You can, but it would require... an infinite time :) The answer mostly depends on your function. You could evaluate the funct...

how to integrate a function from 0 to inf?

You can, but it would require... an infinite time :) The answer mostly depends on your function. You could evaluate the funct...

7年弱 前 | 0

回答済み

Random number not repeatable with the same seed

The number of threads shouldn't affect your script, because matlab only use it internally. If you don't use a parfor or some too...

Random number not repeatable with the same seed

The number of threads shouldn't affect your script, because matlab only use it internally. If you don't use a parfor or some too...

7年弱 前 | 0

回答済み

Problem related to automatic isolation/separation/ segmentation of each tooth from dental x-ray image

It's not an easy task. Since there is no specific edge, brightness or anything that defines the shape of each tooth, I reckon th...

Problem related to automatic isolation/separation/ segmentation of each tooth from dental x-ray image

It's not an easy task. Since there is no specific edge, brightness or anything that defines the shape of each tooth, I reckon th...

7年弱 前 | 0

| 採用済み

回答済み

How to implement a non uniform blur?

I don't know if this would be the best solution, but what you need is basically a filter that depends on the spatial position. I...

How to implement a non uniform blur?

I don't know if this would be the best solution, but what you need is basically a filter that depends on the spatial position. I...

7年弱 前 | 0

回答済み

Quickly load and add big matrices

The problem with loading big data is not Matlab, but the speed of you hard disk. The only way to load data in a quicker way is t...

Quickly load and add big matrices

The problem with loading big data is not Matlab, but the speed of you hard disk. The only way to load data in a quicker way is t...

7年弱 前 | 0

回答済み

Convert binary ROI to polygon

You can use bwboundaries to get the boundaries of a binary image. If you want to sort them, you can evaluate the centre of yo...

Convert binary ROI to polygon

You can use bwboundaries to get the boundaries of a binary image. If you want to sort them, you can evaluate the centre of yo...

7年弱 前 | 0

回答済み

Double sum of a series

Why do you want to implement you own convolution when Matlab already has a very fast function for that? For loops are slow. ...

Double sum of a series

Why do you want to implement you own convolution when Matlab already has a very fast function for that? For loops are slow. ...

7年弱 前 | 0

解決済み

Pizza!

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

7年弱 前

解決済み

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

7年弱 前

質問

Understanding MATLAB file access

Hello, I'm working on a script where I have to read hundreds of images and do some calculations on them. I'm using a simple f...

7年弱 前 | 1 件の回答 | 0

送信済み

Transform velocity field into wall coordinates

Interpolate velocity field on a wall-based grid. Useful to plot boundary layer

7年弱 前 | ダウンロード 1 件 |

解決済み

Column Removal

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

約7年 前

質問

What is drawnow doing?

Hello everyone. I'm working on a code where I need to alternate the display of two complex plots in a very short time. The ti...

約7年 前 | 1 件の回答 | 0

解決済み

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

7年以上 前

解決済み

Determine if input is odd

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

7年以上 前

質問

Optimization of variable-length array

Hello, I'm trying to optimize a code where I have an array with unknown size and I'm not sure about two solutions that I have...

7年以上 前 | 0 件の回答 | 1

送信済み

xcorr2_fft(a,b)

Two-dimensional cross-correlation evaluated with FFT algorithm

7年以上 前 | ダウンロード 9 件 |

回答済み

Discrepancy between xcorr2 and fft2

I figured it out by myself, and I uploaded a script on the file exchange to get a numerically equivalent function of xcorr2 whic...

Discrepancy between xcorr2 and fft2

I figured it out by myself, and I uploaded a script on the file exchange to get a numerically equivalent function of xcorr2 whic...

7年以上 前 | 0

質問

Discrepancy between xcorr2 and fft2

Hello! I want to implement an fft cross-correlation in my algorithm in order to replace the much slower xcorr2. In theory, d...

7年以上 前 | 1 件の回答 | 0

質問

Does keyboard slows down the code?

Hello. I was doing some tests to speed up my code, and I realized that having a keyboard in the code slows it down, even if t...

8年弱 前 | 1 件の回答 | 0

質問

Parfor loop and variable length output

Hello everyone, I would like to speed-up a code using a parfor loop but my function is not straightforwardly suitable for it....

8年弱 前 | 1 件の回答 | 0

質問

Boolean matrix in mex file

Hello everyone, I'm trying to read a logical matrix in a mex file with matlab. The way I usally do for reading matrices in ma...

8年弱 前 | 1 件の回答 | 0

質問

Automatically generate functions from snippet of a script

Hello, When I write a code in matlab, I usually start writing a script. When the script gets bigger, I transform it into a fu...

8年弱 前 | 0 件の回答 | 1

回答済み

Does it possible to use a function with persistent variables several times?

If you want to clear the persistent variable you need to do it explicitly: clear example

Does it possible to use a function with persistent variables several times?

If you want to clear the persistent variable you need to do it explicitly: clear example

8年弱 前 | 0

解決済み

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

8年弱 前

解決済み

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年弱 前