r2011a vs r2010a findpeaks

조회 수: 3 (최근 30일)
Henry
Henry 2011년 9월 26일
Hi All, I wrote an m-file using FINDPEAKS in r2010a but the file doesn't run in r2011a. After a little trial and error, it seems that the output format (rows and columns) has been reversed half of the time. There are two ways the input data can be formatted: one row and many columns (row vector) or many rows and one column (column vector). In r2010a, either way provides a row vector output. In r2011a, the output data format is the same as the input.
In other words:
r2010a - Row in, row out. Column in, row out.
r2011a - Row in, row out. Column in, column out.
For me, it's a simple fix with careful use of the TRANSPOSE function, but it is a bit annoying. The example in the help documentation only covers row vectors and the subtle change isn't mentioned there. Has anyone else experienced similar problems with FINDPEAKS or other functions? Is this common between releases? Thanks.
Regards, Henry

답변 (3개)

Andreas Goser
Andreas Goser 2011년 9월 26일
I investigated the release notes and was unable to find a documentation of an intended change. It is important letting MathWorks know about this potential bug. Can you contact Technical Support with your observation? Ideally with example data and code (even if it is a one liner).
  댓글 수: 1
Henry
Henry 2011년 9월 26일
Thanks for checking. I have submitted a description for tech support's consideration.

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


Bhavna Rajasekaran
Bhavna Rajasekaran 2011년 11월 21일
The findpeaks doesnt even exist in the R2011a release at the moment. Is that right? There is no explanation, even some of the functions that the findpeaks was using have been removed.I am using this function already & now cant because its does not exist in the new release!
  댓글 수: 2
Titus Edelhofer
Titus Edelhofer 2011년 11월 21일
The function findPeaks is in the Signal Processing Toolbox. Maybe you have not installed it when installing R2011a?
Henry
Henry 2011년 11월 21일
I have used findpeaks in R2011a and it works fine except for the difference in 2010 and 2011 editions I mentioned above. 'help findpeaks' is there as well. I just had to remove some transposing lines from my r2010a scripts and everything worked as expected. I e-mailed the tech support people and they said the change in output orientation was intentional but it probably should have made it into the release notes.
Good luck!

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


Bhavna Rajasekaran
Bhavna Rajasekaran 2011년 12월 1일
Thank you, I found the problem. There was some problem with the installation. It works now!

카테고리

Help CenterFile Exchange에서 Calendar에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by