how to re-insert elements into a vector
显示 更早的评论
I have outliers at the X-axis position 5785 and 7934.
outliers = 5785; 7934

In order to replace the outlying value, outliers are above mentioned points are deleted and a new 'corrected' values are created.
W(outliers) = []
x = 1:17280 % indices for x asix
x(outliers) = [] % deleting / emptying the value at the outlier position on x-axis
W_int = interp1(x',W, outliers)
How may i inserted the corrected value back in to the previously deleted position?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Linear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!