How to extract data point from a vector graphics by MATLAB?

조회 수: 22 (최근 30일)
Md Abu Sayeed
Md Abu Sayeed 2016년 5월 9일
답변: Mike Garrity 2016년 5월 12일
I have vector graphic figures in svg format. In text editor, I can get several data point but that is not the exact value what I am looking for. Is there anyone who can explain me little bit more? Is there anyway to convert the value to the exact one? I want the x coordinators in inch and y coordinator in percentage.
  댓글 수: 1
srj4anoop
srj4anoop 2016년 5월 12일
Hi Sayeed,
You could parse the svg file using the normal file read operations to get the coordinate values. What do you mean when you say the data points are not exact ? Also share the svg file if possible, so that it might help others from the community to answer your query.

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

답변 (1개)

Mike Garrity
Mike Garrity 2016년 5월 12일
The coordinates in the output file are not going to be the same as your data values. They can't be in some cases (e.g. YScale='log'), and they would cause a lot of problems in other cases (e.g. very large or small data values).
What are you actually trying to accomplish? I don't think that going through SVG is really likely to get you to where you want to be.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by