plotting the average of a range of data

How can I plot the average of a range of data in matlab??
Suppose,
F(x,y)=x+y
And x and y are square matrix of dimension 100x100. I need to plot F(x,y) along x. And constraint is average of y for a range of values of dimension 5x100.

4 Comments

And constraint is average of y for a range of values of dimension 5x100.
@Anindita Deka, sorry this part is not clear to me.
The function F(x,y) should be plotted with respect to x variable by keeping y value constant. And the constant y value is the mean value of y for a certain range of dimension.
Im not sure i follow, but maybe have a look at movmean
For me, the whole thing is not clear. If x is a 100x100 matrix, how can you plot against x? A plot normally plots against scalar variables.
The best thing would be to give a concrete example of what's desired.

Sign in to comment.

Answers (0)

Categories

Tags

Asked:

on 4 Dec 2019

Commented:

on 4 Dec 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!