Community Profile

photo

hosein bashi


Last seen: 3 giorni fa Attivo dal 2021

Statistics

  • Thankful Level 2
  • Thankful Level 1
  • First Review

Visualizza badge

Content Feed

Visto da

Domanda


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

4 mesi fa | 2 risposte | 0

2

risposte

Domanda


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

circa un anno fa | 2 risposte | 0

2

risposte

Domanda


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

circa un anno fa | 3 risposte | 0

3

risposte

Domanda


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

circa 2 anni fa | 1 risposta | 0

1

risposta