Skip to main content
1-Visitor
October 25, 2010
Solved

surface plot of matrix of vectors

  • October 25, 2010
  • 2 replies
  • 6913 views

Hello Everyone.

I have a matrix of vectors. i need to simplify it as matrix only.

First i want to zero all negative values

Then surface/contour plot it. It won't plot as it stands.

Thank you in advance

File attached

Best answer by StuartBruff

and here's another way ...

2 replies

1-Visitor
October 25, 2010

Something like the attached?

To simplify the function I have used a few predefined functions within the program.

Mike

23-Emerald V
October 25, 2010

and here's another way ...

1-Visitor
October 25, 2010

can you explain what you did to It. it's displayed correctly but i can't see how?

btw the way to remove negative values from a matrix in just one sweep was awesome. I didn't know you could do that.

is there a way to show non integers in the x or y axis or does it always have to be integers. one of the axis is months. so thats fine. but the other is hours,

-3.5h, -1.5h, -0.5h, 0.5h, 1.5h, 3.5h etc

23-Emerald V
October 25, 2010

Hi,

I've annotated the worksheet and reposted it. You don't have to use integers for the x and y axes. I've given a rough example in the attached worksheet. Essentially, you group 3 matrices together, one for each of the x,y &z values of each point you want to plot. Generally, for this type of work, the X matrix consists of columns of the same values and the Y matrix of rows of the same values. Bear in mind that they are co-ordinates for each point, so using your value vector as is (6.5, 5.5 .. 4.5, 5.5) will create 2 y,z values for each duplicated x value.