フィルターのクリア

Interpolation of graphical output in color-coded scatterplot

13 ビュー (過去 30 日間)
AN
AN 2023 年 6 月 9 日
コメント済み: AN 2023 年 7 月 1 日
Hello all,
I have some positional (x,y,z coordinate) data with corresponding activation time value (of signal propagation through the heart), which I have assigned color values (not sure if relevant- but did this by dividing the activation time value range into 8 equal portions and assigned a different color to each). I then graphed the data as a 3 dimensional scatterplot, which each point displaying the color assigned to it. I have attached a file detailing the code I used for color assigning.
I would now like to create a graphical output with a smoother surface that is easier for visualization. Ideally I would like the interpolation to be done on the scatterplot. I also want to keep the same exact color scheme displayed in the original scatterplot of raw data. I have been tinkering with ways to smooth out the surface using 'trisurf' and a few other functions, but cannot seem to be able to preserve the colors I assigned in the original scatter plot. Any help with this task would be greatly appreciated! Thank you.
  1 件のコメント
AN
AN 2023 年 6 月 9 日
Apologies, this is an example of a data file I would be analyzing that I forgot to attach in the original question.

サインインしてコメントする。

回答 (1 件)

Ranjeet
Ranjeet 2023 年 6 月 28 日
Hi AN
The problem you are trying to solve is essentially interpolation of a 3D scattered data.
The following resources are suggested to go through –
  1. MATLAB answer solving same problem - Interpolation of a scatter plot
  2. Introduction to scattered data interpolation - Interpolating scattered data
  3. Using scatteredInterpolant for 3D interpolation - 3D interpolation
  1 件のコメント
AN
AN 2023 年 7 月 1 日
Hi Ranjeet,
Thank you for your answer! I have come across the functions you mentioned. However, I would like to interpolate the scattered points while retaining the color scheme which I manually created (RGB array). Would you have any suggestion for that?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDiscrete Data Plots についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by