cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Plot a function with a vector as its input variable

ptc-5782298
1-Newbie

Plot a function with a vector as its input variable

Hi,

I would like to plot a function, say y(x), that depends on x and another independent variable, say a vector ab that has the same size as x. The equation looks like this:

y(x): x +ab;

I have made a simple plot in the attached worksheet. Anybody can lend a helping hand?

Bests,

Newin

31 REPLIES 31

Hi Mike, thanks for your fast reply. I also just noticed that the last two empty lines in the text files are giving zeros! Thanks for pointing this out.

What does augment do to the vector? Did you remove the last two empty lines manually or does 'augment' do the magic?

Newin

MikeArmstrong
5-Regular Member
(To:ptc-5782298)

No problem at all.

I manually changed the 'Stop' data range to 502 rows. The automatic selection was selecting the zeros for some reason.

The 'augment(A,B,C,...' function returning an array by placing A, B, C, ... left to right in a matrix.

Top Tags