MATLAB Answers

Debbie

Interplorating on Cartesian coord( triplet points)

Asked by Debbie
on 12 Jan 2013
>>X= [1 2 3 4 5 
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5] <-enter
>>Y=[1     1     1     1     1
     2     2     2     2     2
     3     3     3     3     3
     4     4     4     4     4
     5     5     5     5     5] <-enter
>>z =[152    89   100   100   100
   103     0   100   100   100
    89    13   100   100   100
   115   100   187   200   111
   100    85   111    97    48] <-enter
scatter3(X(:), Y(:), z(:))

But the result wants to be connected all point.. Looking fir a solution ato show an Interplorating surface on the of view? :)

  0 Comments

Products

No products are associated with this question.

2 Answers

Answer by Jan Simon
on 12 Jan 2013
 Accepted answer
surface(X, Y, z, 'facecolor', 'r')
view(3)

  1 Comment

Debbie
on 12 Jan 2013

Jan, it's a quick thought. Will run your solution soon, just right now I only can use mobile matlab.. Some reasons.. It doesn't work well. Will get back to you how it goes with your method :)


Answer by Walter Roberson
on 12 Jan 2013

  1 Comment

Debbie
on 13 Jan 2013

you provide such a dedicated answer! NOw I understand what that means of interpolating in matlab. Thanks.


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today