photo

hosein bashi


Last seen: 4 maanden ago Active since 2021

Followers: 0   Following: 0

Statistics

  • Thankful Level 2
  • Thankful Level 1
  • First Review

View badges

Feeds

View by

Question


vectorized code is more time consuming than a simple for loop
Hi. There is a simple "for loop" and I changed the loop to a vectorized computation hope to get a faster function but it's slow...

ongeveer 2 jaar ago | 2 answers | 0

2

answers

Question


Similar lines are much different in time for run due to MATLAB profiler.
The right hand side of all of below equation are numbers (in same order of magnitude) but the first line is much slower. Any ide...

bijna 3 jaar ago | 2 answers | 0

2

answers

Question


is there any way to pause the code if there exist an imaginary variable?
I want matlab to stop if an imaginary number produced any where in the code. I can make an if condition for specific variable bu...

bijna 3 jaar ago | 3 answers | 0

3

answers

Question


fsolve terminate far before finding answer when using TolFun option
fsolve terminate far before finding answer when using TolFun option. I wrote a simple code to show my problem: ===============...

meer dan 3 jaar ago | 1 answer | 0

1

answer