Plotting y = kx
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am trying to reproduce the following graph, which is a plot of some function like: y = kx, with both varying 'k' and 'x'. Can someone help me in this?
2 Kommentare
Walter Roberson
am 5 Okt. 2020
Can you do it parametrically, k = K(t), x = X(t), hence y = K(t).*X(t) ?
Antworten (2)
Walter Roberson
am 5 Okt. 2020
N = 150;
kvec = linspace(0, 1000, N);
xvec = linspace(0, 20225, N);
[k, y] = meshgrid(kvec, xvec);
y = k .* x;
nlevels = 50;
contour(k, y, nlevels)
0 Kommentare
Sulaymon Eshkabilov
am 5 Okt. 2020
k=1:999;
x =1:2024;
F = k.* x(:);
N = 25;
contour(k, x, F, N), shg
xlabel('k stifness'), ylael(' ...')
0 Kommentare
Siehe auch
Kategorien
Mehr zu 2-D and 3-D 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!