tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 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