Creating a classification maps from a (20 x20) matrix of raw data
Show older comments
Hi can someone help me with how to write a mathlab code: Scenario is: r is a set of raw data in a (20 x 20 ) matrix.
action 1: I have to re- display the data in the (20 x20)matrix into another (20 x20) matrix that now takes the original data and classifies it as : if the data ranges between 0 -4.9 - it must display (1) if the data ranges between 4.9 - 8.0 - it must display (2) if the data ranges between 8.0 - 12.0 - it must display (3)
so essentially I end up with a new classification map of ( 20 x20) displaying either 1,2 or 3 in place of the original data.
action 2: I now need to build a counter , that counts how many times the 1,2, and 3 appears in the (20 x20) classification map .
any help, hints will be appreciated.
3 Comments
Guillaume
on 2 Oct 2016
I assume this is homework. The best way for you to learn matlab is by first trying to solve the problem, not waiting for someone to get you started.
Once you've made a decent attempt, come back to us with a specific question (e.g. "why, when I do this, don't I get the right answer")
Prasad sivaraj
on 2 Oct 2016
Edited: Prasad sivaraj
on 2 Oct 2016
Prasad sivaraj
on 2 Oct 2016
Edited: Prasad sivaraj
on 2 Oct 2016
Accepted Answer
More Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!