답변 있음
Interpolation between matrices (image attached)
Your query location, (0,10), is in the center of your grid, so if you want a linear interpolation between the input matrices you...

대략 10년 전 | 0

| 수락됨

답변 있음
difference between imadd and imfuse
Yes.

대략 10년 전 | 0

| 수락됨

문제를 풀었습니다


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

대략 10년 전

문제를 풀었습니다


Free passes for everyone!
_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): As an addit...

대략 10년 전

문제를 풀었습니다


Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

대략 10년 전

문제를 풀었습니다


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

대략 10년 전

문제를 풀었습니다


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

대략 10년 전

문제를 풀었습니다


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

대략 10년 전

문제를 풀었습니다


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

대략 10년 전

문제를 풀었습니다


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

대략 10년 전

답변 있음
Saving axes to file - trouble with copyobj and export_fig
Regarding the error using export_fig, it seems you didn't install the package correctly.

10년 초과 전 | 0

답변 있음
export_fig can't do Monospace?
Export_fig supports Courier, and that is monospaced. For hints on why the other fonts you mentioned might not be working, see...

10년 초과 전 | 0

답변 있음
Is there a way to make device memory persist between CUDA MEX calls
Yes, you can reinterpret_cast the pointer to an integer of a sufficient bit length, e.g. uint64, and return this to MATLAB. Then...

10년 초과 전 | 2

| 수락됨

답변 있음
Indexing multiple values over large array?
histc outputs the bin index of each input value in the second output argument. So you can do: [~, ind] = histc(vals); va...

10년 초과 전 | 0

답변 있음
Gray Image to Color Indexed Image
Use the <http://www.mathworks.co.uk/matlabcentral/fileexchange/16233 sc()> package. A = sc(image, [0.4 1], 'hsv');

10년 초과 전 | 0

| 수락됨

답변 있음
PNG image created in Matlab shows up as all black in imshow
If you read the imshow help text, you'll see that the range only applies to grayscale images. Try: imshow(double(A)/4095);...

10년 초과 전 | 0

| 수락됨

답변 있음
How to optimise/vectorize loop containing the function "imrotate", using multiple images and angles as input
Assuming your 900 input images are all the same size, you could: # For each rotation angle, compute the location of each rota...

10년 초과 전 | 0

문제를 풀었습니다


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

10년 초과 전

문제를 풀었습니다


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

10년 초과 전

문제를 풀었습니다


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

10년 초과 전

문제를 풀었습니다


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

10년 초과 전

문제를 풀었습니다


Add two numbers
Given a and b, return the sum a+b in c.

10년 초과 전

답변 있음
bitget for array (count no. of bits)
I assume from your question that you actually want to do a vectorized bitcount, rather than a vectorized bitget. If that is corr...

10년 초과 전 | 0

답변 있음
Which MATLAB operations/functions need speeding up?
Linear 2D interpolation for multi-channel images A common computation in computer vision, and many other fields, is sampling ...

10년 초과 전 | 0

답변 있음
What functions can benefit from simple patching?
I gave a patch for saveas <http://www.mathworks.co.uk/matlabcentral/answers/13085#answer_17979 here>.

10년 초과 전 | 0

답변 있음
Which MATLAB operations/functions need speeding up?
REPMAT Repmat is unnecessarily slow. Internally it produces an index array, which it then uses to create the output array. Th...

10년 초과 전 | 0

답변 있음
Which MATLAB operations/functions need speeding up?
BSXFUN with builtin functions Bsxfun is useful in that it allows us to vectorize elementwise operations between arrays of dif...

10년 초과 전 | 2

질문


Which MATLAB operations/functions need speeding up?
When using MATLAB, I sometimes come across a performance bottleneck caused by functionality that I believe could be much faster....

10년 초과 전 | 답변 수: 23 | 3

23

답변

답변 있음
How should I compute the eigenvectors of a sparse, real, symmetric matrix?
Just convert the matrix to a full one, and use eig. Unless less you want just a few eigenvectors, then the decomposition using t...

10년 초과 전 | 0

| 수락됨

질문


How should I compute the eigenvectors of a sparse, real, symmetric matrix?
I need to compute all the eigenvectors of a sparse, real, symmetric matrix, A. I've tried the following: >> [V, D] = eig...

10년 초과 전 | 답변 수: 3 | 0

3

답변

더 보기