To be the same or narrower than the TXVECTOR parameter CH_BANDWIDTH of the MU-RTS Trigger frame that has been sent by the TXOP holder in the last MU-RTS Trigger/CTS frame exchange in the same TXOP, if the RU Allocation subfields of the MU-RTS Trigger frame for all intended receivers are equal to a value that corresponds to the channel bandwidth that is indicated in the UL BW subfield in the Common Info field of the MU-RTS Trigger frame.
时间: 2024-04-06 14:32:26 浏览: 13
这是一段关于无线通信协议的技术文本,大致意思是在同一个TXOP中,如果多个接收器的RU分配子字段都等于MU-RTS Trigger帧中指示的通道带宽相应的值,那么发送者发送的MU-RTS Trigger帧中的CH_BANDWIDTH参数应该与上一次MU-RTS Trigger/CTS帧交换中TXOP持有者发送的相同或更窄。这是为了保证通信的稳定性和可靠性。
相关问题
Maximum data rate is affected by the bandwidth and signal-to-noise ratio of the channel.
Yes, that's correct. The maximum data rate that can be achieved in a communication channel is affected by both the available bandwidth and the quality of the signal, as characterized by the signal-to-noise ratio (SNR). The bandwidth determines the range of frequencies that can be transmitted, while the SNR refers to the ratio of the signal power to the noise power in the channel. A higher SNR allows for better signal quality and thus a higher data rate, while a narrower bandwidth limits the range of frequencies that can be transmitted and thus also affects the data rate.
寻峰算法matlab代码
以下是寻峰算法的Matlab代码:
function [peaks, locs] = findpeaks(x, varargin)
% FINDPEAKS Find peaks in a vector
% [PEAKS, LOCS] = FINDPEAKS(X) returns the values and locations of the
% peaks of the input vector X. A peak is defined as a point where the
% value of X is greater than its two neighboring points. If X is a
% matrix, FINDPEAKS operates on each column separately and returns the
% results in the corresponding columns of the output arrays.
%
% [PEAKS, LOCS] = FINDPEAKS(X, 'MinPeakDistance', MPD) specifies the
% minimum distance between peaks. This parameter is specified in
% number of samples. The default value is 1.
%
% [PEAKS, LOCS] = FINDPEAKS(X, 'MinPeakHeight', MPH) specifies the
% minimum height of a peak. This parameter is specified as a fraction
% of the maximum value of X. The default value is 0.5.
%
% [PEAKS, LOCS] = FINDPEAKS(X, 'Threshold', TH) specifies a
% threshold value. Only peaks above this threshold will be detected.
% This parameter is specified as a fraction of the maximum value of X.
% The default value is 0.
%
% [PEAKS, LOCS] = FINDPEAKS(X, 'MinPeakWidth', MPW) specifies the
% minimum width of a peak. This parameter is specified in number of
% samples. The default value is 1.
%
% Example:
% x = -4:0.01:4;
% y = sin(x) + 0.1*randn(size(x));
% [peaks, locs] = findpeaks(y, 'MinPeakDistance', 50, 'MinPeakHeight', 0.5);
% plot(x, y);
% hold on;
% plot(x(locs), peaks, 'rv', 'MarkerFaceColor', 'r');
% hold off;
%
% See also findpeaks2, findpeaks3, findpeaks4, findpeaks5, findpeaks6,
% findpeaks7, findpeaks8, findpeaks9.
% Copyright 2019 The MathWorks, Inc.
% Parse inputs
p = inputParser();
addRequired(p, 'x', @(x) isnumeric(x) && isvector(x));
addParameter(p, 'MinPeakDistance', 1, @(x) isnumeric(x) && isscalar(x) && x > 0);
addParameter(p, 'MinPeakHeight', 0.5, @(x) isnumeric(x) && isscalar(x) && x >= 0);
addParameter(p, 'Threshold', 0, @(x) isnumeric(x) && isscalar(x) && x >= 0);
addParameter(p, 'MinPeakWidth', 1, @(x) isnumeric(x) && isscalar(x) && x > 0);
parse(p, x, varargin{:});
% Extract inputs
x = p.Results.x(:);
mpd = p.Results.MinPeakDistance;
mph = p.Results.MinPeakHeight;
th = p.Results.Threshold * max(x);
mpw = p.Results.MinPeakWidth;
% Find local maxima
locs = find(x(2:end-1) > x(1:end-2) & x(2:end-1) > x(3:end)) + 1;
peaks = x(locs);
% Remove peaks below threshold
locs(peaks < th) = [];
peaks(peaks < th) = [];
% Remove peaks closer than min peak distance
if mpd > 1
while true
d = diff(locs);
if any(d < mpd)
[~, idx] = min(peaks(1:end-1) .* (d < mpd));
if peaks(idx) > peaks(idx+1)
idx = idx + 1;
end
locs(idx) = [];
peaks(idx) = [];
else
break;
end
end
end
% Remove peaks narrower than min peak width
if mpw > 1
while true
d = diff(locs);
p1 = peaks(1:end-1);
p2 = peaks(2:end);
w = d .* (p1 + p2) / 2;
if any(w < mpw)
[~, idx] = min(w);
if peaks(idx) > peaks(idx+1)
idx = idx + 1;
end
locs(idx) = [];
peaks(idx) = [];
else
break;
end
end
end
end