Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Price-fraction/MATLAB/price-fraction.m
Normal file
13
Task/Price-fraction/MATLAB/price-fraction.m
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
function y = rescale(x)
|
||||
|
||||
L = [0,.06:.05:1.02];
|
||||
V = [.1,.18,.26,.32,.38,.44,.50,.54,.58,.62,.66,.70,.74,.78,.82,.86,.9,.94,.98,1];
|
||||
|
||||
y = x;
|
||||
for k=1:numel(x);
|
||||
y(k) = V(sum(L<=x(k)));
|
||||
end;
|
||||
end;
|
||||
|
||||
t=0:0.001:1;
|
||||
plot(t,rescale(t));
|
||||
Loading…
Add table
Add a link
Reference in a new issue