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