이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
sine wave max - min replacement
조회 수: 3 (최근 30일)
이전 댓글 표시
Zacharias
2014년 5월 6일
goodmorning,
in a given sine wave formed in one column, what is the code for replacing i.e the max point with its next one?or with the point defore the max one.
thank you.
댓글 수: 1
답변 (3개)
Mischa Kim
2014년 5월 6일
편집: Mischa Kim
2014년 5월 6일
Zacharias, use something like
x = 0:0.1:7;
y = sin(x);
y(y==max(y)) = y(circshift(y==max(y),1,2));
Zacharias
2014년 5월 7일
thanks for your try. i solved it like below: x=input('dose enan arithmo apo to pliktrologio: ') p=primes(x) A=max(p) % o max protos arithmos k=fliplr(p) % o k einai o pinakas p anapoda grammenos z=p+k % o pinakas z einai to athrisma twn pinakvn p kai k m=length(p); % vriskw to mikos tou dianismatos p for j=1:m/2 % vazo m/2 gia na min exo epanalipsi sthn prosthesi tvn pinakwn c=sprintf('%s %d %s %d %s %d ','to athroisma tou ',p(:,j),... 'me to athroisma tou ',k(:,j),'einai to: ',z(:,j)) end
댓글 수: 1
Zacharias
2014년 5월 7일
편집: Zacharias
2014년 5월 7일
i have a 960x15 table of sine waves. below is on of my 15 sine waves (one column). i need to find the min and max points of it, and replace them with their next point.then find and show the peak to peak array,and the array of the difference of peak to peak points. after all that, i need to find the mean value of the 'fixed' sine wave and abstract it from this 'fixed' wave. and at the end, i need the code to find the 5 sine waves with the maximum peak to peak difference, show them with 5 figures with 2 sine waves each one. thats all!!
-2,45287893922457 -2,10246766219248 -2,10246766219248 -2,10246766219248 -1,75205638516040 -1,75205638516040 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,350411277032081 -0,350411277032081 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,45287893922457 -2,45287893922457 -2,45287893922457 -2,45287893922457 -4,90575787844913 -4,55534660141705 -24,1783781152136 -7,00822554064162 -5,25616915548121 -2,10246766219248 -1,40164510812832 -1,05123383109624 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,80329021625665 -3,15370149328873 -5,95699170954537 -10,5123383109624 -9,81151575689826 -8,76028192580202 -7,35863681767370 -5,60658043251329 -2,10246766219248 -1,75205638516040 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,75205638516040 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,350411277032081 -0,350411277032081 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -1,75205638516040 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -5,95699170954537 -5,60658043251329 -10,8627495879945 -9,81151575689826 -9,11069320283410 -7,35863681767370 -3,85452404735289 -1,75205638516040 -1,75205638516040 -1,40164510812832 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,350411277032081 -0,350411277032081 -0,700822554064162 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -3,15370149328873 -5,60658043251329 -10,5123383109624 -9,81151575689826 -9,11069320283410 -8,40987064876994 -7,00822554064162 -4,55534660141705 -1,75205638516040 -1,75205638516040 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,700822554064162 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,350411277032081 -0,700822554064162 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,45287893922457 -5,95699170954537 -8,40987064876994 -10,1619270339303 -9,11069320283410 -7,70904809470578 -5,25616915548121 -1,75205638516040 -1,40164510812832 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,350411277032081 -0,350411277032081 -0,350411277032081 -0,700822554064162 0 -1,05123383109624 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,45287893922457 -2,45287893922457 -2,45287893922457 -6,30740298657745 -5,25616915548121 -8,05945937173786 -8,76028192580202 -7,00822554064162 -5,60658043251329 -2,10246766219248 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,700822554064162 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,45287893922457 -2,45287893922457 -2,45287893922457 -2,45287893922457 -2,10246766219248 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,05123383109624 -1,05123383109624 -0,700822554064162 -1,05123383109624 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,350411277032081 -0,350411277032081 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,45287893922457 -2,45287893922457 -2,45287893922457 -2,10246766219248 -1,75205638516040 -2,10246766219248 -1,75205638516040 -1,40164510812832 -1,75205638516040 -1,40164510812832 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,700822554064162 -0,700822554064162 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,350411277032081 -0,700822554064162 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,75205638516040 -2,45287893922457 -2,10246766219248 -1,75205638516040 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,45287893922457 -2,45287893922457 -4,90575787844913 -8,05945937173786 -7,35863681767370 -5,95699170954537 -2,80329021625665 -1,75205638516040 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,350411277032081 -0,350411277032081 0 -0,350411277032081 -0,700822554064162 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,45287893922457 -2,45287893922457 -2,45287893922457 -2,45287893922457 -2,10246766219248 -2,10246766219248 -1,75205638516040 -1,75205638516040 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,350411277032081 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,350411277032081 0 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -5,60658043251329 -5,60658043251329 -9,46110447986618 -9,81151575689826 -9,11069320283410 -8,05945937173786 -6,30740298657745 -2,80329021625665 -1,75205638516040 -1,40164510812832 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,700822554064162 -0,700822554064162 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,350411277032081 -0,700822554064162 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,80329021625665 -5,60658043251329 -10,1619270339303 -10,1619270339303 -9,46110447986618 -8,40987064876994 -6,65781426360953 -4,55534660141705 -1,75205638516040 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,350411277032081 -0,700822554064162 -0,350411277032081 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,40164510812832 -1,40164510812832 5 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,45287893922457 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -1,75205638516040 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,700822554064162 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,350411277032081 -0,350411277032081 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -5,60658043251329 -7,00822554064162 -9,81151575689826 -9,46110447986618 -8,05945937173786 -6,65781426360953 -4,55534660141705 -1,75205638516040 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,700822554064162 -0,350411277032081 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,45287893922457 -2,45287893922457 -5,60658043251329 -4,90575787844913 -4,55534660141705 -3,15370149328873 -2,10246766219248 -1,75205638516040 -2,10246766219248 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,700822554064162 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,350411277032081 -0,350411277032081 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,45287893922457 -5,25616915548121 -4,20493532438497 -3,85452404735289 -2,45287893922457 -2,10246766219248 -1,75205638516040 -1,75205638516040 -1,40164510812832 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,700822554064162 -0,700822554064162 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,350411277032081 -0,350411277032081 -0,700822554064162 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,45287893922457 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -1,75205638516040 -1,75205638516040 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,05123383109624 -1,05123383109624 -0,700822554064162 -1,05123383109624 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,350411277032081 -0,350411277032081 -0,700822554064162 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,45287893922457 -2,45287893922457 -2,10246766219248 -2,10246766219248 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,40164510812832 -1,40164510812832 -1,05123383109624 -1,40164510812832 -1,05123383109624 -1,40164510812832 -1,05123383109624 -0,700822554064162 -1,40164510812832 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,350411277032081 -0,700822554064162 -0,700822554064162 -0,700822554064162 -1,40164510812832 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,45287893922457 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,40164510812832 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,350411277032081 0,350411277032081 0,350411277032081 -0,350411277032081 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -1,75205638516040 -2,10246766219248 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,80329021625665 -5,60658043251329 -6,30740298657745 -9,81151575689826 -7,00822554064162 -6,65781426360953 -4,90575787844913 -2,80329021625665 -1,75205638516040 -1,40164510812832 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,350411277032081 -0,350411277032081 -0,700822554064162 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,75205638516040 -2,10246766219248 -2,10246766219248 -1,75205638516040 -2,10246766219248 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,45287893922457 -2,10246766219248 -2,45287893922457 -2,45287893922457 -2,10246766219248 -2,10246766219248 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,40164510812832 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,350411277032081 -0,350411277032081 -0,350411277032081 -0,700822554064162 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,45287893922457 -2,10246766219248 -2,10246766219248 -2,45287893922457 -2,45287893922457 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -1,40164510812832 -1,75205638516040 -1,40164510812832 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,350411277032081 -0,350411277032081 -0,350411277032081 -0,350411277032081 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,40164510812832 -1,05123383109624 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,45287893922457 -2,45287893922457 -2,45287893922457 -2,45287893922457 -2,10246766219248 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,75205638516040 -1,05123383109624 -1,40164510812832 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -1,05123383109624 -0,700822554064162 -0,700822554064162 -0,700822554064162 -0,350411277032081 0 -0,350411277032081 -0,700822554064162 -0,700822554064162 -1,05123383109624 -1,05123383109624 -1,40164510812832 -1,40164510812832 -1,40164510812832 -1,75205638516040 -1,75205638516040 -1,75205638516040 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,10246766219248 -2,45287893922457 -2,45287893922457 -5,60658043251329
참고 항목
태그
아직 태그를 입력하지 않았습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
아시아 태평양
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)
