1. array to vector
x = x(:)
2. max(x(:)), same as max(max(x))
3. make x span [a,b], scale it.
m = min(x(:)); M = max(x(:));
x = (b-a) * (x-m)/(M-m) + a;
Road to my grill day ...
1. array to vector
x = x(:)
2. max(x(:)), same as max(max(x))
3. make x span [a,b], scale it.
m = min(x(:)); M = max(x(:));
x = (b-a) * (x-m)/(M-m) + a;
No comments:
Post a Comment