- #1

- 202

- 1

I wish to use a for loop i already made and replace a number with a variable defined as a range of numbers, then plot the max of another function that used the function with the new variable.

How would I do this?

example:

x = [0:.5:1]

r = 5*x

t = 3/r

new program:

x = same

n = [0:.25:.5]

r = n*x

t = 3/r

for each value of n, i want to plot the cooresponding t, and plot n vs t

How would I do this?

example:

x = [0:.5:1]

r = 5*x

t = 3/r

new program:

x = same

n = [0:.25:.5]

r = n*x

t = 3/r

for each value of n, i want to plot the cooresponding t, and plot n vs t

Last edited: