Alexander Shtof
Technion, Israeli Institute of Technology
自 2016 起处于活动状态
Followers: 0 Following: 0
Feeds
提问
Extract minimizer index for each subscript using `accumarray' with gpuArray
I have an array if values `vals', and a corresponding array of subscripts `subs' with repeated subscripts into an output array. ...
7 years 前 | 0 个回答 | 0
0
个回答提问
Fastest pairwise row sums
I have two matrices A and B, and I would like to compute a matrix C whose rows are all possible combinations of the sum of a row...
7 years 前 | 2 个回答 | 0
2
个回答提问
Find minimum in groups defined by cell arrays
I have a cell array I and a vector X. Each item in I specifies a group of indices of items in X. I would like to find the minimu...
7 years 前 | 1 个回答 | 0
1
个回答提问
LINPROG stopped because some objective or constraint matrix coefficients are too large in magnitude
The error in the title is displayed for an LP my code has built and was trying to solve. I do not understand the source of the p...
8 years 前 | 1 个回答 | 0
1
个回答提问
Vectorized "find an replace"
I have a matrix `A` and an array `map`, both consist of integers. I would like to replace every entry where `A == i` with `map(i...
8 years 前 | 2 个回答 | 0
2
个回答已解决
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...
8 years 前
已解决
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...
8 years 前
已解决
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 前
已解决
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
8 years 前
已解决
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 years 前
已解决
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 前
提问
Union of closed intervals
I have a matrix |A| of size |2 x N| matrix representing |N| closed intervals. That is, the |i|-th interval is [ |A(1, i) .. A(2,...
8 years 前 | 3 个回答 | 1
3
个回答已解决
Find the inverse permutation
Given a permutation vector perm (a vector of n elements containing all the elements from 1 to n in some order), return the permu...
8 years 前
提问
Simulating scatteredInterpolant for improved performance.
I have a set of 3D points X and a set of query points Q. I would like to interpolate function values at the query points Q, give...
8 years 前 | 1 个回答 | 0
1
个回答提问
Change label font in Graph plots
I am plotting a Graph object (created using the graph function). I figured out how to label nodes and edges in my graph, but I d...
9 years 前 | 1 个回答 | 0


