Is it possible to use the smooth function with a multidimensional matrix having NaN values?

조회 수: 16 (최근 30일)
The NaN values would be the points where the smooth function generates the new values.
Hope this is clear. Thank you!

답변 (1개)

Sergio Yanez-Pagans
Sergio Yanez-Pagans 2022년 5월 23일
  댓글 수: 1
alberto tonizzo
alberto tonizzo 2022년 5월 23일
Thank you but I have a matrix with 5 dimensions...
Matrix dimensions must agree.
Error in smoothn>dctn (line 704)
y = y.*w{dim}(:,ones(1,n));
Error in smoothn>@(x)dctn(x) (line 632)
z = cellfun(@(x) dctn(x),z,'UniformOutput',0);
Error in smoothn>InitialGuess (line 632)
z = cellfun(@(x) dctn(x),z,'UniformOutput',0);
Error in smoothn (line 421)
z = InitialGuess(y,IsFinite);

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


Help CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기




Community Treasure Hunt

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

Start Hunting!

Translated by