Percentage increase and decrease from two matrices
显示 更早的评论
Attaching two matrices A1 and B1. I want to calculate the percentage increase and decrease
deltaSignal = (B1 - A1);
percentageDifference = deltaSignal ./ A1;
A1 from B1. Total percentage increase and the total percentage decrease. I have done some part which I am writing here.
5 个评论
Jan
2022-12-22
What is your question? Write down the mathematical definition of what you want to calculate. Then it is easy to convert this to Matlab.
Joydeb Saha
2022-12-22
Jan
2022-12-22
@Joydeb Saha: Again: Please write down the mathematical definition of "the total percentage change in terms of positive and negative". While the description as text is not really clear, you do need a mathematical representation of what you want to calculate. Then the conversion to Matlab will be very easy.
Joydeb Saha
2022-12-22
Jan
2022-12-22
@Joydeb Saha: How do you define "the percentage of increase of ice" mathematically? The image does not clarify this.
A mathematical definition of "percentage" means: A number of X divided by a number of Y times 100. So what are your X and Y for "total percentage increase and the total percentage decrease".
回答(1 个)
Image Analyst
2022-12-22
0 个投票
You need to convert the image from RGB values to values on the color bar. See attached demo where I did that for a thermal image.

类别
在 帮助中心 和 File Exchange 中查找有关 Image Arithmetic 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!