Category: News
Detect IOT device twin report property and execute notification
Hello Community,
I am seeking for the help to achieve one functionality for my IOT device. I have crated one Azure IOT device under azure IOT hub.
Now on the device twin whenever my device report property get change( any property), It should send some event notification to the end user.
What is the best way to achieve this? I want to use Azure event grid but the template is not available in message routing you can see below.
If i use Event Hub then there is a risk to increase latency.
let me know if there is any other way to get this with lowest latency.
Thanks,
Bhavin Bhesaniya.
Hello Community,I am seeking for the help to achieve one functionality for my IOT device. I have crated one Azure IOT device under azure IOT hub. Now on the device twin whenever my device report property get change( any property), It should send some event notification to the end user.What is the best way to achieve this? I want to use Azure event grid but the template is not available in message routing you can see below. If i use Event Hub then there is a risk to increase latency. let me know if there is any other way to get this with lowest latency.Thanks,Bhavin Bhesaniya. Read More
God Mode Folder does not Pin Start Menu. The “Right-Click/Pin to Start Menu” option does not work
I am unable to Pin the GodMode Folder/App to the Start Menu in Windows 11.
I was able to successfully create the God Mode Folder, and it is currently on my desktop. However, space reasons I would like to add it to my Start Menu. But the normal option to ‘Pin to Start Menu’ in the Right-Click context menu does not work, (although the option to ‘Pin to Quick Access” does work).
The problem is, after clicking on the option to pin to start menu, there is nothing that indicates there is a problem, no error or anything, it just doesn’t do anything.
This is a screen shot the GM Shortcuts Folder on my Desktop:
This is a screen shot of the right-click context menu, with the option to add it to the Start Menu. (Note: the option to Pin Quick Access option works, but again, not the Pin to Start option):
This is my Start Menu screenshot – without the aforementioned GODMODE Shortcuts Folder:
Then after the above, I next tried to add it to the folder in the start menu C:ProgramDataMicrosoftWindowsStart MenuPrograms, but it did not work either. After right-clicking to make a short-cut, nothing happened:
After all that, I dragged that folder-shortcut-thingy on my desktop to the folder for the start menu via the File Explorer. But even with Admin permissions, it didn’t work either. Although the GODMODE thingy does reside now in the start menu folder now, it still does not show up on the Start Menu at all:
Anything you can do to advise would be greatly appreciated.
I am unable to Pin the GodMode Folder/App to the Start Menu in Windows 11. I was able to successfully create the God Mode Folder, and it is currently on my desktop. However, space reasons I would like to add it to my Start Menu. But the normal option to ‘Pin to Start Menu’ in the Right-Click context menu does not work, (although the option to ‘Pin to Quick Access” does work). The problem is, after clicking on the option to pin to start menu, there is nothing that indicates there is a problem, no error or anything, it just doesn’t do anything. This is a screen shot the GM Shortcuts Folder on my Desktop: This is a screen shot of the right-click context menu, with the option to add it to the Start Menu. (Note: the option to Pin Quick Access option works, but again, not the Pin to Start option): This is my Start Menu screenshot – without the aforementioned GODMODE Shortcuts Folder: Then after the above, I next tried to add it to the folder in the start menu C:ProgramDataMicrosoftWindowsStart MenuPrograms, but it did not work either. After right-clicking to make a short-cut, nothing happened: After all that, I dragged that folder-shortcut-thingy on my desktop to the folder for the start menu via the File Explorer. But even with Admin permissions, it didn’t work either. Although the GODMODE thingy does reside now in the start menu folder now, it still does not show up on the Start Menu at all: Anything you can do to advise would be greatly appreciated. Read More
Training Lab Playbook not triggered
Hello !
I am trying to run the playbook Get-GeoFromIPAndTagIncident as per the Modules of the Training Lab provided by Azure Sentinel. I am running this on an incident in the training lab “Sign-ins from IPs that attempt sign-ins to disabled accounts”. However, it does not trigger the playbook. I have included the screenshot. I am new to Sentinel and would really be glad if somebody could help.
Thanks in anticipation!
Hello ! I am trying to run the playbook Get-GeoFromIPAndTagIncident as per the Modules of the Training Lab provided by Azure Sentinel. I am running this on an incident in the training lab “Sign-ins from IPs that attempt sign-ins to disabled accounts”. However, it does not trigger the playbook. I have included the screenshot. I am new to Sentinel and would really be glad if somebody could help. Thanks in anticipation! Read More
Which sample time for simulating discrete Stepper Motor model (FOC Control)?
Is there an ideal sample time or rule of thumb for simulating discrete time motor models with field oriented control?
I’ve been working on a Motor Control Project, controlling a Stepper Motor with field oriented control. I oriented my model towards the motor control blockset. The Stepper Motor is a block build by myself (discrete time). My Current Control loop is working with 16kHz. My Motor is simulated every 160kHz, so 10 times faster, as the control loop (The factor of 10 is used in some motor control blockset examples). With the goal to get faster simulation results, i tried to reduce the sample time of my motor model. The strange thing is, that i’ve got different control behaviour. Here are some pictures of my motor speed response (speed is ramped) with different motor sample times.
Motor Sample Time: 160kHz (10 times faster than current control)
Motor Sample Time: 80kHz (5 times faster than current control)
Motor Sample Time: 32kHz (2 times faster than current control)Is there an ideal sample time or rule of thumb for simulating discrete time motor models with field oriented control?
I’ve been working on a Motor Control Project, controlling a Stepper Motor with field oriented control. I oriented my model towards the motor control blockset. The Stepper Motor is a block build by myself (discrete time). My Current Control loop is working with 16kHz. My Motor is simulated every 160kHz, so 10 times faster, as the control loop (The factor of 10 is used in some motor control blockset examples). With the goal to get faster simulation results, i tried to reduce the sample time of my motor model. The strange thing is, that i’ve got different control behaviour. Here are some pictures of my motor speed response (speed is ramped) with different motor sample times.
Motor Sample Time: 160kHz (10 times faster than current control)
Motor Sample Time: 80kHz (5 times faster than current control)
Motor Sample Time: 32kHz (2 times faster than current control) Is there an ideal sample time or rule of thumb for simulating discrete time motor models with field oriented control?
I’ve been working on a Motor Control Project, controlling a Stepper Motor with field oriented control. I oriented my model towards the motor control blockset. The Stepper Motor is a block build by myself (discrete time). My Current Control loop is working with 16kHz. My Motor is simulated every 160kHz, so 10 times faster, as the control loop (The factor of 10 is used in some motor control blockset examples). With the goal to get faster simulation results, i tried to reduce the sample time of my motor model. The strange thing is, that i’ve got different control behaviour. Here are some pictures of my motor speed response (speed is ramped) with different motor sample times.
Motor Sample Time: 160kHz (10 times faster than current control)
Motor Sample Time: 80kHz (5 times faster than current control)
Motor Sample Time: 32kHz (2 times faster than current control) electric_motor_control, field oriented control, motor control blockset, simulink, simulation, stepper motor MATLAB Answers — New Questions
How to Make the Ports and Internal Variables of a FMU Block, Visible or Invisible?
I am using Matlab 2023a to insert an FMU block into my Simulink model with the following two lines of code:
>> addpath(‘path/of/the/fmu/file’)
>> fmu_block = add_block(‘simulink_extras/FMU Import/FMU’, ‘MyModel/MyFMU’, ‘FMUName’, ‘fmu_file.fmu’);
The FMU block is successfully inserted into my model, and everything is currently working well. When I double-click on the FMU block, I can see options to enable or disable the visibility of each output port and internal variable:
Now, I’m wondering how I can use a Matlab script to control the visibility of output ports or variables. I’ve already attempted to retrieve port information using get_param(…), such as this:
port_name = get_param(‘Model/FMU/1’, ‘Name’);
But unfortunately, Matlab gives me this error:
Invalid Simulink object name: ‘Model/FMU/1’.
Caused by:
‘FMU’ is not a SubSystem block.
Therefore, the question remains: How can I retrieve or modify the visibility parameter of the ports and variables within an FMU block? I would appreciate any assistance anyone can provide.I am using Matlab 2023a to insert an FMU block into my Simulink model with the following two lines of code:
>> addpath(‘path/of/the/fmu/file’)
>> fmu_block = add_block(‘simulink_extras/FMU Import/FMU’, ‘MyModel/MyFMU’, ‘FMUName’, ‘fmu_file.fmu’);
The FMU block is successfully inserted into my model, and everything is currently working well. When I double-click on the FMU block, I can see options to enable or disable the visibility of each output port and internal variable:
Now, I’m wondering how I can use a Matlab script to control the visibility of output ports or variables. I’ve already attempted to retrieve port information using get_param(…), such as this:
port_name = get_param(‘Model/FMU/1’, ‘Name’);
But unfortunately, Matlab gives me this error:
Invalid Simulink object name: ‘Model/FMU/1’.
Caused by:
‘FMU’ is not a SubSystem block.
Therefore, the question remains: How can I retrieve or modify the visibility parameter of the ports and variables within an FMU block? I would appreciate any assistance anyone can provide. I am using Matlab 2023a to insert an FMU block into my Simulink model with the following two lines of code:
>> addpath(‘path/of/the/fmu/file’)
>> fmu_block = add_block(‘simulink_extras/FMU Import/FMU’, ‘MyModel/MyFMU’, ‘FMUName’, ‘fmu_file.fmu’);
The FMU block is successfully inserted into my model, and everything is currently working well. When I double-click on the FMU block, I can see options to enable or disable the visibility of each output port and internal variable:
Now, I’m wondering how I can use a Matlab script to control the visibility of output ports or variables. I’ve already attempted to retrieve port information using get_param(…), such as this:
port_name = get_param(‘Model/FMU/1’, ‘Name’);
But unfortunately, Matlab gives me this error:
Invalid Simulink object name: ‘Model/FMU/1’.
Caused by:
‘FMU’ is not a SubSystem block.
Therefore, the question remains: How can I retrieve or modify the visibility parameter of the ports and variables within an FMU block? I would appreciate any assistance anyone can provide. fmu, visibility, set_param MATLAB Answers — New Questions
VPN Gateway – BGP AS PATH – Steer which VPN tunnel traffic will flow form Azure to OnPrem
Can anyone confirm whether in the topology that Microsoft calls “Active-active VPN gateways” we can steer which VPN tunnel is utilized using AS PATH? Or is it by definition active/active, meaning we can’t avoid utilizing both tunnels simultaneously and probably we have to deal with asymetric routing?
MS article about different topologies:
https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-highlyavailable#activeactiveonprem
My findings:
Because the Azure gateway instances are in active-active configuration, the traffic from your Azure virtual network to your on-premises network will be routed through both tunnels simultaneously, even if your on-premises VPN device might favor one tunnel over the other.
However, according to the Microsoft FAQ about BGP:
Yes, Azure VPN gateway honors AS Path prepending to help make routing decisions when BGP is enabled. A shorter AS Path is preferred in BGP path selection.
Can anyone confirm whether in the topology that Microsoft calls “Active-active VPN gateways” we can steer which VPN tunnel is utilized using AS PATH? Or is it by definition active/active, meaning we can’t avoid utilizing both tunnels simultaneously and probably we have to deal with asymetric routing? MS article about different topologies:https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-highlyavailable#activeactiveonprem My findings:Because the Azure gateway instances are in active-active configuration, the traffic from your Azure virtual network to your on-premises network will be routed through both tunnels simultaneously, even if your on-premises VPN device might favor one tunnel over the other. However, according to the Microsoft FAQ about BGP:Yes, Azure VPN gateway honors AS Path prepending to help make routing decisions when BGP is enabled. A shorter AS Path is preferred in BGP path selection. Read More
macros in one click to some files
I learn writing of macroses. I know, that I can apply it to some files at one click. But I don’t know how to do it. Can anybody help me?
I learn writing of macroses. I know, that I can apply it to some files at one click. But I don’t know how to do it. Can anybody help me? Read More
Viva Engage Network Administrator
Hi,
Viva Engage Network Administrator is able to see Viva Network analytics but export option is not available. Can someone help on how to get export option enabled for this?
Regards
Amit
Hi, Viva Engage Network Administrator is able to see Viva Network analytics but export option is not available. Can someone help on how to get export option enabled for this? RegardsAmit Read More
how to turn off link sharing on android text messages
how to turn off link sharing on android text messages
how to turn off link sharing on android text messages Read More
Azure Update Manager to support CIS hardened images among other images
What’s coming in by end of July 2024: Azure Update Manager will add support for 35 CIS hardened images. This is the first time that Update Management product in Azure is supporting CIS hardened images. Apart from CIS hardened images, Azure Update Manager will also add support for 59 other images to unblock Automation Update Management migrations to Azure Update Manager.
What’s coming in September: After this release, another batch of 30 images will be added support for.
Please refer to the article below to check the details of which images will be supported.
Below 35 CIS images will be supported by Azure Update Manager by end of July 2024. Please note Publisher for all these images is center-for-internet-security-inc.
Offer
Plan
cis-windows-server
cis-windows-server2016-l1-gen1
cis-windows-server2019-l1-gen1
cis-windows-server2019-l1-gen2
cis-windows-server2019-l2-gen1
cis-windows-server2022-l1-gen2
cis-windows-server2022-l2-gen2
cis-windows-server2022-l1-gen1
cis-windows-server-2022-l1
cis-windows-server-2022-l1
cis-windows-server-2022-l1-gen2
cis-windows-server-2022-l2
cis-windows-server-2022-l2
cis-windows-server-2022-l2-gen2
cis-windows-server-2019-v1-0-0-l1
cis-ws2019-l1
cis-windows-server-2019-v1-0-0-l2
cis-ws2019-l2
cis-windows-server-2016-v1-0-0-l1
cis–l1
cis-windows-server-2016-v1-0-0-l2
cis-ws2016-l2
cis-windows-server-2012-r2-v2-2-1-l2
cis-ws2012-r2-l2
cis-rhel9-l1
cis-rhel9-l1
cis-rhel9-l1-gen2
cis-rhel-8-l1
cis-rhel-8-l2
cis-rhel8-l2
cis-rhel-7-l2
cis-rhel7-l2
cis-rhel
cis-redhat8-l1-gen1
cis-redhat8-l2-gen1
cis-redhat7-l1-gen1
cis-redhat9-l1-gen2
cis-redhat9-l1-gen1
cis-ubuntu-linux-2204-l1
cis-ubuntu-linux-2204-l1
cis-ubuntu-linux-2204-l1-gen2
cis-ubuntu-linux-2004-l1
cis-ubuntu2004-l1
cis-ubuntu-linux-1804-l1
cis-ubuntu1804-l1
cis-ubuntu
cis-ubuntu1804-l1
cis-ubuntulinux2004-l1-gen1
cis-ubuntulinux2204-l1-gen1
cis-ubuntulinux2204-l1-gen2
cis-oracle-linux-8-l1
cis-oracle8-l1
Apart from CIS hardened images, below are the other 59 images which will be supported by Azure Update Manager by end of July 2024:
Publisher
Offer
Plan
almalinux
almalinux-x86_64
8_7-gen2
belindaczsro1588885355210
belvmsrv01
belvmsrv003
cloudera
cloudera-centos-os
7_5
cloud-infrastructure-services
rds-farm-2019
rds-farm-2019
cloud-infrastructure-services
ad-dc-2019
ad-dc-2019
cloud-infrastructure-services
sftp-2016
sftp-2016
cloud-infrastructure-services
ad-dc-2016
ad-dc-2016
cloud-infrastructure-services
hpc2019-windows-server-2019
hpc2019-windows-server-2019
cloud-infrastructure-services
dns-ubuntu-2004
dns-ubuntu-2004
cloud-infrastructure-services
servercore-2019
servercore-2019
cloud-infrastructure-services
ad-dc-2022
ad-dc-2022
cloud-infrastructure-services
squid-ubuntu-2004
squid-ubuntu-2004
cognosys
sql-server-2016-sp2-std-win2016-debug-utilities
sql-server-2016-sp2-std-win2016-debug-utilities
esri
arcgis-enterprise
byol-1091
byol-111
byol-108
byol-1081
byol-109
esri
arcgis-enterprise-107
byol-1071
esri
arcgis-enterprise-106
byol-1061
esri
pro-byol
pro-byol-29
filemagellc
filemage-gateway-vm-win
filemage-gateway-vm-win-002
filemage-gateway-vm-win-001
github
github-enterprise
github-enterprise
matillion
matillion
matillion-etl-for-snowflake
microsoft-ads
windows-data-science-vm
windows2016
windows2016byol
microsoft-dsvm
ubuntu-1804
1804-gen2
netapp
netapp-oncommand-cloud-manager
occm-byol
nginxinc
nginx-plus-ent-v1
nginx-plus-ent-centos7
ntegralinc1586961136942
ntg_oracle_8_7
ntg_oracle_8_7
procomputers
almalinux-8-7
almalinux-8-7
procomputers
rhel-8-2
rhel-8-2
RedHat
rhel
8_9
redhat
rhel-byos
rhel-lvm79
rhel-lvm84-gen2
rhel-lvm85-gen2
rhel-lvm82-gen2
rhel-lvm86-gen2
rhel-lvm83
rhel-lvm84
rhel-lvm79-gen2
rhel-lvm87-gen2
rhel-raw76
rhel-lvm86
rhel-lvm8
rhel
8.1
redhat
rhel-sap
7.4
redhat
rhel-sap
7.7
redhat
rhel
89-gen2
southrivertech1586314123192
tn-ent-payg
Tnentpayg
southrivertech1586314123192
tn-sftp-payg
Tnsftppayg
suse
sles-sap-15-sp2-byos
gen2
suse
sles-15-sp5
gen2
talend
talend_re_image
tlnd_re
thorntechnologiesllc
sftpgateway
Sftpgateway
veeam
office365backup
veeamoffice365backup
veeam
veeam-backup-replication
veeam-backup-replication-v11
zscaler
zscaler-private-access
zpa-con-azure
Below images will be supported in September:
Publisher
Offer
Plan
aod
win2019azpolicy
win2019azpolicy
belindaczsro1588885355210
belvmsrv03
belvmsrv001
center-for-internet-security-inc
cis-rhel-7-v2-2-0-l1
cis-rhel7-l1
center-for-internet-security-inc
cis-rhel-7-stig
cis-rhel-7-stig
center-for-internet-security-inc
cis-win-2016-stig
cis-win-2016-stig
center-for-internet-security-inc
cis-windows-server-2012-r2-v2-2-1-l1
cis-ws2012-r2-l1
cloudrichness
rockey_linux_image
rockylinux86
Credativ
Debian
8
microsoftdynamicsnav
dynamicsnav
2017
microsoftwindowsserver
windowsserver-hub
2012-r2-datacenter-hub
2016-datacenter-hub
MicrosoftWindowsServer
WindowsServer-HUB
2016-Datacenter-HUB
ntegralinc1586961136942
ntg_cbl_mariner_2
ntg_cbl_mariner_2_gen2
openvpn
openvpnas
access_server_byol
rapid7
nexpose-scan-engine
nexpose-scan-engine
rapid7
rapid7-vm-console
rapid7-vm-console
suse
sles
12-sp3
suse
sles-15-sp1-basic
gen1
suse
sles-15-sp2-basic
gen1
suse
sles-15-sp3-basic
gen1
gen2
suse
sles-15-sp4-basic
gen2
suse
sles-sap
12-sp3
15
gen2-15
suse
sles-sap-byos
15
suse
SLES-SAP-BYOS
15
suse
sles-sap-15-sp1-byos
gen1
Tenable
tenablecorenessus
tenablecorenessusbyol
Microsoft Tech Community – Latest Blogs –Read More
Folders not found when started newly installed MATLAB R2024a
After update to MATLAB R2024a, I enountered some error messages in the command window saying some folders or files not existed, please refer to attached image. I can’t do anything now. Please advise how I can resolve it.
Thank you very much!After update to MATLAB R2024a, I enountered some error messages in the command window saying some folders or files not existed, please refer to attached image. I can’t do anything now. Please advise how I can resolve it.
Thank you very much! After update to MATLAB R2024a, I enountered some error messages in the command window saying some folders or files not existed, please refer to attached image. I can’t do anything now. Please advise how I can resolve it.
Thank you very much! r2024a, installation MATLAB Answers — New Questions
Debug mode for RL agent networks
Is there any way to enter debug mode, to see what is happening inside the RL agent nets while training is running?
Some of my layers output NaN and I would like to know which one. I would also like to monitor to outputs of each layer.
Thanks in advance!
NicolasIs there any way to enter debug mode, to see what is happening inside the RL agent nets while training is running?
Some of my layers output NaN and I would like to know which one. I would also like to monitor to outputs of each layer.
Thanks in advance!
Nicolas Is there any way to enter debug mode, to see what is happening inside the RL agent nets while training is running?
Some of my layers output NaN and I would like to know which one. I would also like to monitor to outputs of each layer.
Thanks in advance!
Nicolas reinforcement learning, matlab, deep learning, debug mode MATLAB Answers — New Questions
Combining datasets using Geo data/ How to retain data values using ‘imfuse’
Hi,
I am trying to imfuse these two datasets Data1 & Data2 (data type Double) with R1 and R2 (R1 and R2 are spatial coordinates data & pixel sizes etc.). However, the end product ‘AB’ is changing the data type to uint 8, and this change of data type is also affecting the values in dataset (changed). I have checked the documentation but the output of ‘Imfuse’ is ‘uint 8’.
I need some advise, How can I embed these two datasets using geo data, which dont alter its data values. If there is some other function or technique to do it. Kindly advise.
AB=imfuse(data2,R2,data1,R1,’blend’,’Scaling’,’joint’);
figure;
imshow(AB);
I have attached the files.Hi,
I am trying to imfuse these two datasets Data1 & Data2 (data type Double) with R1 and R2 (R1 and R2 are spatial coordinates data & pixel sizes etc.). However, the end product ‘AB’ is changing the data type to uint 8, and this change of data type is also affecting the values in dataset (changed). I have checked the documentation but the output of ‘Imfuse’ is ‘uint 8’.
I need some advise, How can I embed these two datasets using geo data, which dont alter its data values. If there is some other function or technique to do it. Kindly advise.
AB=imfuse(data2,R2,data1,R1,’blend’,’Scaling’,’joint’);
figure;
imshow(AB);
I have attached the files. Hi,
I am trying to imfuse these two datasets Data1 & Data2 (data type Double) with R1 and R2 (R1 and R2 are spatial coordinates data & pixel sizes etc.). However, the end product ‘AB’ is changing the data type to uint 8, and this change of data type is also affecting the values in dataset (changed). I have checked the documentation but the output of ‘Imfuse’ is ‘uint 8’.
I need some advise, How can I embed these two datasets using geo data, which dont alter its data values. If there is some other function or technique to do it. Kindly advise.
AB=imfuse(data2,R2,data1,R1,’blend’,’Scaling’,’joint’);
figure;
imshow(AB);
I have attached the files. image processing, digital image processing, data MATLAB Answers — New Questions
Speeding up numerical gradient of tensor with FFTs
I have a gradient problem that involves the following function: adding a phase to each column in a matrix and computing the FFT of each column, and aggregating all FFTs into a new matrix.
My brute-force numerical gradient is adding a small phase to each column, iteratively, and then computing the loss by comparing it with some known matrix. currX is the current guess of phases, Ts2pHH is the matrix to whose columns these phases are added, and the function is computing by taking a sum along 2 dimensions of the intensity and then adding it up.
I want to know if this can be done more efficiently, because for my matrix size (~1000×1000) this takes around 2 minutes, which is very slow.
My code is shown below:
for k = 1:length(currX)
currX_perturbed = currX;
currX_perturbed(k) = currX_perturbed(k) + epsilon;
phases_perturbed = exp(1i * [0, currX_perturbed]);
Tcorr_perturbed = Ts2pHH .* phases_perturbed;
TcorrFFT_perturbed = fftshift(fft(fft(fft(fft(reshape(Tcorr_perturbed, [Npx, Npx, Nin, Nin]), [], 3), [], 4), [], 1), [], 2));
inputFreq_perturbed = squeeze(sum(sum(abs(TcorrFFT_perturbed).^2, 1), 2));
gradient(k) = gradient(k) + (-sum(inputFreq_perturbed .* support, ‘all’) – loss) / epsilon;
endI have a gradient problem that involves the following function: adding a phase to each column in a matrix and computing the FFT of each column, and aggregating all FFTs into a new matrix.
My brute-force numerical gradient is adding a small phase to each column, iteratively, and then computing the loss by comparing it with some known matrix. currX is the current guess of phases, Ts2pHH is the matrix to whose columns these phases are added, and the function is computing by taking a sum along 2 dimensions of the intensity and then adding it up.
I want to know if this can be done more efficiently, because for my matrix size (~1000×1000) this takes around 2 minutes, which is very slow.
My code is shown below:
for k = 1:length(currX)
currX_perturbed = currX;
currX_perturbed(k) = currX_perturbed(k) + epsilon;
phases_perturbed = exp(1i * [0, currX_perturbed]);
Tcorr_perturbed = Ts2pHH .* phases_perturbed;
TcorrFFT_perturbed = fftshift(fft(fft(fft(fft(reshape(Tcorr_perturbed, [Npx, Npx, Nin, Nin]), [], 3), [], 4), [], 1), [], 2));
inputFreq_perturbed = squeeze(sum(sum(abs(TcorrFFT_perturbed).^2, 1), 2));
gradient(k) = gradient(k) + (-sum(inputFreq_perturbed .* support, ‘all’) – loss) / epsilon;
end I have a gradient problem that involves the following function: adding a phase to each column in a matrix and computing the FFT of each column, and aggregating all FFTs into a new matrix.
My brute-force numerical gradient is adding a small phase to each column, iteratively, and then computing the loss by comparing it with some known matrix. currX is the current guess of phases, Ts2pHH is the matrix to whose columns these phases are added, and the function is computing by taking a sum along 2 dimensions of the intensity and then adding it up.
I want to know if this can be done more efficiently, because for my matrix size (~1000×1000) this takes around 2 minutes, which is very slow.
My code is shown below:
for k = 1:length(currX)
currX_perturbed = currX;
currX_perturbed(k) = currX_perturbed(k) + epsilon;
phases_perturbed = exp(1i * [0, currX_perturbed]);
Tcorr_perturbed = Ts2pHH .* phases_perturbed;
TcorrFFT_perturbed = fftshift(fft(fft(fft(fft(reshape(Tcorr_perturbed, [Npx, Npx, Nin, Nin]), [], 3), [], 4), [], 1), [], 2));
inputFreq_perturbed = squeeze(sum(sum(abs(TcorrFFT_perturbed).^2, 1), 2));
gradient(k) = gradient(k) + (-sum(inputFreq_perturbed .* support, ‘all’) – loss) / epsilon;
end gradient, optimization, speed, fft, for loop, matrix, loop, iteration MATLAB Answers — New Questions
MS Project Edition texte rapide ?!
Hello les pro,
Besoin d’un tips sous MS Project pour éditer l’ensemble ( ou selection partiel) du projet pour insérer en début de ligne un texte de référence propre au projet.
Exemple un niveau supérieur se répétant en début de texte de toutes les sous lignes / sous niveau
Ex : Modèle 42
Modèle 42 – Voiture
Modèle 42 – Porte
Modèle 42 – Vitre
Merci pour l’info
A+
Olimsproject
Hello les pro, Besoin d’un tips sous MS Project pour éditer l’ensemble ( ou selection partiel) du projet pour insérer en début de ligne un texte de référence propre au projet. Exemple un niveau supérieur se répétant en début de texte de toutes les sous lignes / sous niveau Ex : Modèle 42 Modèle 42 – Voiture Modèle 42 – Porte Modèle 42 – Vitre Merci pour l’info A+Olimsproject Read More
Complicated Conditional Formatting?
Hi Everyone,
I was wondering if I can get some help with an issue I’m having. I have a column with a numerical value and a Yes/No column. If the numerical value is 3 or greater and a No is entered into the column, I would like it to change colors. I’m having difficulties with the formula. Can someone please help?
Hi Everyone, I was wondering if I can get some help with an issue I’m having. I have a column with a numerical value and a Yes/No column. If the numerical value is 3 or greater and a No is entered into the column, I would like it to change colors. I’m having difficulties with the formula. Can someone please help? Read More
how do i recover my old hotmail account? (i think Microsoft deleted it)
Hi, i made a Hotmail account a while ago sometime between 2016 and 2018. It was made under the name of “ellieflows08 @ hotmail.com” (I put spaces in hopes it wouldn’t remove the email address this time), and every time I use a website to see if it exists the websites say I do, but when I go to recover it Microsoft says it doesn’t exist. I will admit i was inactive on that account after a year or two of using it but at one point I got logged out of it, forgot the password and didn’t know recovery existed, does Microsoft delete old inactive Hotmail accounts? And if so is there a way I could get it back?
Hi, i made a Hotmail account a while ago sometime between 2016 and 2018. It was made under the name of “ellieflows08 @ hotmail.com” (I put spaces in hopes it wouldn’t remove the email address this time), and every time I use a website to see if it exists the websites say I do, but when I go to recover it Microsoft says it doesn’t exist. I will admit i was inactive on that account after a year or two of using it but at one point I got logged out of it, forgot the password and didn’t know recovery existed, does Microsoft delete old inactive Hotmail accounts? And if so is there a way I could get it back? Read More
More profile icons
Hi,
I am using Edge Profiles for different customer logins. This means when we work for a customer we are using a separate edge profile, where we login with a separate user which is registered in the customers tenant.
Every profile gets it’s own icon so I can quickly identify in which tenant this browser is registered in.
Since we have many customers I used up the icons multiple times – so how about:
1. The ability to upload custom icons (the preferred way).
2. Edge providing more profile images – currently there are twenty different profile images.
What do you think?
Hi,I am using Edge Profiles for different customer logins. This means when we work for a customer we are using a separate edge profile, where we login with a separate user which is registered in the customers tenant.Every profile gets it’s own icon so I can quickly identify in which tenant this browser is registered in.Since we have many customers I used up the icons multiple times – so how about: 1. The ability to upload custom icons (the preferred way).2. Edge providing more profile images – currently there are twenty different profile images. What do you think? Read More
How to fix QuickBook direct deposit not working issue after update?
I have been trying to process pay-roll through Quick-Books, but the direct deposit feature isn’t working. Employees aren’t receiving their payments on time, causing a lot of frustration. I’ve double-checked the account details and everything seems correct. Can you provide a step-by-step solution to fix this issue?
I have been trying to process pay-roll through Quick-Books, but the direct deposit feature isn’t working. Employees aren’t receiving their payments on time, causing a lot of frustration. I’ve double-checked the account details and everything seems correct. Can you provide a step-by-step solution to fix this issue? Read More
How to delete files remotely on Intune devices
Hi All,
Please help me to delete below files at below location remotely on all intune devices.
%appdata%Microsoftusertemplateswordtemplate1.dotx
%appdata%Microsoftusertemplateswordtemplate1.dotm
Thank you
Hi All, Please help me to delete below files at below location remotely on all intune devices.%appdata%Microsoftusertemplateswordtemplate1.dotx%appdata%Microsoftusertemplateswordtemplate1.dotmThank you Read More