Community Profile

photo

Nipun Vashistha


Last seen: 8 months ago Active since 2022

Followers: 0   Following: 0

Statistics

All
  • Cody 10th Anniversary 10-Day Streak
  • Introduction to MATLAB Master
  • Community Group Solver
  • Solver
  • Thankful Level 2

View badges

Feeds

View by

Question


(Matrix Optimization) Optimization method for coefficient matrix in Ax = b with known x and b.
Hi, I have two 4*1 data vectors x and b which represents meaured 'Intensity vector' and 'Stokes vector'. These two vectors are ...

2 years ago | 2 answers | 0

2

answers

Question


I tried to write a code to find the next smallest prime number greater than any given positive integer. My code is stuck in infinity loop, how can I find where is the problem?
function k = next_prime(n) t = 2; if isscalar(n) && fix(n) == n && n > 0 while t > 0 if isprime(t) && t > n ...

2 years ago | 1 answer | 0

1

answer