Jason
Followers: 0 Following: 0
Feeds
提问
how to do the sparse indexing
Hello all, I want to do the following sparse array index. Here, P is a 3-dimansional cell matrix, because the matrix is very la...
8 years 前 | 1 个回答 | 0
1
个回答提问
Is there an efficient way to create a 3 dimensional sparse matrix?
Hello, all ! I have some 2 dimensional large sparse matrix (may be more than 102,400,000 * 102,400,000) and want them to genera...
8 years 前 | 1 个回答 | 1
1
个回答提问
how many times c++/c can faster than Matlab
Hello everyone, I am writing some codes to compute a large problem. Due to there are many 'for' loops, and some matrix are s...
8 years 前 | 1 个回答 | 0
1
个回答提问
how to do the exhaustive search?
Dear all, I have a function with 7 variables, each variable belong to [0,20]. I want to search directly from the combination of...
8 years 前 | 1 个回答 | 0
1
个回答提问
Maximum recursion limit of 500 reached
Dear all, I met a problem when using the following code. I met a problem in the following code. Error using sdpvar/resha...
8 years 前 | 2 个回答 | 0
2
个回答提问
how to solve A*x=b, if A is a singular matrix;
hello, everyone! I am using hte following code to build the matrix New_P and New_Pg, in order to solve New_P*h=New_Pg; Because,...
8 years 前 | 1 个回答 | 0
1
个回答提问
how to use bsxfun or arrayfun to build the following matrix
Hi, there. I want to use bsxfun or arrayfun to replace the following for loop. for s=1:S New_P(s,:)=P(s,:,U0...
8 years 前 | 1 个回答 | 0
1
个回答提问
how to supress a output of a function in command window
Hi, there! I met a problem. If the output of my function is a1,a2,a3, like the right form: [a1,a2,a3]=function(b1,b2,b3); A...
8 years 前 | 1 个回答 | 0
1
个回答提问
how to find the column number of first zero element of each row
<</matlabcentral/answers/uploaded_files/45777/pic.PNG>> Hi,all. could you please tell me how to find the column number of fir...
9 years 前 | 3 个回答 | 0
3
个回答已解决
Make one big string out of two smaller strings
If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...
9 years 前
已解决
Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1
9 years 前
提问
how to replace the following code, to get the matrix
Hi, there! I going to structure the following matrix, which has some regulations.please see the picture below: if n=4; <</ma...
9 years 前 | 1 个回答 | 0
1
个回答提问
how to use vectorized language or any other methods to replace the following code, in order to make the computation faster
following are my current code: if true % code tic; S = size(P,1); Q2 = -permute(P,[2 3 1]); for i = 1:S Q2(i,...
9 years 前 | 1 个回答 | 0
1
个回答已解决
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...
9 years 前
已解决
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 ...
9 years 前
已解决
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...
9 years 前
已解决
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
9 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 ...
9 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...
9 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:...
9 years 前