Community Profile

photo

Khieu


University of Science, Ho Chi Minh city

Active since 2014

Statistics

All
  • First Answer
  • Revival Level 1
  • Commenter
  • Solver

View badges

Content Feed

View by

Answered
Load, open and display 2dseq file (MRI, bruker)
1. You should take a look at parameters files: acqp, method. (text file) these files contain all image parameters that suitable ...

6 years ago | 0

Question


Why for loop in CPU faster than in GPU
I am running the following command: p = zeros(7000000,1); g_p = gpuArray(p); 1. CPU version for i=1:size(p,1) p(i...

7 years ago | 1 answer | 0

1

answer

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

7 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

10 years ago