Feeds
질문
Use matrix c\c++ API with row-based indexing
Hi all, in my project I perform some calculations in c++, and then I am using Matrix API (mxCreateNumericArray) to save my 2D ar...
거의 10년 전 | 답변 수: 1 | 0
1
답변질문
Run CUDA or PTX Code on GPU
Hi all, I have a problem with running CUDA code on GPU. According to <http://www.mathworks.com/help/distcomp/run-cuda-or-ptx-co...
거의 10년 전 | 답변 수: 1 | 1
1
답변답변 있음
getting string from gui textbox into dsolve
After reading the strings ('Dy=x^2' , 'y(1)=1' , 'x') you should convert everything into cell array ( <http://www.mathworks.com/...
getting string from gui textbox into dsolve
After reading the strings ('Dy=x^2' , 'y(1)=1' , 'x') you should convert everything into cell array ( <http://www.mathworks.com/...
대략 10년 전 | 0
답변 있음
creating a matrix of zeros of size of another matrice
So zeros(a1,a2) creates a matrix of zeros with a1 rows and a2 columns, for example: a=zeros(2,3) is a=0 0 0...
creating a matrix of zeros of size of another matrice
So zeros(a1,a2) creates a matrix of zeros with a1 rows and a2 columns, for example: a=zeros(2,3) is a=0 0 0...
대략 10년 전 | 1
| 수락됨
답변 있음
GPU arrayfun with shared arrays
You can try to use your function without arrayfun. If at least 1 of the arguments is on GPU, calculations will be performed on G...
GPU arrayfun with shared arrays
You can try to use your function without arrayfun. If at least 1 of the arguments is on GPU, calculations will be performed on G...
대략 10년 전 | 0
답변 있음
How to get diffraction pattern (fft2) from image of double slit(jpeg image)
After you get grayscale (2D array) Image, in order to get binary image you can use <http://www.mathworks.com/help/images/ref/im...
How to get diffraction pattern (fft2) from image of double slit(jpeg image)
After you get grayscale (2D array) Image, in order to get binary image you can use <http://www.mathworks.com/help/images/ref/im...
대략 10년 전 | 0
| 수락됨
답변 있음
How to find only negative root of any polynomial
If you have symbolic math toolbox, function <http://www.mathworks.com/help/symbolic/vpasolve.html vpasolve> will find all roots...
How to find only negative root of any polynomial
If you have symbolic math toolbox, function <http://www.mathworks.com/help/symbolic/vpasolve.html vpasolve> will find all roots...
대략 10년 전 | 0
답변 있음
I want to read audio data from a file. Can anybody help me?
You didn't set here the name of your file, it should be something like "test.wav"
I want to read audio data from a file. Can anybody help me?
You didn't set here the name of your file, it should be something like "test.wav"
대략 10년 전 | 0
답변 있음
how do i plot a graph in xy-plane?
First, you should define everything: h = 6.25 * 10^(-34); x=1:100; y=h.*x; Plot(x,y) So here you fi...
how do i plot a graph in xy-plane?
First, you should define everything: h = 6.25 * 10^(-34); x=1:100; y=h.*x; Plot(x,y) So here you fi...
대략 10년 전 | 0
답변 있음
How to find slope for each pixel?
As i understood, you need to find b=S/A in each point, so you need to use term-by-term division: b=S./A;
How to find slope for each pixel?
As i understood, you need to find b=S/A in each point, so you need to use term-by-term division: b=S./A;
대략 10년 전 | 0
답변 있음
How to get the correct value from the given matrix?
The simplest way is to write b=a(1,:)
How to get the correct value from the given matrix?
The simplest way is to write b=a(1,:)
대략 10년 전 | 0
| 수락됨
답변 있음
two dimension array mean and deviation calculation
There are a lot of ways to do that. I would generate 3D array, where the third dimension will be of the size = # of rounds (5); ...
two dimension array mean and deviation calculation
There are a lot of ways to do that. I would generate 3D array, where the third dimension will be of the size = # of rounds (5); ...
대략 10년 전 | 1
| 수락됨
질문
GPU amount of availible shared memory is less that it is seemed to be
Hi all, I am just started to use GPU. So, I tried to compute example from http://www.mathworks.com/products/parallel-computing...
대략 10년 전 | 답변 수: 1 | 0
1
답변답변 있음
Join some matrices to one matrix
new=[]; for i=1:n % n - number of cells new=[new;m{i}(:)] end %%% So we take each m{i}, turn it into 1...
Join some matrices to one matrix
new=[]; for i=1:n % n - number of cells new=[new;m{i}(:)] end %%% So we take each m{i}, turn it into 1...
대략 10년 전 | 1
| 수락됨
질문
error with arrayfun and GPU computing part 2.
I am tring to compute simple example on GPU: function C=myf(A,B,N) for i=1:N C(:,:,i)=(A(:,:,i)*B)^10; ...
대략 10년 전 | 답변 수: 1 | 0
1
답변답변 있음
GPU computation error: please help
GOt it, just another commands in 2012 version.
GPU computation error: please help
GOt it, just another commands in 2012 version.
대략 10년 전 | 0
| 수락됨
질문
GPU computation error: please help
HI all, I want to use GPU in my research. I downloaded simple example from mathworks (code is attached). Basically, code is: ...
대략 10년 전 | 답변 수: 1 | 0
1
답변질문
Why vectorized calculations are faster than for loops?
Why it's faster in Matlab? Is it because better memory treating, or paralleling? If this is only due parallel computation, on s...
대략 10년 전 | 답변 수: 1 | 0
1
답변질문
parfor calculations take longer time than for
I am starting to work with the Parallel Computing Toolbox, and just constructed simple example to compare for and parfor: t...
대략 10년 전 | 답변 수: 1 | 0
1
답변답변 있음
writing a loop for differences of random numbers.
%Generate: for i= 1:1000 b(i) =rand; end %Subtract: c=zeros(1000,1000) for i =1:1000 c(i,:)=b-b(i); end ...
writing a loop for differences of random numbers.
%Generate: for i= 1:1000 b(i) =rand; end %Subtract: c=zeros(1000,1000) for i =1:1000 c(i,:)=b-b(i); end ...
대략 10년 전 | 0
답변 있음
Solving System of 5 ODEs using ODE45
You can always get two first order ODE from one second order: if you have 2nd order ODE for y(t), use y1=y(t), y2=y'(t)=dy/dt...
Solving System of 5 ODEs using ODE45
You can always get two first order ODE from one second order: if you have 2nd order ODE for y(t), use y1=y(t), y2=y'(t)=dy/dt...
대략 10년 전 | 0
문제를 풀었습니다
Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]
대략 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년 전
문제를 풀었습니다
Make a run-length companion vector
Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...
대략 10년 전
문제를 풀었습니다
Flag largest magnitude swings as they occur
You have a phenomenon that produces strictly positive or negative results. delta = [1 -3 4 2 -1 6 -2 -7]; Marching thr...
대략 10년 전
문제를 풀었습니다
Given a window, how many subsets of a vector sum positive
Given a vector: [1 0 -1 3 2 -3 1] and a window of 2, A sliding window would find: 1 + 0 = 1 0 - 1 = -1 ...
대략 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년 전
문제를 풀었습니다
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년 전
문제를 풀었습니다
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년 전