Hey! I surf map1 from "mapmtx map1" and its look like this:
I want to add a path. the path it`s a other matrix that have a coordinates on the map. How i can plot the 2 matrix? if i click the 2 matrixs together and I click "plots" it`s not working...
Thank you all!

 채택된 답변

Walter Roberson
Walter Roberson 2016년 1월 3일

1 개 추천

surf(FirstVariable);
hold on
surf(SecondVariable);

댓글 수: 3

LifeOfPai
LifeOfPai 2016년 1월 3일
편집: LifeOfPai 2016년 1월 4일
Thank you, but the other matrix with the path coordinates of the map1 so I need to take all the value from the first matrix and replace them to the value at the coordinate array or the matlab know how to plot them like a coordinate?
Becuase it`s look like bad, the value of map1 surface it`s very hige or low and the coordinate it`s only indexs... I need the value of the coordinate from the first matrix.
How can i do this? thank you!
Walter Roberson
Walter Roberson 2016년 1월 3일
I do not understand what you mean by a "path" in this connection. And what values from the first matrix are to be replaced?
I am wondering if what you need is a scattered interpolant, or if you need to pass x and y coordinates in to surf().
LifeOfPai
LifeOfPai 2016년 1월 3일
I have martix map1 50X50 the surf and I have matrix B 50X50 the path I want to plot to screen the map and only path line of matrix b, how i can do this?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Image Analyst
Image Analyst 2016년 1월 3일

0 개 추천

If you want them side by side and they are the same size you can stitch them together before calling surfs
surf([matrix1, matrix2]);
Or you can treat as images and use imshowpair() or imfuse().

댓글 수: 1

Hey, I have a problem...
Error using horzcat
Dimensions of matrices being concatenated are not consistent.

댓글을 달려면 로그인하십시오.

카테고리

태그

질문:

2016년 1월 2일

편집:

2016년 1월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by