MATLAB: Flip signal (positive and negative) Modulation I need help to program a flip-signal to separate the negative signal from the negative and reverse it ? Best Answer I have no idea what you want, but take a look at flipping functions flipud() and fliplr(), as well as masking:negIndexes = signal < 0;negValuesOnly = signal(negIndexes); % Extract neg values only, or...% Set negative values to zero (masking)noNegatives = signal; % Initialize.noNegatives(negIndexes) = 0; % Set negatives to zero, positives remain as-is.% Reverse the signal horizontallyreversedSignal = fliplr(signal);% Invert the signal verticallysignal = max(signal) - signal; Related SolutionsMATLAB: How to reverse a string in matlab Search the documentation/help forflipfliplrflipud MATLAB: Sum of the prime numbers sum(primes(500))orn = [2,3:2:500];sum(n(sum(tril(rem(n(:),n(:)')) > 0,2)==(1:numel(n))'-1)) Related QuestionExtract peaks and troughs from a curveHow to reverse a string using a FOR loopPlease i need answer ,how can i extract part of periodic signalHow to flip the individual elements in an array
Best Answer