Community Profile

photo

Hassan


4 total contributions since 2018

Contact

Hassan's Badges

  • Thankful Level 1

View details...

Contributions in
View by

Question


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

ongeveer een jaar ago | 2 answers | 0

2

answers

Question


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

ongeveer een jaar ago | 1 answer | 0

1

answer

Question


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

ongeveer een jaar ago | 1 answer | 0

1

answer

Question


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

ongeveer een jaar ago | 2 answers | 0

2

answers