Assigning values to a level from non-numerical arrays
Show older comments
Lets say I had two non-numerical arrays which had a few different but equal number of levels
example:
getlevels(price)
ans =
low med high vhigh
getlevels(acceptability)
ans =
unacc acc good vgood
and I wanted to assign values to each of these levels.
For example:
low = 1 med = 2 high = 3 vhigh = 4
unacc = 1 acc = 2 good = 3 vood = 4
so that I could compare both of these on a graph.
How would I go about doing this?
Accepted Answer
More Answers (0)
Categories
Find more on Startup and Shutdown 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!