Month: September 2024
Find Max Value in Range
Hello,
In the below, i’m trying to make a new column in the table to the right. This column needs to find the max value of Remaining Demand corresponding to the range in colum 2 (capacity %).
E.g, it looks at all the values in storage percent between 0% – 25% and tells me the maximum remaining demand value and plots it in the corresponding row.
I tried a few ways and can’t get it to work…
If I can do this, I can adjust supply rate to suit to get it to 0 demand as it would be telling me the max number I need to adjust between 0% – 25%.
Hello, In the below, i’m trying to make a new column in the table to the right. This column needs to find the max value of Remaining Demand corresponding to the range in colum 2 (capacity %). E.g, it looks at all the values in storage percent between 0% – 25% and tells me the maximum remaining demand value and plots it in the corresponding row. I tried a few ways and can’t get it to work… If I can do this, I can adjust supply rate to suit to get it to 0 demand as it would be telling me the max number I need to adjust between 0% – 25%. Read More
Auto applying retention label to file-type not working
Hi all
Looking for some help on why a retention label may not be working.
I’ve created a retention label policy to auto-apply to a file type to delete after 1 year from the date it was last modified. I’ve removed SharePoint and OneDrive from the retention policy (ie no retention being applied on those areas) hoping that the label can work and automatic apply deletion to the file types. The audit function in Purview shows that no retention labels are being applied to any data.
Prior to applying the retention label policy I ran a simulation which picked up the file types but since making live I cant see anything happening. The file-types its looking for is not the standard office files but for a bespoke software with an alternative extension and this how the query was written in the retention label policy set up “(*.vx0) OR (*.vx1)”.
Any help or assistance much appreciated thanks.
Hi all Looking for some help on why a retention label may not be working. I’ve created a retention label policy to auto-apply to a file type to delete after 1 year from the date it was last modified. I’ve removed SharePoint and OneDrive from the retention policy (ie no retention being applied on those areas) hoping that the label can work and automatic apply deletion to the file types. The audit function in Purview shows that no retention labels are being applied to any data. Prior to applying the retention label policy I ran a simulation which picked up the file types but since making live I cant see anything happening. The file-types its looking for is not the standard office files but for a bespoke software with an alternative extension and this how the query was written in the retention label policy set up “(*.vx0) OR (*.vx1)”. Any help or assistance much appreciated thanks. Read More
Just downloaded SQL Server but fails to connect
Hi i will like to get some help connecting to SQL. I try to connect and get the message: A connection was sucssesfully established but then an error occurred during the login process.
thanks
Hi i will like to get some help connecting to SQL. I try to connect and get the message: A connection was sucssesfully established but then an error occurred during the login process. thanks Read More
Same table, different and dynamic workbook names
Hello,
Long time lurker, first time poster (I think!)
I’m looking for a no code option, in the first instance. I have PA in my arsenal but am hoping not to have a solution outside Excel. My company frowns upon vba. It’s not banned but there has to be a good reason & my 20 minute job wouldn’t qualify.
On a Monday, there is a report that is run with the current date and last week number in the format of ‘ddmmyy’ report – Wk 37. (Don’t even ask with that formatting!)
I need to copy a table from that report into my spreadsheet, basically. Each week, the same cells are copy and then pasted in the same area. I’ve tried to set up a dynamic formula which works but I can’t get it to hyperlink.
=”=’K:pathgoeshereSLT KPI Reports[” & G3 & ” – SLT KPI – Wk ” & E3 & “.xlsx]Overview’!$L$3”
Cell G3 is hard coded with the date, i couldn’t get the microsoft date format right to work properly with =Today()-4 (I run the report on a Friday)
Cell E3 is the week number – isoweeknum(cell)-1
I feel like I’m missing something really easy – any help would be appreciated
Hello,Long time lurker, first time poster (I think!)I’m looking for a no code option, in the first instance. I have PA in my arsenal but am hoping not to have a solution outside Excel. My company frowns upon vba. It’s not banned but there has to be a good reason & my 20 minute job wouldn’t qualify.On a Monday, there is a report that is run with the current date and last week number in the format of ‘ddmmyy’ report – Wk 37. (Don’t even ask with that formatting!)I need to copy a table from that report into my spreadsheet, basically. Each week, the same cells are copy and then pasted in the same area. I’ve tried to set up a dynamic formula which works but I can’t get it to hyperlink. =”=’K:pathgoeshereSLT KPI Reports[” & G3 & ” – SLT KPI – Wk ” & E3 & “.xlsx]Overview’!$L$3″Cell G3 is hard coded with the date, i couldn’t get the microsoft date format right to work properly with =Today()-4 (I run the report on a Friday)Cell E3 is the week number – isoweeknum(cell)-1I feel like I’m missing something really easy – any help would be appreciated Read More
MDE Entities APIs: API Rate Limiting
Hi,
I’m querying the Vulnerability endpoint of the MDE API family.
I’m making asynchronous request at a high rate, up to 20 API calls per second. Naturally, I’m hitting the API Rate Limit by receiving a 429 status code. However, I can’t seem to be able to confirm exactly what the API Rate Limit is for this endpoint.
The only page that mentions Rate Limiting is the one here and it pertains to Incident API or Advanced Hunting API, but not to the Entity API Vulnerability.
Can someone please tell me what the API Rate Limit is for Entities under which Vulnerability falls?
Thank you.
Hi, I’m querying the Vulnerability endpoint of the MDE API family.I’m making asynchronous request at a high rate, up to 20 API calls per second. Naturally, I’m hitting the API Rate Limit by receiving a 429 status code. However, I can’t seem to be able to confirm exactly what the API Rate Limit is for this endpoint. The only page that mentions Rate Limiting is the one here and it pertains to Incident API or Advanced Hunting API, but not to the Entity API Vulnerability. Can someone please tell me what the API Rate Limit is for Entities under which Vulnerability falls? Thank you. Read More
Simscape Multibody Model with Elastic tooth mesh
Hi everybody,
I want to simulate an elastic tooth mesh within my simscape multibody model. The model is very simple and consists only two gears. The model works fine with the "Common Gear Constraint" block, but I want to simulate spring and damping effects. Therefore I added a Torsional Spring-Damper which I connected to the model via a Rotational Multibody Interface.
Error:An error occurred during simulation and the simulation was terminated
Caused by:
[‘Test_ElastischerZahneingriff_1/Solver Configuration’]: Initial conditions solve failed to converge.
Nonlinear solver: Linear Algebra error. Failed to solve using iteration matrix.
The model may not give enough information to make it possible to solve for values of some of its variables. Specific advice is given below.
all components and nodal across variables involved
Tie variable ‘Torsional_Spring_Damper.R.w’ (Rotational velocity) to a definite value, for example by connecting an appropriate domain reference block.
Dependency found among topology equations. Check for missing reference node.
Is anybody out there who can help me fixing this error?
You can see the model in the pictures.
Thank’s everybody for any helpful comment….
Kind regards,
ThomasHi everybody,
I want to simulate an elastic tooth mesh within my simscape multibody model. The model is very simple and consists only two gears. The model works fine with the "Common Gear Constraint" block, but I want to simulate spring and damping effects. Therefore I added a Torsional Spring-Damper which I connected to the model via a Rotational Multibody Interface.
Error:An error occurred during simulation and the simulation was terminated
Caused by:
[‘Test_ElastischerZahneingriff_1/Solver Configuration’]: Initial conditions solve failed to converge.
Nonlinear solver: Linear Algebra error. Failed to solve using iteration matrix.
The model may not give enough information to make it possible to solve for values of some of its variables. Specific advice is given below.
all components and nodal across variables involved
Tie variable ‘Torsional_Spring_Damper.R.w’ (Rotational velocity) to a definite value, for example by connecting an appropriate domain reference block.
Dependency found among topology equations. Check for missing reference node.
Is anybody out there who can help me fixing this error?
You can see the model in the pictures.
Thank’s everybody for any helpful comment….
Kind regards,
Thomas Hi everybody,
I want to simulate an elastic tooth mesh within my simscape multibody model. The model is very simple and consists only two gears. The model works fine with the "Common Gear Constraint" block, but I want to simulate spring and damping effects. Therefore I added a Torsional Spring-Damper which I connected to the model via a Rotational Multibody Interface.
Error:An error occurred during simulation and the simulation was terminated
Caused by:
[‘Test_ElastischerZahneingriff_1/Solver Configuration’]: Initial conditions solve failed to converge.
Nonlinear solver: Linear Algebra error. Failed to solve using iteration matrix.
The model may not give enough information to make it possible to solve for values of some of its variables. Specific advice is given below.
all components and nodal across variables involved
Tie variable ‘Torsional_Spring_Damper.R.w’ (Rotational velocity) to a definite value, for example by connecting an appropriate domain reference block.
Dependency found among topology equations. Check for missing reference node.
Is anybody out there who can help me fixing this error?
You can see the model in the pictures.
Thank’s everybody for any helpful comment….
Kind regards,
Thomas simscape, multibody, gear, elastic tooth mesh MATLAB Answers — New Questions
How do I install STM32Cube Firmware manually for use with the “Embedded Coder Support Package for STMicroelectronics STM32 Processors”?
During the Hardware Setup for the "Embedded Coder Support Package for STMicroelectronics STM32 Processors", the step "Install STM32Cube Firmware" fails with the error "Installation of STM32Cube firmware failed with the following error" as shown in the screenshot below.
Is there a different way to download the STM32Cube firmware for use with MATLAB/Simulink?During the Hardware Setup for the "Embedded Coder Support Package for STMicroelectronics STM32 Processors", the step "Install STM32Cube Firmware" fails with the error "Installation of STM32Cube firmware failed with the following error" as shown in the screenshot below.
Is there a different way to download the STM32Cube firmware for use with MATLAB/Simulink? During the Hardware Setup for the "Embedded Coder Support Package for STMicroelectronics STM32 Processors", the step "Install STM32Cube Firmware" fails with the error "Installation of STM32Cube firmware failed with the following error" as shown in the screenshot below.
Is there a different way to download the STM32Cube firmware for use with MATLAB/Simulink? offline, firewall, cubemx, stm32cubemx, firmware, stm32, setup MATLAB Answers — New Questions
Simulink build TI CCS Project error.
Post Content Post Content ccs ti MATLAB Answers — New Questions
Equivalence of MSK and Offset QPSK
Hi everyone,
i’m currently trying to create a offset QPSK modulation using an MSK with a half-sine matched filter. This is based on the IEEE paper https://ieeexplore.ieee.org/document/4102435. I generated an OQPSK and MSK signal with MATLAB and plotted the angle of the signal. Both can be seen below. There is no frequency error or noise. They spectrum for both is the same and the amplitude of the symbol stays constant, so this is indeed a OQPSK signal. Just the resulting bits are different.
I can demodulated the OQPSK using the OQPSK demodulation function from the Communications Toolbox as well as the with the symbol order based on the phase seen in the picture. So the OQPSK is correct. I can also demodulate the MSK with a normal FSK demodulater and the ouput is the same as with the OQPSK. But when applying any kinf of OQPSK demodulation to the MSK signal the resulting sequence is different as well as the phase (picture).
So is a MSK with Half-Sine Filter really equivalent to an OQPSK and both can be received with the same receiver?
This is the phase of the MSK signal
And this is the phase of the OQPSK signal
Best Regards,
AxelHi everyone,
i’m currently trying to create a offset QPSK modulation using an MSK with a half-sine matched filter. This is based on the IEEE paper https://ieeexplore.ieee.org/document/4102435. I generated an OQPSK and MSK signal with MATLAB and plotted the angle of the signal. Both can be seen below. There is no frequency error or noise. They spectrum for both is the same and the amplitude of the symbol stays constant, so this is indeed a OQPSK signal. Just the resulting bits are different.
I can demodulated the OQPSK using the OQPSK demodulation function from the Communications Toolbox as well as the with the symbol order based on the phase seen in the picture. So the OQPSK is correct. I can also demodulate the MSK with a normal FSK demodulater and the ouput is the same as with the OQPSK. But when applying any kinf of OQPSK demodulation to the MSK signal the resulting sequence is different as well as the phase (picture).
So is a MSK with Half-Sine Filter really equivalent to an OQPSK and both can be received with the same receiver?
This is the phase of the MSK signal
And this is the phase of the OQPSK signal
Best Regards,
Axel Hi everyone,
i’m currently trying to create a offset QPSK modulation using an MSK with a half-sine matched filter. This is based on the IEEE paper https://ieeexplore.ieee.org/document/4102435. I generated an OQPSK and MSK signal with MATLAB and plotted the angle of the signal. Both can be seen below. There is no frequency error or noise. They spectrum for both is the same and the amplitude of the symbol stays constant, so this is indeed a OQPSK signal. Just the resulting bits are different.
I can demodulated the OQPSK using the OQPSK demodulation function from the Communications Toolbox as well as the with the symbol order based on the phase seen in the picture. So the OQPSK is correct. I can also demodulate the MSK with a normal FSK demodulater and the ouput is the same as with the OQPSK. But when applying any kinf of OQPSK demodulation to the MSK signal the resulting sequence is different as well as the phase (picture).
So is a MSK with Half-Sine Filter really equivalent to an OQPSK and both can be received with the same receiver?
This is the phase of the MSK signal
And this is the phase of the OQPSK signal
Best Regards,
Axel msk, oqpsk MATLAB Answers — New Questions
Project for the web – holiday calendar
Hi!
On project for the web i’ve created a calendar template from a “calendar resource” and assigned them a 08:00 AM – 17:00 PM GMT+1 working hour
Holiday are “non working day” in this calendar (summer and winter holiday)
Is there a way to let the plan’s PM to manage his collaborator holiday without admin access to project admin dashboard?
Otherways every time that a users go on holiday i should go on his resourse and modify his working day
Thanks!
Hi! On project for the web i’ve created a calendar template from a “calendar resource” and assigned them a 08:00 AM – 17:00 PM GMT+1 working hourHoliday are “non working day” in this calendar (summer and winter holiday) Is there a way to let the plan’s PM to manage his collaborator holiday without admin access to project admin dashboard?Otherways every time that a users go on holiday i should go on his resourse and modify his working day Thanks! Read More
Automatically Adjusting Rows in a Range
I run a daily golf league where the number of players is not consistent. The data is removed after every use. I use multiple tables that randomly creates teams using RAND function. It also sorts and rank player performance and sum winnings from 3 tables (team performance, individual performance and skins). Every time I use the workbook, I need to manually adjust the table sizes in multiple pages since any #N/A or #VALUE! in a table will interfere with sum, match, vlookup, sorting and rank functions. Is there a way to automatically adjust the number of rows in all of the tables based on the the number of players (PLAYER COUNT)?
I run a daily golf league where the number of players is not consistent. The data is removed after every use. I use multiple tables that randomly creates teams using RAND function. It also sorts and rank player performance and sum winnings from 3 tables (team performance, individual performance and skins). Every time I use the workbook, I need to manually adjust the table sizes in multiple pages since any #N/A or #VALUE! in a table will interfere with sum, match, vlookup, sorting and rank functions. Is there a way to automatically adjust the number of rows in all of the tables based on the the number of players (PLAYER COUNT)? Read More
Workbook flash prevent
Help with the best strategy to prevent workbook flash before Login form displays
Help with the best strategy to prevent workbook flash before Login form displays Read More
Calendar reminders disappear after about 7 days in “new outlook”
If I go back to “old outlook” the reminders works correctly? I can’t find in new outlook any settings that indicate number of days to keep calendar reminders before they are auto-deleted. It appears to be an on/off feature.
If I go back to “old outlook” the reminders works correctly? I can’t find in new outlook any settings that indicate number of days to keep calendar reminders before they are auto-deleted. It appears to be an on/off feature. Read More
You have to transmit Data Sequence 11100010 with transmission bit rate 1000000 through QPSK. Write a Matlab code and a) Generate data sequence and all the above mentioned wave
clear all
close all
Data_Seq=[1,1,1,0,0,0,1,0]
stem(Data_Seq)
bitrate= 1000000;
SR=1/bitrate;
ylim([-1 1])
t=0:0.01:length(Data_Seq)
Data_Seq2=[1,1,1,-1,-1,-1,1,-1]
stem(Data_Seq2)
A = Data_Seq2(1:2:end,:) %
B = Data_Seq2(2:2:end,:)
stem(A)
even = Data_Seq(2:2:end);
odd = Data_Seq(1:2:end);
stem(even)
// i Want to seperate even and odd signal but not undrstanding how to plotclear all
close all
Data_Seq=[1,1,1,0,0,0,1,0]
stem(Data_Seq)
bitrate= 1000000;
SR=1/bitrate;
ylim([-1 1])
t=0:0.01:length(Data_Seq)
Data_Seq2=[1,1,1,-1,-1,-1,1,-1]
stem(Data_Seq2)
A = Data_Seq2(1:2:end,:) %
B = Data_Seq2(2:2:end,:)
stem(A)
even = Data_Seq(2:2:end);
odd = Data_Seq(1:2:end);
stem(even)
// i Want to seperate even and odd signal but not undrstanding how to plot clear all
close all
Data_Seq=[1,1,1,0,0,0,1,0]
stem(Data_Seq)
bitrate= 1000000;
SR=1/bitrate;
ylim([-1 1])
t=0:0.01:length(Data_Seq)
Data_Seq2=[1,1,1,-1,-1,-1,1,-1]
stem(Data_Seq2)
A = Data_Seq2(1:2:end,:) %
B = Data_Seq2(2:2:end,:)
stem(A)
even = Data_Seq(2:2:end);
odd = Data_Seq(1:2:end);
stem(even)
// i Want to seperate even and odd signal but not undrstanding how to plot qpsk modulation MATLAB Answers — New Questions
Recreating embedded antenna pattern from isolated element and S-parameter matrix
My objective is to calculate the active element pattern of the central element in a rectangular array. According to Eq. (17) in David M. Pozar’s paper, "A Relation Between the Active Input Impedance and the Active Element Pattern of a Phased Array," this equation provides the embedded pattern of the mth antenna. While I believe I have correctly implemented this function, the results are not as expected. If anyone has experience with similar calculations, I would appreciate any insights or feedback on why there is a discrepancy between complexEmbPattern and complexEmbPattern_.
The conversion from phi/ theta to elevation/azimuth has been done according to Matlab’s: Antenna Toolbox Coordinate System – MATLAB & Simulink (mathworks.com)
Thank you in advance for your assistance!
Physical Constants:
freq = 30e9;
c = physconst(‘lightspeed’);
lambda = c/freq;
wn = 2*pi/lambda;
azimuth = -180:5:180;
elevation = -90:5:90;
Isolated Element:
element = dipole;
element.Length = 0.47*lambda;
element.Width = cylinder2strip(0.191e-3);
figure;
show(element);
isoEfieldPattern = pattern(element, freq, azimuth, elevation, …
‘Type’, ‘efield’);
isoPhasePattern = pattern(element, freq, azimuth, elevation, …
‘Type’, ‘phase’, …
‘Polarization’, ‘V’);
complexIsoPattern = isoEfieldPattern.*exp(1j*deg2rad(isoPhasePattern));
Embedded Element Pattern:
N = 3;
M = 3;
K = M*N;
a = 0.5*lambda;
b = 0.5*lambda;
array = rectangularArray;
array.Element = element;
array.Element.Tilt = 90;
array.Element.TiltAxis = ‘Y’;
array.Size = [N M];
array.ColumnSpacing = a;
array.RowSpacing = b;
array.Tilt = 90;
array.TiltAxis = ‘Y’;
figure;
show(array);
ElemIndex = (prod(array.Size) – 1)/2 + 1;
Zinf = 76 + 1i*31;
embEfieldPattern = pattern(array, freq, azimuth, elevation, …
‘ElementNumber’, ElemIndex, …
‘Termination’, real(Zinf), …
‘Type’, ‘efield’);
embPhasePattern = pattern(array, freq, azimuth, elevation, …
‘ElementNumber’, ElemIndex, …
‘Termination’, real(Zinf), …
‘Type’, ‘phase’, …
‘Polarization’, ‘V’);
complexEmbPattern = embEfieldPattern.*exp(1j*deg2rad(embPhasePattern));
Sparam = sparameters(array, freq, real(Zinf)).Parameters;
complexEmbPattern_ = ones(size(elevation,2),size(azimuth,2));
m = ElemIndex;
for az = 1:length(azimuth)
for el = 1:length(elevation)
u = wn*a*cosd(elevation(el))*sind(azimuth(az));
v = wn*b*sind(elevation(el));
i_m = mod(m – 1, M) + 1;
j_m = floor((m – 1)/M) + 1;
sum = 0;
for n = 1:K
i_n = mod(n – 1, M) + 1;
j_n = floor((n – 1)/M) + 1;
sum = sum + Sparam(n, m)*exp(1i*((i_n – 1)*u + (j_n – 1)*v));
end
complexEmbPattern_(el, az) = complexIsoPattern(el, az)*(exp(1i*((i_m – 1)*u + (j_m – 1)*v)) + sum);
end
endMy objective is to calculate the active element pattern of the central element in a rectangular array. According to Eq. (17) in David M. Pozar’s paper, "A Relation Between the Active Input Impedance and the Active Element Pattern of a Phased Array," this equation provides the embedded pattern of the mth antenna. While I believe I have correctly implemented this function, the results are not as expected. If anyone has experience with similar calculations, I would appreciate any insights or feedback on why there is a discrepancy between complexEmbPattern and complexEmbPattern_.
The conversion from phi/ theta to elevation/azimuth has been done according to Matlab’s: Antenna Toolbox Coordinate System – MATLAB & Simulink (mathworks.com)
Thank you in advance for your assistance!
Physical Constants:
freq = 30e9;
c = physconst(‘lightspeed’);
lambda = c/freq;
wn = 2*pi/lambda;
azimuth = -180:5:180;
elevation = -90:5:90;
Isolated Element:
element = dipole;
element.Length = 0.47*lambda;
element.Width = cylinder2strip(0.191e-3);
figure;
show(element);
isoEfieldPattern = pattern(element, freq, azimuth, elevation, …
‘Type’, ‘efield’);
isoPhasePattern = pattern(element, freq, azimuth, elevation, …
‘Type’, ‘phase’, …
‘Polarization’, ‘V’);
complexIsoPattern = isoEfieldPattern.*exp(1j*deg2rad(isoPhasePattern));
Embedded Element Pattern:
N = 3;
M = 3;
K = M*N;
a = 0.5*lambda;
b = 0.5*lambda;
array = rectangularArray;
array.Element = element;
array.Element.Tilt = 90;
array.Element.TiltAxis = ‘Y’;
array.Size = [N M];
array.ColumnSpacing = a;
array.RowSpacing = b;
array.Tilt = 90;
array.TiltAxis = ‘Y’;
figure;
show(array);
ElemIndex = (prod(array.Size) – 1)/2 + 1;
Zinf = 76 + 1i*31;
embEfieldPattern = pattern(array, freq, azimuth, elevation, …
‘ElementNumber’, ElemIndex, …
‘Termination’, real(Zinf), …
‘Type’, ‘efield’);
embPhasePattern = pattern(array, freq, azimuth, elevation, …
‘ElementNumber’, ElemIndex, …
‘Termination’, real(Zinf), …
‘Type’, ‘phase’, …
‘Polarization’, ‘V’);
complexEmbPattern = embEfieldPattern.*exp(1j*deg2rad(embPhasePattern));
Sparam = sparameters(array, freq, real(Zinf)).Parameters;
complexEmbPattern_ = ones(size(elevation,2),size(azimuth,2));
m = ElemIndex;
for az = 1:length(azimuth)
for el = 1:length(elevation)
u = wn*a*cosd(elevation(el))*sind(azimuth(az));
v = wn*b*sind(elevation(el));
i_m = mod(m – 1, M) + 1;
j_m = floor((m – 1)/M) + 1;
sum = 0;
for n = 1:K
i_n = mod(n – 1, M) + 1;
j_n = floor((n – 1)/M) + 1;
sum = sum + Sparam(n, m)*exp(1i*((i_n – 1)*u + (j_n – 1)*v));
end
complexEmbPattern_(el, az) = complexIsoPattern(el, az)*(exp(1i*((i_m – 1)*u + (j_m – 1)*v)) + sum);
end
end My objective is to calculate the active element pattern of the central element in a rectangular array. According to Eq. (17) in David M. Pozar’s paper, "A Relation Between the Active Input Impedance and the Active Element Pattern of a Phased Array," this equation provides the embedded pattern of the mth antenna. While I believe I have correctly implemented this function, the results are not as expected. If anyone has experience with similar calculations, I would appreciate any insights or feedback on why there is a discrepancy between complexEmbPattern and complexEmbPattern_.
The conversion from phi/ theta to elevation/azimuth has been done according to Matlab’s: Antenna Toolbox Coordinate System – MATLAB & Simulink (mathworks.com)
Thank you in advance for your assistance!
Physical Constants:
freq = 30e9;
c = physconst(‘lightspeed’);
lambda = c/freq;
wn = 2*pi/lambda;
azimuth = -180:5:180;
elevation = -90:5:90;
Isolated Element:
element = dipole;
element.Length = 0.47*lambda;
element.Width = cylinder2strip(0.191e-3);
figure;
show(element);
isoEfieldPattern = pattern(element, freq, azimuth, elevation, …
‘Type’, ‘efield’);
isoPhasePattern = pattern(element, freq, azimuth, elevation, …
‘Type’, ‘phase’, …
‘Polarization’, ‘V’);
complexIsoPattern = isoEfieldPattern.*exp(1j*deg2rad(isoPhasePattern));
Embedded Element Pattern:
N = 3;
M = 3;
K = M*N;
a = 0.5*lambda;
b = 0.5*lambda;
array = rectangularArray;
array.Element = element;
array.Element.Tilt = 90;
array.Element.TiltAxis = ‘Y’;
array.Size = [N M];
array.ColumnSpacing = a;
array.RowSpacing = b;
array.Tilt = 90;
array.TiltAxis = ‘Y’;
figure;
show(array);
ElemIndex = (prod(array.Size) – 1)/2 + 1;
Zinf = 76 + 1i*31;
embEfieldPattern = pattern(array, freq, azimuth, elevation, …
‘ElementNumber’, ElemIndex, …
‘Termination’, real(Zinf), …
‘Type’, ‘efield’);
embPhasePattern = pattern(array, freq, azimuth, elevation, …
‘ElementNumber’, ElemIndex, …
‘Termination’, real(Zinf), …
‘Type’, ‘phase’, …
‘Polarization’, ‘V’);
complexEmbPattern = embEfieldPattern.*exp(1j*deg2rad(embPhasePattern));
Sparam = sparameters(array, freq, real(Zinf)).Parameters;
complexEmbPattern_ = ones(size(elevation,2),size(azimuth,2));
m = ElemIndex;
for az = 1:length(azimuth)
for el = 1:length(elevation)
u = wn*a*cosd(elevation(el))*sind(azimuth(az));
v = wn*b*sind(elevation(el));
i_m = mod(m – 1, M) + 1;
j_m = floor((m – 1)/M) + 1;
sum = 0;
for n = 1:K
i_n = mod(n – 1, M) + 1;
j_n = floor((n – 1)/M) + 1;
sum = sum + Sparam(n, m)*exp(1i*((i_n – 1)*u + (j_n – 1)*v));
end
complexEmbPattern_(el, az) = complexIsoPattern(el, az)*(exp(1i*((i_m – 1)*u + (j_m – 1)*v)) + sum);
end
end s-parameters, embedded element pattern, active element pattern, matlab MATLAB Answers — New Questions
Match analytical and simulation values of SER vs SNR curve.
% Parameters
M = 4; % MQAM order (e.g., 16-QAM)
N = 1e5; % Number of transmit symbols
% Define SNR range
SNR_dB_range = 0:10;
num_SNR_points = length(SNR_dB_range);
% Initialize SER array
SER_values = zeros(num_SNR_points, 1);
% Create MQAM constellation
constellation = createMQAM(M);
% Loop over each SNR value
for idx = 1:num_SNR_points
SNR_dB = SNR_dB_range(idx);
% Generate transmit symbols
transmitSymbols = generateSymbols(constellation, N);
% Transmit through AWGN channel
receivedSymbols = transmitSymbolsThroughAWGN(transmitSymbols, SNR_dB);
% Demodulate symbols
decodedSymbols = demodulateSymbols(receivedSymbols, constellation);
% Compute Symbol Error Rate
SER = computeSER(transmitSymbols, decodedSymbols);
% Store SER value
SER_values(idx) = SER;
% Compute Theoretical SER
SER_theoretical = computeTheoreticalSER(M, SNR_dB_range);
SER_theoretical_values = SER_theoretical;
end
% Plot SER vs SNR
figure;
semilogy(SNR_dB_range, SER_values, ‘o-‘, ‘DisplayName’, ‘Simulated SER’);
hold on;
semilogy(SNR_dB_range, SER_theoretical_values, ‘r–‘, ‘DisplayName’, ‘Theoretical SER’);
xlabel(‘SNR (dB)’);
ylabel(‘Symbol Error Rate (SER)’);
title(‘SER vs. SNR for MQAM’);
legend;
grid on;
function constellation = createMQAM(M)
% Create an MQAM constellation manually
% M: Number of symbols (e.g., 16, 64, etc.)
% Check that M is a perfect square
k = sqrt(M);
if mod(k,1) ~= 0
error(‘M must be a perfect square’);
end
% Generate constellation points
k = round(k); % Number of points per side
[X, Y] = meshgrid(linspace(-k+1, k-1, k), linspace(-k+1, k-1, k));
constellation = X(:) + 1i*Y(:);
end
function symbols = generateSymbols(constellation, N)
% Generate N random transmit symbols
% constellation: The MQAM constellation points
% N: Number of symbols to generate
numPoints = length(constellation);
indices = randi([1 numPoints], [N, 1]); % Randomly choose indices
symbols = constellation(indices); % Select symbols from the constellation
end
function received = transmitSymbolsThroughAWGN(symbols, SNR_dB)
% Transmit symbols through a SISO AWGN channel
% symbols: Transmit symbols
% SNR_dB: Signal-to-noise ratio in dB
% Convert SNR from dB to linear scale
SNR_linear = 10^(SNR_dB / 10);
% Calculate noise variance
noise_variance = 1 / SNR_linear;
% Generate noise
noise = sqrt(noise_variance / 2) * (randn(size(symbols)) + 1i*randn(size(symbols)));
% Received symbols
received = symbols + noise;
end
function decodedSymbols = demodulateSymbols(received, constellation)
% Demodulate symbols using minimum distance decoding
% received: Received symbols
% constellation: MQAM constellation points
numSymbols = length(received);
numPoints = length(constellation);
% Initialize decoded symbols
decodedSymbols = zeros(size(received));
for i = 1:numSymbols
% Compute distances to all constellation points
distances = abs(received(i) – constellation).^2;
% Find the closest constellation point
[~, idx] = min(distances);
decodedSymbols(i) = constellation(idx);
end
end
function SER = computeSER(originalSymbols, decodedSymbols)
% Compute symbol error rate
% originalSymbols: Transmit symbols
% decodedSymbols: Received and decoded symbols
numErrors = sum(originalSymbols ~= decodedSymbols);
totalSymbols = length(originalSymbols);
SER = numErrors / totalSymbols;
end
function SER_theoretical = computeTheoreticalSER(M, SNR_dB)
% Compute the theoretical SER for MQAM in AWGN
% M: Number of symbols (e.g., 16, 64, etc.)
% SNR_dB: SNR in dB
% Convert SNR from dB to linear scale
SNR_linear = 10.^(SNR_dB / 10);
% Compute theoretical SER
k = sqrt(M); % Number of points per side
if mod(k,1) ~= 0
error(‘M must be a perfect square’);
end
% Calculate SER using the Q-function
SER_theoretical = 4*(1-1./sqrt(M))*qfunc(sqrt(3./(M-1)*SNR_linear));
end
In the above code when I plot the SER v/s SNR and compare the simulation and analytical values don’t match. Can someone tell me what is the error in my code and how can I match the curves ?% Parameters
M = 4; % MQAM order (e.g., 16-QAM)
N = 1e5; % Number of transmit symbols
% Define SNR range
SNR_dB_range = 0:10;
num_SNR_points = length(SNR_dB_range);
% Initialize SER array
SER_values = zeros(num_SNR_points, 1);
% Create MQAM constellation
constellation = createMQAM(M);
% Loop over each SNR value
for idx = 1:num_SNR_points
SNR_dB = SNR_dB_range(idx);
% Generate transmit symbols
transmitSymbols = generateSymbols(constellation, N);
% Transmit through AWGN channel
receivedSymbols = transmitSymbolsThroughAWGN(transmitSymbols, SNR_dB);
% Demodulate symbols
decodedSymbols = demodulateSymbols(receivedSymbols, constellation);
% Compute Symbol Error Rate
SER = computeSER(transmitSymbols, decodedSymbols);
% Store SER value
SER_values(idx) = SER;
% Compute Theoretical SER
SER_theoretical = computeTheoreticalSER(M, SNR_dB_range);
SER_theoretical_values = SER_theoretical;
end
% Plot SER vs SNR
figure;
semilogy(SNR_dB_range, SER_values, ‘o-‘, ‘DisplayName’, ‘Simulated SER’);
hold on;
semilogy(SNR_dB_range, SER_theoretical_values, ‘r–‘, ‘DisplayName’, ‘Theoretical SER’);
xlabel(‘SNR (dB)’);
ylabel(‘Symbol Error Rate (SER)’);
title(‘SER vs. SNR for MQAM’);
legend;
grid on;
function constellation = createMQAM(M)
% Create an MQAM constellation manually
% M: Number of symbols (e.g., 16, 64, etc.)
% Check that M is a perfect square
k = sqrt(M);
if mod(k,1) ~= 0
error(‘M must be a perfect square’);
end
% Generate constellation points
k = round(k); % Number of points per side
[X, Y] = meshgrid(linspace(-k+1, k-1, k), linspace(-k+1, k-1, k));
constellation = X(:) + 1i*Y(:);
end
function symbols = generateSymbols(constellation, N)
% Generate N random transmit symbols
% constellation: The MQAM constellation points
% N: Number of symbols to generate
numPoints = length(constellation);
indices = randi([1 numPoints], [N, 1]); % Randomly choose indices
symbols = constellation(indices); % Select symbols from the constellation
end
function received = transmitSymbolsThroughAWGN(symbols, SNR_dB)
% Transmit symbols through a SISO AWGN channel
% symbols: Transmit symbols
% SNR_dB: Signal-to-noise ratio in dB
% Convert SNR from dB to linear scale
SNR_linear = 10^(SNR_dB / 10);
% Calculate noise variance
noise_variance = 1 / SNR_linear;
% Generate noise
noise = sqrt(noise_variance / 2) * (randn(size(symbols)) + 1i*randn(size(symbols)));
% Received symbols
received = symbols + noise;
end
function decodedSymbols = demodulateSymbols(received, constellation)
% Demodulate symbols using minimum distance decoding
% received: Received symbols
% constellation: MQAM constellation points
numSymbols = length(received);
numPoints = length(constellation);
% Initialize decoded symbols
decodedSymbols = zeros(size(received));
for i = 1:numSymbols
% Compute distances to all constellation points
distances = abs(received(i) – constellation).^2;
% Find the closest constellation point
[~, idx] = min(distances);
decodedSymbols(i) = constellation(idx);
end
end
function SER = computeSER(originalSymbols, decodedSymbols)
% Compute symbol error rate
% originalSymbols: Transmit symbols
% decodedSymbols: Received and decoded symbols
numErrors = sum(originalSymbols ~= decodedSymbols);
totalSymbols = length(originalSymbols);
SER = numErrors / totalSymbols;
end
function SER_theoretical = computeTheoreticalSER(M, SNR_dB)
% Compute the theoretical SER for MQAM in AWGN
% M: Number of symbols (e.g., 16, 64, etc.)
% SNR_dB: SNR in dB
% Convert SNR from dB to linear scale
SNR_linear = 10.^(SNR_dB / 10);
% Compute theoretical SER
k = sqrt(M); % Number of points per side
if mod(k,1) ~= 0
error(‘M must be a perfect square’);
end
% Calculate SER using the Q-function
SER_theoretical = 4*(1-1./sqrt(M))*qfunc(sqrt(3./(M-1)*SNR_linear));
end
In the above code when I plot the SER v/s SNR and compare the simulation and analytical values don’t match. Can someone tell me what is the error in my code and how can I match the curves ? % Parameters
M = 4; % MQAM order (e.g., 16-QAM)
N = 1e5; % Number of transmit symbols
% Define SNR range
SNR_dB_range = 0:10;
num_SNR_points = length(SNR_dB_range);
% Initialize SER array
SER_values = zeros(num_SNR_points, 1);
% Create MQAM constellation
constellation = createMQAM(M);
% Loop over each SNR value
for idx = 1:num_SNR_points
SNR_dB = SNR_dB_range(idx);
% Generate transmit symbols
transmitSymbols = generateSymbols(constellation, N);
% Transmit through AWGN channel
receivedSymbols = transmitSymbolsThroughAWGN(transmitSymbols, SNR_dB);
% Demodulate symbols
decodedSymbols = demodulateSymbols(receivedSymbols, constellation);
% Compute Symbol Error Rate
SER = computeSER(transmitSymbols, decodedSymbols);
% Store SER value
SER_values(idx) = SER;
% Compute Theoretical SER
SER_theoretical = computeTheoreticalSER(M, SNR_dB_range);
SER_theoretical_values = SER_theoretical;
end
% Plot SER vs SNR
figure;
semilogy(SNR_dB_range, SER_values, ‘o-‘, ‘DisplayName’, ‘Simulated SER’);
hold on;
semilogy(SNR_dB_range, SER_theoretical_values, ‘r–‘, ‘DisplayName’, ‘Theoretical SER’);
xlabel(‘SNR (dB)’);
ylabel(‘Symbol Error Rate (SER)’);
title(‘SER vs. SNR for MQAM’);
legend;
grid on;
function constellation = createMQAM(M)
% Create an MQAM constellation manually
% M: Number of symbols (e.g., 16, 64, etc.)
% Check that M is a perfect square
k = sqrt(M);
if mod(k,1) ~= 0
error(‘M must be a perfect square’);
end
% Generate constellation points
k = round(k); % Number of points per side
[X, Y] = meshgrid(linspace(-k+1, k-1, k), linspace(-k+1, k-1, k));
constellation = X(:) + 1i*Y(:);
end
function symbols = generateSymbols(constellation, N)
% Generate N random transmit symbols
% constellation: The MQAM constellation points
% N: Number of symbols to generate
numPoints = length(constellation);
indices = randi([1 numPoints], [N, 1]); % Randomly choose indices
symbols = constellation(indices); % Select symbols from the constellation
end
function received = transmitSymbolsThroughAWGN(symbols, SNR_dB)
% Transmit symbols through a SISO AWGN channel
% symbols: Transmit symbols
% SNR_dB: Signal-to-noise ratio in dB
% Convert SNR from dB to linear scale
SNR_linear = 10^(SNR_dB / 10);
% Calculate noise variance
noise_variance = 1 / SNR_linear;
% Generate noise
noise = sqrt(noise_variance / 2) * (randn(size(symbols)) + 1i*randn(size(symbols)));
% Received symbols
received = symbols + noise;
end
function decodedSymbols = demodulateSymbols(received, constellation)
% Demodulate symbols using minimum distance decoding
% received: Received symbols
% constellation: MQAM constellation points
numSymbols = length(received);
numPoints = length(constellation);
% Initialize decoded symbols
decodedSymbols = zeros(size(received));
for i = 1:numSymbols
% Compute distances to all constellation points
distances = abs(received(i) – constellation).^2;
% Find the closest constellation point
[~, idx] = min(distances);
decodedSymbols(i) = constellation(idx);
end
end
function SER = computeSER(originalSymbols, decodedSymbols)
% Compute symbol error rate
% originalSymbols: Transmit symbols
% decodedSymbols: Received and decoded symbols
numErrors = sum(originalSymbols ~= decodedSymbols);
totalSymbols = length(originalSymbols);
SER = numErrors / totalSymbols;
end
function SER_theoretical = computeTheoreticalSER(M, SNR_dB)
% Compute the theoretical SER for MQAM in AWGN
% M: Number of symbols (e.g., 16, 64, etc.)
% SNR_dB: SNR in dB
% Convert SNR from dB to linear scale
SNR_linear = 10.^(SNR_dB / 10);
% Compute theoretical SER
k = sqrt(M); % Number of points per side
if mod(k,1) ~= 0
error(‘M must be a perfect square’);
end
% Calculate SER using the Q-function
SER_theoretical = 4*(1-1./sqrt(M))*qfunc(sqrt(3./(M-1)*SNR_linear));
end
In the above code when I plot the SER v/s SNR and compare the simulation and analytical values don’t match. Can someone tell me what is the error in my code and how can I match the curves ? communication, plot MATLAB Answers — New Questions
Create a 3D matrix from 2 2D matrix
Hi all,
I want to create a 3D matrix from three 2D matrix with different size.
The first matrix has the size of 360×560 which contain the information of grid for x.
The second matrix has the same size (360×560) and has the grid details of z.
The third matrix has the size of 100×560 and it contain the detail of grid for y.
To simply, the size of x, y and z are 560, 360 and 100.
I would like to create a 3D matrix with a size of 100x360x560 with grid information for the x, y and z direction.
May I know how to achieve that? I have attached a test.mat file that include x, y and z.
Thanks for your help!Hi all,
I want to create a 3D matrix from three 2D matrix with different size.
The first matrix has the size of 360×560 which contain the information of grid for x.
The second matrix has the same size (360×560) and has the grid details of z.
The third matrix has the size of 100×560 and it contain the detail of grid for y.
To simply, the size of x, y and z are 560, 360 and 100.
I would like to create a 3D matrix with a size of 100x360x560 with grid information for the x, y and z direction.
May I know how to achieve that? I have attached a test.mat file that include x, y and z.
Thanks for your help! Hi all,
I want to create a 3D matrix from three 2D matrix with different size.
The first matrix has the size of 360×560 which contain the information of grid for x.
The second matrix has the same size (360×560) and has the grid details of z.
The third matrix has the size of 100×560 and it contain the detail of grid for y.
To simply, the size of x, y and z are 560, 360 and 100.
I would like to create a 3D matrix with a size of 100x360x560 with grid information for the x, y and z direction.
May I know how to achieve that? I have attached a test.mat file that include x, y and z.
Thanks for your help! combine matrix MATLAB Answers — New Questions
Transmission-Reception using USRPs(B210s) with 5G NR Waveform Synchronization failing
Hi Everyone,
I am trying to create a 5G environment with USRPs, one as transmitter (PC1 with MATLAB) and other as receiver (PC2 with MATLAB) and they are connect with wired antennas.
I am generating the 5G NR waveform at transmitter side and sending it to receiver over connected antennas.
The waveform signal is sent for 10 seconds and receiver also receiving it for same duration with 1 second provided for transmission delay (through USRP’s USBs and wires). However, the synchronization is failing and the waveform I received are not the same which leads to inability to extract the sent waveform properties like PDCCH and PDSCH, data, etc. The datatypes of sent and received waveform are also different (Complex-double at transmitter, Complex-int16 at receiver).
I used the below link for designing the waveform for transmission.
https://in.mathworks.com/help/5g/ug/5g-nr-waveform-capture-and-analysis-using-software-defined-radio.html
Although there is no details about the receiver side in the above link.
If someone faced the similar issues, kindly suggest some help
If there exist any tutorial for this kind of work Please share?
ThanksHi Everyone,
I am trying to create a 5G environment with USRPs, one as transmitter (PC1 with MATLAB) and other as receiver (PC2 with MATLAB) and they are connect with wired antennas.
I am generating the 5G NR waveform at transmitter side and sending it to receiver over connected antennas.
The waveform signal is sent for 10 seconds and receiver also receiving it for same duration with 1 second provided for transmission delay (through USRP’s USBs and wires). However, the synchronization is failing and the waveform I received are not the same which leads to inability to extract the sent waveform properties like PDCCH and PDSCH, data, etc. The datatypes of sent and received waveform are also different (Complex-double at transmitter, Complex-int16 at receiver).
I used the below link for designing the waveform for transmission.
https://in.mathworks.com/help/5g/ug/5g-nr-waveform-capture-and-analysis-using-software-defined-radio.html
Although there is no details about the receiver side in the above link.
If someone faced the similar issues, kindly suggest some help
If there exist any tutorial for this kind of work Please share?
Thanks Hi Everyone,
I am trying to create a 5G environment with USRPs, one as transmitter (PC1 with MATLAB) and other as receiver (PC2 with MATLAB) and they are connect with wired antennas.
I am generating the 5G NR waveform at transmitter side and sending it to receiver over connected antennas.
The waveform signal is sent for 10 seconds and receiver also receiving it for same duration with 1 second provided for transmission delay (through USRP’s USBs and wires). However, the synchronization is failing and the waveform I received are not the same which leads to inability to extract the sent waveform properties like PDCCH and PDSCH, data, etc. The datatypes of sent and received waveform are also different (Complex-double at transmitter, Complex-int16 at receiver).
I used the below link for designing the waveform for transmission.
https://in.mathworks.com/help/5g/ug/5g-nr-waveform-capture-and-analysis-using-software-defined-radio.html
Although there is no details about the receiver side in the above link.
If someone faced the similar issues, kindly suggest some help
If there exist any tutorial for this kind of work Please share?
Thanks 5g nr waveform synchronization using usrps (b210s) MATLAB Answers — New Questions
Error en windows
Buenos diás,
Al inicia el ordenador y una vez iniciado cada media hora me sale este mensaje de error:
“Esta version de windows expirara el dia 15/09/2024. Debe mover a una nueva compilacion tan pronto como sea posible, Conectarse interner para obtener mas información.”
Agradeceria me indicasen como puedo eliminar dicho mensaje sin necesidad de reinstalar windows ya que tengo programas e información que no me gustaría perder. Mi versiónb de windows es original y dispondo del correspondiente codigo de activación. Aunque escriba dicho codigo de nuevo, me sigue dando el mismo error.
Gracias de antemano. Un cordial saludo
Buenos diás,Al inicia el ordenador y una vez iniciado cada media hora me sale este mensaje de error:”Esta version de windows expirara el dia 15/09/2024. Debe mover a una nueva compilacion tan pronto como sea posible, Conectarse interner para obtener mas información.”Agradeceria me indicasen como puedo eliminar dicho mensaje sin necesidad de reinstalar windows ya que tengo programas e información que no me gustaría perder. Mi versiónb de windows es original y dispondo del correspondiente codigo de activación. Aunque escriba dicho codigo de nuevo, me sigue dando el mismo error. Gracias de antemano. Un cordial saludo Read More
Request for Assistance with Microsoft 365 Security (customer development) in APAC’s specific countr
I have observed that many companies in my country (within the APAC region) are not fully aware of the capabilities offered by Microsoft 365 Security. As a result, they often opt for alternative products with fewer features, despite having already purchased Microsoft 365 licenses.
I would like to discuss this issue directly with the Microsoft customer development/training team to explore potential solutions and improve awareness about Microsoft 365 Security in our region.
is there anyone know that how to contact the appropriate team or provide any resources that could assist in addressing this concern?
I have observed that many companies in my country (within the APAC region) are not fully aware of the capabilities offered by Microsoft 365 Security. As a result, they often opt for alternative products with fewer features, despite having already purchased Microsoft 365 licenses.I would like to discuss this issue directly with the Microsoft customer development/training team to explore potential solutions and improve awareness about Microsoft 365 Security in our region.is there anyone know that how to contact the appropriate team or provide any resources that could assist in addressing this concern? Read More