Feeds
提问
Replacing the zero entry of a vector with its nonzero entries
Hello, Today I have another problem slightly different from my previous question, but they are of the same nature. Suppose...
7 years 前 | 2 个回答 | 0
2
个回答提问
Replacing the zero entry of a vector with the corresponding entry of another vector of the same dimension.
Hello everyone, Please I need some help about this: Suppose I have 2 vectors A=[0;2;0] and B=[3;5;7]. How can I write a co...
7 years 前 | 1 个回答 | 0
1
个回答提问
Removing for loop in computing the finite difference Jacobian
Hello friends, I am trying to remove the for loop i.e. to vectorize the following code that computes the numerical Jacobian u...
7 years 前 | 1 个回答 | 0
1
个回答提问
How can I remove for loop in the following code that change the entries of a given vector?
Hello, I am trying to vectorize the following simple code if true A=[-1;3;0;-4]; B=zeros(size(A)); for i=1:4 if A...
7 years 前 | 2 个回答 | 0