I have a formula
F = (-k.^(3/2) .* sqrt(4 .* c .* x + k) + 2 .* x .* k .* c + k.^2) / (2 .* c)
and i'm trying to plot F against a range of values of c for a constant x and k value like so:
x = 0.01;
c = 10000:10000:100000;
k = 100000;
F = (-k.^(3/2) .* sqrt(4 .* c .* x + k) + 2 .* x .* k .* c + k.^2) / (2 .* c)
At this point I assumed matlab would give me a vector with the same size as c but it just prints:
F =
47.1563
Plotting F against a range of k values for constant c and x works fine, but the above does not.
Can anybody explain this for me?