Info

This question is closed. Reopen it to edit or answer.

Problem in result of code

1 view (last 30 days)
Ali Reza
Ali Reza on 24 Jun 2019
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi i write one code that when i give it some input in Pw and Pb from level 2 until 3 and 3 until 4 have 6 leap when i plot it have some decrease that wrong in result i check the enything!but i cant find why have 6 leap in code. For input use this parameter:Re:160,W=60,N=6,r1:10,r2:8,M=33.45,eb=0.83
  2 Comments
dpb
dpb on 25 Jun 2019
Edited: dpb on 25 Jun 2019
That's a bunch of code for somebody who has no idea what you're trying to do to decipher since there are (count 'em) precisely zero comments regarding anything. Not that it probably could be done, but that's a lot to expect of a bunch of volunteers.
Use the debugger and step through the code with the problematical inputs and see where your logic goes south...that's bound to be more productive than waiting for us; particularly when we have no idea what "6 leap in code" would mean.
Ali Reza
Ali Reza on 25 Jun 2019
I upload article that i use in code.i use first configration in article for convex star grain in article write equation that for solving pb pw i copy that equation in matlap with for and if loop! that not very difficult but i dont now why have jump(leap) in solve and that plot wrong result

Answers (1)

Ali Reza
Ali Reza on 25 Jun 2019
The plot must be with that diagrams

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!