Community Profile

photo

Jason


Last seen: 2 years ago Active since 2016

Followers: 0   Following: 0

Statistics

All
  • Thankful Level 3
  • Solver

View badges

Feeds

View by

Question


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

7 years ago | 1 answer | 0

1

answer

Question


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

7 years ago | 1 answer | 1

1

answer

Question


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

7 years ago | 1 answer | 0

1

answer

Question


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

7 years ago | 1 answer | 0

1

answer

Question


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 ago | 2 answers | 0

2

answers

Question


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 ago | 1 answer | 0

1

answer

Question


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 ago | 1 answer | 0

1

answer

Question


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 ago | 1 answer | 0

1

answer

Question


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

8 years ago | 3 answers | 0

3

answers

Solved


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

8 years ago

Solved


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

8 years ago

Solved


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

8 years ago

Solved


inner product of two vectors
inner product of two vectors

8 years ago

Question


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

8 years ago | 1 answer | 0

1

answer

Question


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

8 years ago | 1 answer | 0

1

answer

Solved


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

8 years ago

Solved


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

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

8 years ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

8 years ago

Solved


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

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

8 years ago

Solved


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 ago

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

8 years ago