- #1
Alem2000
- 117
- 0
Hello all, i am trying to write a script file that will only print if [tex]R[/tex] is divisible by [tex]D[/tex] where [tex]D=3[/tex]
I wrote a loop statement with the condition being [tex]fix(R/D)=R/D[/tex] this works fine but there is another way that the book does it. The book uses [tex]mod(R,D)=0[/tex] as the condition. I tried typing in [tex]help mod[/tex] but the explanation that MATLAB gave was extreamly confusing, can anyone tell me what the command [tex]mod(x,y)[/tex] says...what does the [tex](x,y)[/tex] mean...thanks in adnvance.
I wrote a loop statement with the condition being [tex]fix(R/D)=R/D[/tex] this works fine but there is another way that the book does it. The book uses [tex]mod(R,D)=0[/tex] as the condition. I tried typing in [tex]help mod[/tex] but the explanation that MATLAB gave was extreamly confusing, can anyone tell me what the command [tex]mod(x,y)[/tex] says...what does the [tex](x,y)[/tex] mean...thanks in adnvance.