Find the points of the curve
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
What should be done to convert these 24 points to 48 points so that the output curve is the same
base=[2450,2350,2250,2000,1800,1600,1550,1450,1600,1800,2000,2200,2400,2450,2400,2300,2350,2200 2300 2350 2300 2300 2250 2000]
0 Kommentare
Akzeptierte Antwort
Voss
am 1 Nov. 2022
Bearbeitet: Voss
am 1 Nov. 2022
base = [2450,2350,2250,2000,1800,1600,1550,1450,1600,1800,2000,2200,2400,2450,2400,2300,2350,2200 2300 2350 2300 2300 2250 2000];
n = numel(base);
x = 1:n;
plot(x,base,'b.-')
hold on
second_x = linspace(1,n,2*n); % 48 points
second_base = interp1(1:n,base,second_x);
plot(second_x,second_base,'ro')
I think using 47 points makes more sense:
figure()
plot(x,base,'b.-')
hold on
third_x = linspace(1,n,2*n-1); % 47 points
third_base = interp1(1:n,base,third_x);
plot(third_x,third_base,'ro')
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Scatter Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!