Category: News
I need a program with a triangular Bezier patch in matlab
I need a program with a triangular Bezier patch in matlabI need a program with a triangular Bezier patch in matlab I need a program with a triangular Bezier patch in matlab bezier -patch -triangular-surf MATLAB Answers — New Questions
TI C2000 Microcontroller Slow IPC-Transmission of an int32 with just 1kHz
I tried to send an int32 via IPC transmit from the C28x CPU to the ARM M4-Cortex every 100 microseconds (10kHz clock-frequency) by using an EPWM-block and an EPWM-Hardware-Interrupt. Unfortunately, the IPC transmission only works fine until clock-frequencies of 1kHz (every 1 milliseconds). For higher clock-frequencys, the IPC-tranmission shuts down. Even by using the IPC-Receive on polling instead of using an IPC-Hardware-Interrupt, frequencies higher than 1kHz cannot be reached. In my understanding, the transmission should only be limited by the reading&writing speed of the Message-RAM (which must be at least 1MHz for an int32).
Could somebody assist how to increase the performance of the IPC transmission? Thanks in advance!
Kind regards!I tried to send an int32 via IPC transmit from the C28x CPU to the ARM M4-Cortex every 100 microseconds (10kHz clock-frequency) by using an EPWM-block and an EPWM-Hardware-Interrupt. Unfortunately, the IPC transmission only works fine until clock-frequencies of 1kHz (every 1 milliseconds). For higher clock-frequencys, the IPC-tranmission shuts down. Even by using the IPC-Receive on polling instead of using an IPC-Hardware-Interrupt, frequencies higher than 1kHz cannot be reached. In my understanding, the transmission should only be limited by the reading&writing speed of the Message-RAM (which must be at least 1MHz for an int32).
Could somebody assist how to increase the performance of the IPC transmission? Thanks in advance!
Kind regards! I tried to send an int32 via IPC transmit from the C28x CPU to the ARM M4-Cortex every 100 microseconds (10kHz clock-frequency) by using an EPWM-block and an EPWM-Hardware-Interrupt. Unfortunately, the IPC transmission only works fine until clock-frequencies of 1kHz (every 1 milliseconds). For higher clock-frequencys, the IPC-tranmission shuts down. Even by using the IPC-Receive on polling instead of using an IPC-Hardware-Interrupt, frequencies higher than 1kHz cannot be reached. In my understanding, the transmission should only be limited by the reading&writing speed of the Message-RAM (which must be at least 1MHz for an int32).
Could somebody assist how to increase the performance of the IPC transmission? Thanks in advance!
Kind regards! c2000, ipc, ipc-transmit, ipc-receive MATLAB Answers — New Questions
How do I resolve this error “Can’t load C:ProgramFilesMATLAB2024abinwin64l……: while trying to load SIMULINK
Hello, while attempting to use SIMULINK in MATLAB 2024a for my training, the above message was seen. Any help?Hello, while attempting to use SIMULINK in MATLAB 2024a for my training, the above message was seen. Any help? Hello, while attempting to use SIMULINK in MATLAB 2024a for my training, the above message was seen. Any help? simulink, matlab MATLAB Answers — New Questions
Get a list from multiple cells returned into a single cell based on contents of two other cells
Hello there, I hope someone is able to help. I have a problem I am trying to solve involving two sheets.
I have attached screenshots, which I hope will be useful in understanding what I am trying to achieve here.
Take a look at the formula in H7 on the Void Tracker. It’s nearly there, but it isn’t quite working. What I’m trying to get it to do is to look at column B in the property list and find all the properties listed as Void for all the cells in Column D with the address “99 The Avenue” in column D and return all the relevant rooms in column E. So, what I want it to do, is return me a list of “Room 2 Room 3 Room 4” in Cell H7 of the void tracker, as those rooms are listed as Void in column B under that address. It should not return Room 1 as that is not listed as Void.
However, it isn’t doing what I want, as you can see. The cell value that it is retuning is E14 of the Property list, but it’s just retuning that cell value four times.
If anyone can help, I’d greatly appreciate it.
Many thanks.
Hello there, I hope someone is able to help. I have a problem I am trying to solve involving two sheets.I have attached screenshots, which I hope will be useful in understanding what I am trying to achieve here. Take a look at the formula in H7 on the Void Tracker. It’s nearly there, but it isn’t quite working. What I’m trying to get it to do is to look at column B in the property list and find all the properties listed as Void for all the cells in Column D with the address “99 The Avenue” in column D and return all the relevant rooms in column E. So, what I want it to do, is return me a list of “Room 2 Room 3 Room 4” in Cell H7 of the void tracker, as those rooms are listed as Void in column B under that address. It should not return Room 1 as that is not listed as Void. However, it isn’t doing what I want, as you can see. The cell value that it is retuning is E14 of the Property list, but it’s just retuning that cell value four times.If anyone can help, I’d greatly appreciate it. Many thanks. Read More
Expired to show if date or training has passed
Hi
I’m creating a training tracker as a SharePoint list. Within the list I have a date column for when a course is going to require a refresher, which is a calculated column based of Date of Training + Refresher period.
If I set up a choice column with the following options – In Date, Expiring and Expired, how can I achieve the following:
When a refresher date is 30 days away the status changes to ‘Expiring’
When a refresher date has passed the status changes to ‘Expired’
Thanks
Darren
Hi I’m creating a training tracker as a SharePoint list. Within the list I have a date column for when a course is going to require a refresher, which is a calculated column based of Date of Training + Refresher period.If I set up a choice column with the following options – In Date, Expiring and Expired, how can I achieve the following:When a refresher date is 30 days away the status changes to ‘Expiring’When a refresher date has passed the status changes to ‘Expired’ ThanksDarren Read More
The power of Data Collection Rules: Monitoring PowerShell usage
This is Part 2 of our Blog series on how to collect events using DCRs for advanced use cases. For Part 1, please check The power of Data Collection Rules: Collecting events for advanced use cases in Microsoft USOP – Microsoft Community Hub.
PowerShell is a great tool for administrators to manage devices and servers in their environment. When using it to administer remote systems with PSRemoting, you don’t leave credentials behind on the target systems – as opposed to RDP with which your credentials would be stored in the Local Security Authority (LSA). This provides many security benefits and helps prevent Pass-The-Hash attacks and other credential theft scenarios
Since it is a preinstalled tool, adversaries have been known to use PowerShell to attack organizations. Companies that have set up a robust PowerShell configuration and monitoring have a clear advantage against those adversaries! Thanks to PowerShell’s numerous built-in security and monitoring features, it is easy to detect and disrupt adversaries.
In this article we will look how you can set up your own monitoring mechanism to spot executed PowerShell code in your environment using Microsoft Sentinel and the Unified SecOps Platform. We will not discuss the various security features that can be configured for a robust PowerShell environment, there are other resources for it, as mentioned in our first article A good resource to learn more about PowerShell security is for example the book “PowerShell Automation and Scripting for Cybersecurity: Hacking and defense for red and blue teamers” written by Miriam C. Wiesner: https://aka.ms/mw-book.
Step 1: Configure ScriptBlockLogging
In PowerShell, you can imagine a script block as a collection of commands and expressions that are executed together as one command: the “script block”.
Many companies become aware to the importance of logging only after an incident has occurred. At that point, it is not possible to detect what happened. Therefore, the PowerShell team decided to implement basic script block logging, starting with PowerShell 5, which can be useful to trace malicious activities performed prior to the incident.
The basic script block logging feature only captures some basic security-relevant script blocks as the default if not configured otherwise. This way, in case of a security incident, you have insights of what basic malicious activities were executed on your machine, however this also means that with this default configuration not every activity is captured. Therefore, to keep track of all the activities on business-critical servers and high value assets, we need to configure script block logging before we can start collecting and reviewing all relevant events.
This can be done by using Group Policy. Depending on the PowerShell version for which you want to configure script block logging, navigate to the following GPO path(s):
Windows PowerShell: Computer Configuration > Policies > Administrative Templates > Windows Components > Windows PowerShell > Turn on PowerShell Script Block Logging
PowerShell Core: Computer Configuration > Administrative Templates > PowerShell Core > Turn on PowerShell Script Block Logging
Configure this Setting as “Enabled” and confirm with “OK”. Do not check the box to “Log script block invocation start / stop events” as this setting is verbose and would generate a lot of noise.
If you have both PowerShell versions in use in your environment, we recommend configuring and monitoring both.
In the PowerShell Core policy, you can find an option to “Use Windows PowerShell Policy Setting”. Unless you have a use case to have different configurations for both versions, you can simply enable this option to sync your Windows PowerShell script block settings.
Please note that the PowerShell Core administrative template files (*.admx)might need to be imported first before you can use them. This article points out how you can locate and install them: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_group_policy_settings
Step 2: Detect and review executed PowerShell code
Now that you have configured everything, it is time to collect PowerShell script block logging events and review the executed code. The following script retrieves and filters event ID 4104 from both Windows PowerShell and PowerShell Core (excluding certain paths and user IDs) and then formats and displays the filtered event details :
$PSWinEventLog = @{ ProviderName = “Microsoft-Windows-PowerShell”; Id = 4104 }
$PSCoreEventLog = @{ ProviderName = “PowerShellCore”; Id = 4104 }
$PSWinEventLog, $PSCoreEventLog | ForEach-Object {
try {
Get-WinEvent -FilterHashtable $_ | Where-Object {
!($_.Properties[4].Value -Match “C:\ProgramData\Microsoft\Windows Defender Advanced Threat Protection\DataCollection\”) `
-and ($_.Properties[2].Value -ne “prompt”) `
-and ($_.UserId -ne “S-1-5-18”) `
-and ($_.UserId -ne “S-1-5-19”) `
-and !( $_.Properties[4].Value -Match “.vscode\extensions\”) `
-and !($_.Properties[4].Value -Match “C:\Windows\TEMP\SDIAG_([A-Za-z0-9]+(-[A-Za-z0-9]+)+)\CL_Utility.ps1”)
} | Select-Object TimeCreated, `
@{Name=’ExecutedCode’;Expression={ $_.Properties[2].Value }},`
UserId, `
LevelDisplayName, `
@{Name=’Path’;Expression={$_.Properties[4].Value}}, `
ProviderName, `
@{Name=’ScriptblockId’;Expression={$_.Properties[3].Value}},`
@{Name=’CurrentPart’;Expression={$_.Properties[0].Value}},`
@{Name=’TotalParts’;Expression={$_.Properties[1].Value}}`
| fl
}
catch {}
PowerShell script block events can be split into multiple events if the executed script block was too large. In that case, the “CurrentPart” field would indicate this by containing a value higher than 1. The “CurrentPart” field indicates the order of the script block pieces.
It is recommended to adjust this query to your environment; are there script blocks that are being run by certain programs in your environment that you can safely exclude from your review. You can use the following documentation as a reference for filtering: Creating Get-WinEvent queries with FilterHashtable – PowerShell | Microsoft Learn.
PowerShell is a great tool for administrators to manage devices and servers in their environment. When using it to administer remote
PowerShell script block events can be split into multiple events if the executed script block was too large. In that case, the “CurrentPart” field would indicate this by containing a value higher than 1. The “CurrentPart” field indicates the order of the script block pieces.
It is recommended to adjust this query to your environment; are there script blocks that are being run by certain programs in your environment that you can safely exclude from your review. You can use the following documentation as a reference for filtering: Creating Get-WinEvent queries with FilterHashtable – PowerShell | Microsoft Learn.
Step 3: Configure the data collection Rule (DCR) to collect the required events
Using the Azure Monitor agent (AMA), you can select the events you would like to collect from your servers using Xpath queries (please see Filter Windows events using Xpath queries for reference). If you are not familiar with the agent or you have not installed AMA yet in the servers you would like to monitor, please check the first article of this series: include link.
To create your DCR, as this time we are collecting non-Security events, go to Connectors and select Windows Forwarded Events. From here, select create DCR, add your servers, and under Collect select Custom. Paste the following xPath queries:
For Windows PowerShell:
Microsoft-Windows-PowerShell/Operational!*[System[(EventID=4104)]]
For PowerShell Core:
PowerShellCore/Operational!*[System[(EventID=4104)]]
To prevent getting events that we don’t need (e.g. events from background processes or system accounts), based on the query we constructed in Step 2, we can create a transformation in our DCR that will prevent those events from being ingested into Microsoft Sentinel, as they could be too verbose and we may not need them. For this purpose, you can add this transformation in your DCR:
“transformKql”: “source | where SystemUserId !in (‘S-1-5-18’, ‘S-1-5-19’) | extend ScriptBlockText = parse_json(EventData).ScriptBlockText, ScriptBlockId = tostring(EventData.ScriptBlockId), MessageNumber = tostring(EventData.MessageNumber), MessageTotal = tostring(EventData.MessageTotal), Path = tostring(EventData.Path) | where tostring(ScriptBlockText) != ‘prompt’ | where Path != ‘.vscode\\extensions\\’ and Path != ‘C:\\Windows\\TEMP\\SDIAG_([A-Za-z0-9]+(-[A-Za-z0-9]+)+)\\CL_Utility.ps1’ and Path != ‘C:\\ProgramData\\Microsoft\\Windows Defender Advanced Threat Protection\\DataCollection\\'”
Alternatively, you can deploy this template from GitHub, which already includes the xPath queries described above, plus the transformation: Azure-Sentinel/DataConnectors/WindowsEvents/DataCollectionRulePowerShellEvents at master · Azure/Azure-Sentinel (github.com)
Step 4: Creating your detections
Now, we can go to Microsoft Sentinel or to the Unified security operations platform, which brings Microsoft Sentinel and Microsoft Defender XDR into a single unified portal (see how to Connect Microsoft Sentinel to Microsoft Defender XDR) and start querying your logs and generate detections.
It also makes sense to monitor for devices that never ran PowerShell code before, from which PowerShell code is executed unexpectedly. Are there devices that should never run PowerShell code (e.g. devices from Accounting or Marketing)? For this purpose, we could use a watchlist. Watchlists allow you to create a list of items you would like to use for correlation (e.g. high-value assets, terminated employees, service accounts, etc.). In our scenario, we have created a watchlist that determines to which team the machine belongs (Operations, Security, Marketing).
First, let’s have a look at our logs. On Microsoft Defender XDR, we can find them under Advanced Hunting. We are using this query to detect machines that are not part of the groups (Security and Operations) that we would expect to run PowerShell code using this query:
let AllowedGroups = dynamic([“Security”,”Operations”]);
WindowsEvent
| where EventID == 4104
| extend ScriptBlockText = parse_json(EventData).ScriptBlockText, ScriptBlockId = tostring(EventData.ScriptBlockId), MessageNumber = tostring(EventData.MessageNumber), MessageTotal = tostring(EventData.MessageTotal), Path = tostring(EventData.Path)
| lookup kind=inner _GetWatchlist(‘devicegroups’) on $left.Computer == $right.SearchKey
| where Group !in (AllowedGroups)
| project TimeGenerated, ScriptBlockText, SystemUserId, DeviceName, Group, EventLevelName, Path, MessageNumber, MessageTotal, ScriptBlockId, Channel
| sort by TimeGenerated, ScriptBlockId, MessageNumber
Above, we can see what machines that were not from the expected departments have ran PowerShell code.
After polishing our watchlist and query, we are ready to create a detection under Analytics:
Please remember to match the Host entity under “Entity mapping” when you create your analytic rule. This is critical for correlation across data sources and alerts.
This concludes Part 2 of our 3 Part blog series on how to collect events using DCRs for advanced use cases. For Part 1, please check The power of Data Collection Rules: Collecting events for advanced use cases in Microsoft USOP – Microsoft Community Hub, and stay tuned for Part 3, in which we show how to monitor for indications that Defender for Endpoint (MDE) was shut down.
We welcome your feedback and questions on this or any of the other parts of this blog article series and look forward to hearing from you.
Miriam Wiesner (@miriamxyra) – Senior Security Research PM for Microsoft Defender XDR | Maria de Sousa-Valadas Castaño – Senior Product Manager Unified SocOps Platform | Shirley Kochavi – Unified SocOps Platform
Microsoft Tech Community – Latest Blogs –Read More
Copilot use in Excel formulas
Hello,
does anyone know when Microsoft plans to make it possible to use Copilot in Excel formulas, e.g. with the GPTforExcel tool?
=copilot(summarize; A1)
Would it be obvious to use it in-house?
Or does anyone have a good walkaround e.g. with PowerPlatforms?
Or do you have other solutions?
Thank you
Hello,does anyone know when Microsoft plans to make it possible to use Copilot in Excel formulas, e.g. with the GPTforExcel tool?=copilot(summarize; A1)Would it be obvious to use it in-house?Or does anyone have a good walkaround e.g. with PowerPlatforms? Or do you have other solutions?Thank you Read More
How to extract pixel intensity of a grayscale image (*.jpg) to a MS Excel table
Hello everyone, I am a very new beginner with image processing and Mathlab. Please help me with the following isse, many thanks in advance !
I have a grayscale image. I’d like to extract its pixel intensities to a MS Excel table with three vectors, including pixel intensiy, X and Y coordinates of the pixel.Hello everyone, I am a very new beginner with image processing and Mathlab. Please help me with the following isse, many thanks in advance !
I have a grayscale image. I’d like to extract its pixel intensities to a MS Excel table with three vectors, including pixel intensiy, X and Y coordinates of the pixel. Hello everyone, I am a very new beginner with image processing and Mathlab. Please help me with the following isse, many thanks in advance !
I have a grayscale image. I’d like to extract its pixel intensities to a MS Excel table with three vectors, including pixel intensiy, X and Y coordinates of the pixel. digital image processing, mathematics MATLAB Answers — New Questions
creating multiple holes in a flatwire PDE Modeler
Hi,
Matlab suggested me to create a more efficient code: what i am trying to do is to create 12 holes vertically in a strip of wire and repeat it 7x times over a 0.2 distance: i started with this code:
model = createpde;
%Define a circle in a rectangle, place these in one matrix, and create a set formula that subtracts the circle from the rectangle.
rectx=0;
recty=0;
rect_width=1.38;
rect_height=0.2;
x_start=0.1;%starting position x circle
y_start=0.2;%starting position y circle
radius=0.005;%radius holes
num_holes_y=12;%number of repitition in the y
num_rep_x=7;%number of repitition in the x
y_interval=0.0183; %distance between the holes in the y;
x_interval=0.2; % distance between the holes in the x;
pderect([rectx rect_width recty,rect_height] )
%create multiple holes in a strip and draw it into the pde modeler
for j=0:(num_rep_x-1)
for i=0:(num_holes_y-1)
%calculate the x and y position for the current hole
x_center=x_start+j*x_interval;
y_center=y_start-i*y_interval;
pdecirc(x_center, y_center,radius)
hold on;
end
end
axis equal;
hold off;
better code as matlab suggested: but get stuck with an error:
Error in TestSkript2 (line 38)
ns(idx+1)=[‘C’,num2str(idx)];
please advise.
model = createpde;
%Define a circle in a rectangle, place these in one matrix, and create a set formula that subtracts the circle from the rectangle.
rectx=0;
recty=0;
rect_width=1.38;
rect_height=0.2;
x_start=0.1;%starting position x circle
y_start=0.2;%starting position y circle
radius=0.005;%radius holes
num_holes_y=12;%number of repitition in the y
num_rep_x=7;%number of repitition in the x
y_interval=0.0183; %distance between the holes in the y;
x_interval=0.2; % distance between the holes in the x;
R1=[3,4,rectx, rectx+rect_width,rectx+rect_width,rectx,recty,recty,recty+rect_height,recty+rect_height]’;
%preallocating the arrays(more efficient for matlab CHAT GPT)
num_circles = num_holes_y * num_rep_x;
gd = zeros(10, 1 + num_circles);
gd(:, 1) = R1;
ns = cell(1+num_circles,1);
ns{ones}=’R1′;
sf=’R1′;
%create multiple holes in a strip and draw it into the pde modeler
for j=0:(num_rep_x-1)
for i=0:(num_holes_y-1)
%calculate the x and y position for the current hole
x_center=x_start+j*x_interval;
y_center=y_start-i*y_interval;
C=[1,x_center, y_center,radius]’;
idx=j*num_holes_y+i+1;
gd(1:4,idx+1)=C;
ns{idx+1}=[‘C’,num2str(idx)];
sf=[sf,’C’,num2str(idx)];
end
end
ns=char(ns);
g=decsg(gd,sf,ns);
axis equal;
hold off;Hi,
Matlab suggested me to create a more efficient code: what i am trying to do is to create 12 holes vertically in a strip of wire and repeat it 7x times over a 0.2 distance: i started with this code:
model = createpde;
%Define a circle in a rectangle, place these in one matrix, and create a set formula that subtracts the circle from the rectangle.
rectx=0;
recty=0;
rect_width=1.38;
rect_height=0.2;
x_start=0.1;%starting position x circle
y_start=0.2;%starting position y circle
radius=0.005;%radius holes
num_holes_y=12;%number of repitition in the y
num_rep_x=7;%number of repitition in the x
y_interval=0.0183; %distance between the holes in the y;
x_interval=0.2; % distance between the holes in the x;
pderect([rectx rect_width recty,rect_height] )
%create multiple holes in a strip and draw it into the pde modeler
for j=0:(num_rep_x-1)
for i=0:(num_holes_y-1)
%calculate the x and y position for the current hole
x_center=x_start+j*x_interval;
y_center=y_start-i*y_interval;
pdecirc(x_center, y_center,radius)
hold on;
end
end
axis equal;
hold off;
better code as matlab suggested: but get stuck with an error:
Error in TestSkript2 (line 38)
ns(idx+1)=[‘C’,num2str(idx)];
please advise.
model = createpde;
%Define a circle in a rectangle, place these in one matrix, and create a set formula that subtracts the circle from the rectangle.
rectx=0;
recty=0;
rect_width=1.38;
rect_height=0.2;
x_start=0.1;%starting position x circle
y_start=0.2;%starting position y circle
radius=0.005;%radius holes
num_holes_y=12;%number of repitition in the y
num_rep_x=7;%number of repitition in the x
y_interval=0.0183; %distance between the holes in the y;
x_interval=0.2; % distance between the holes in the x;
R1=[3,4,rectx, rectx+rect_width,rectx+rect_width,rectx,recty,recty,recty+rect_height,recty+rect_height]’;
%preallocating the arrays(more efficient for matlab CHAT GPT)
num_circles = num_holes_y * num_rep_x;
gd = zeros(10, 1 + num_circles);
gd(:, 1) = R1;
ns = cell(1+num_circles,1);
ns{ones}=’R1′;
sf=’R1′;
%create multiple holes in a strip and draw it into the pde modeler
for j=0:(num_rep_x-1)
for i=0:(num_holes_y-1)
%calculate the x and y position for the current hole
x_center=x_start+j*x_interval;
y_center=y_start-i*y_interval;
C=[1,x_center, y_center,radius]’;
idx=j*num_holes_y+i+1;
gd(1:4,idx+1)=C;
ns{idx+1}=[‘C’,num2str(idx)];
sf=[sf,’C’,num2str(idx)];
end
end
ns=char(ns);
g=decsg(gd,sf,ns);
axis equal;
hold off; Hi,
Matlab suggested me to create a more efficient code: what i am trying to do is to create 12 holes vertically in a strip of wire and repeat it 7x times over a 0.2 distance: i started with this code:
model = createpde;
%Define a circle in a rectangle, place these in one matrix, and create a set formula that subtracts the circle from the rectangle.
rectx=0;
recty=0;
rect_width=1.38;
rect_height=0.2;
x_start=0.1;%starting position x circle
y_start=0.2;%starting position y circle
radius=0.005;%radius holes
num_holes_y=12;%number of repitition in the y
num_rep_x=7;%number of repitition in the x
y_interval=0.0183; %distance between the holes in the y;
x_interval=0.2; % distance between the holes in the x;
pderect([rectx rect_width recty,rect_height] )
%create multiple holes in a strip and draw it into the pde modeler
for j=0:(num_rep_x-1)
for i=0:(num_holes_y-1)
%calculate the x and y position for the current hole
x_center=x_start+j*x_interval;
y_center=y_start-i*y_interval;
pdecirc(x_center, y_center,radius)
hold on;
end
end
axis equal;
hold off;
better code as matlab suggested: but get stuck with an error:
Error in TestSkript2 (line 38)
ns(idx+1)=[‘C’,num2str(idx)];
please advise.
model = createpde;
%Define a circle in a rectangle, place these in one matrix, and create a set formula that subtracts the circle from the rectangle.
rectx=0;
recty=0;
rect_width=1.38;
rect_height=0.2;
x_start=0.1;%starting position x circle
y_start=0.2;%starting position y circle
radius=0.005;%radius holes
num_holes_y=12;%number of repitition in the y
num_rep_x=7;%number of repitition in the x
y_interval=0.0183; %distance between the holes in the y;
x_interval=0.2; % distance between the holes in the x;
R1=[3,4,rectx, rectx+rect_width,rectx+rect_width,rectx,recty,recty,recty+rect_height,recty+rect_height]’;
%preallocating the arrays(more efficient for matlab CHAT GPT)
num_circles = num_holes_y * num_rep_x;
gd = zeros(10, 1 + num_circles);
gd(:, 1) = R1;
ns = cell(1+num_circles,1);
ns{ones}=’R1′;
sf=’R1′;
%create multiple holes in a strip and draw it into the pde modeler
for j=0:(num_rep_x-1)
for i=0:(num_holes_y-1)
%calculate the x and y position for the current hole
x_center=x_start+j*x_interval;
y_center=y_start-i*y_interval;
C=[1,x_center, y_center,radius]’;
idx=j*num_holes_y+i+1;
gd(1:4,idx+1)=C;
ns{idx+1}=[‘C’,num2str(idx)];
sf=[sf,’C’,num2str(idx)];
end
end
ns=char(ns);
g=decsg(gd,sf,ns);
axis equal;
hold off; pde modeler script. MATLAB Answers — New Questions
Mex Build Error: the following files have the same file name which cannot be packaged together in a flat hierarchy
I have files that multiple Sfuns use. When I want to build the project, I get the following error. What is the reason for this and is there a solution?
"the following files have the same file name which cannot be packaged together in a flat hierarchy"I have files that multiple Sfuns use. When I want to build the project, I get the following error. What is the reason for this and is there a solution?
"the following files have the same file name which cannot be packaged together in a flat hierarchy" I have files that multiple Sfuns use. When I want to build the project, I get the following error. What is the reason for this and is there a solution?
"the following files have the same file name which cannot be packaged together in a flat hierarchy" simulink, embedded coder, code generation MATLAB Answers — New Questions
Cant find named range
I have inherited a spreadsheet which has pivot tables based on a named range. I am trying to make changes to the source data but I cant seem to find it. I can see the name in hte cell reference box but when i click on it nothing happens. It doesnt appear in the Name Manager. I have tried the find and GoTo the name range but nothing is happening. The person who created the spreadsheet is no longer available and it is to large to start from scracth. Any suggestions?
By the way I have searched for suggestions and have tried to click on the name in the cell reference field and i have also used the GoTo they have not worked. I can see the name but it is not taking me to the cell range
Thanks in advance
I have inherited a spreadsheet which has pivot tables based on a named range. I am trying to make changes to the source data but I cant seem to find it. I can see the name in hte cell reference box but when i click on it nothing happens. It doesnt appear in the Name Manager. I have tried the find and GoTo the name range but nothing is happening. The person who created the spreadsheet is no longer available and it is to large to start from scracth. Any suggestions? By the way I have searched for suggestions and have tried to click on the name in the cell reference field and i have also used the GoTo they have not worked. I can see the name but it is not taking me to the cell range Thanks in advance Read More
Manager’s team calendar – hierarchy permissions to see details from top-down
Hi, I have a question about Manager’s team calendar and how it’s supposed to work.
The manager would like to see all the details of the calendar events of who report to him, but currently by default the manager can only see “free/busy”.
Idea is to make the org hierarchy work by equal level people not see each other’s details, only free/busy, which works right now, but the higher level manager should see everyone’s details under him. Hierarchy is already set-up correctly.
Is that possible? If yes, how?
Hi, I have a question about Manager’s team calendar and how it’s supposed to work. The manager would like to see all the details of the calendar events of who report to him, but currently by default the manager can only see “free/busy”. Idea is to make the org hierarchy work by equal level people not see each other’s details, only free/busy, which works right now, but the higher level manager should see everyone’s details under him. Hierarchy is already set-up correctly. Is that possible? If yes, how? Read More
SharePoint Online – User Profile Service And Delve
Hi,
1. Can anyone tell me the future roadmap for the User Profile Service Application (UPSA) in SharePoint Online? I know the UPSA is in the classic mode but it would be good to know if it is set to be deprecated by Microsoft in a number of years? and if it is then, what is it planning on being replaced with and when?
2. Also, Delve is retiring in December 2024 so what will be replacement of the Delve Page
Thanks in advance
Hi, 1. Can anyone tell me the future roadmap for the User Profile Service Application (UPSA) in SharePoint Online? I know the UPSA is in the classic mode but it would be good to know if it is set to be deprecated by Microsoft in a number of years? and if it is then, what is it planning on being replaced with and when? 2. Also, Delve is retiring in December 2024 so what will be replacement of the Delve Page Thanks in advance Read More
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