Modulo problem

  • #1
cpgarcia164
2
0
I need to create a MATLAB function file that will accept a modulo values (from 3 to 9; that is Z3 to Z9) and will output the least possible value describe by the modulo conditions

I don't know how to start it because I am not allowed to use the mod() and rem().

Please give me an idea how to do this, I badly need help with this one


I use array but my prof said it is prohibited because once I use matrix it is easy definable
 
Last edited by a moderator:

Answers and Replies

  • #2
gsal
1,065
54
don't quite understand what you are trying to do...it would help if you at least showed the "illegal" way that the prof does not want...but at least we would know what you are trying to achieve...or maybe I am just too ignorant and do not know what Z3 or Z9 is.

Say, can you just use a counter, a do loop and substraction? Multiplication can be achieve by summation and Division by substraction...does this help?
 

Suggested for: Modulo problem

  • Last Post
Replies
0
Views
595
  • Last Post
Replies
1
Views
1K
Replies
1
Views
465
  • Last Post
Replies
2
Views
654
  • Last Post
Replies
8
Views
1K
Replies
2
Views
449
  • Last Post
Replies
18
Views
2K
Replies
7
Views
1K
  • Last Post
Replies
10
Views
1K
Replies
6
Views
1K
Top