Issue regarding a data plot
古いコメントを表示
Hi,
I have a data as attached herewith.
The blue plot represents the gradient while the orange plot represents the percentage difference between the two datapoints.
But as you can see that at distance 0.2 the orange plot shoots up although the blue plot is sufficiently smooth.
I don't see any noise or outliers present at that point.
Can you advice me a way how to correct the percentage profile in this case?
2 件のコメント
Divyajyoti Nayak
2024 年 8 月 8 日
編集済み: Divyajyoti Nayak
2024 年 8 月 8 日
Hi @Rahul, could you share the data or code you are using to plot this graph? That would help in debugging this.
Rahul
2024 年 8 月 8 日
採用された回答
その他の回答 (1 件)
Rahul
2024 年 8 月 8 日
1 件のコメント
Divyajyoti Nayak
2024 年 8 月 8 日
Hey @Rahul, I'm not sure what your aim is exactly. Your expression for percentage difference is finding the percentage with respect to the average of 2 data points not the percentage increase from one data point to another. According to me, a simple percentage expression would be something like this:
percentage_difference_gI = (Normalized_intensity_gradient(end,2:end)-Normalized_intensity_gradient(end,1:end-1))./Normalized_intensity_gradient(end,1:end-1);
percentage_difference_gI = abs(percentage_difference_gI)*100;
カテゴリ
ヘルプ センター および File Exchange で Axis Labels についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
