Category: News
Deploying .Net 8.0 via Intune
I cannot figure out a way to deploy .NET 8.0 Runtime via Intune. I have a script for the .NET 3.5 that works great, but cannot find any information on how to deploy this new version.
I cannot figure out a way to deploy .NET 8.0 Runtime via Intune. I have a script for the .NET 3.5 that works great, but cannot find any information on how to deploy this new version. Read More
Project for the web – Sync Issue
We have the recurring issue within our roadmap that we cannot resolve. We have deleted, recreated the entry in the roadmap but the issue remains. Within the flow view in powerautomate we can see an fail reason of Action: Startdate Failed but do not know what this means. We think that it is when checking the flagged items to display in the roadmap and can see no issue with the data. Can anyone provide advice on this?
We have the recurring issue within our roadmap that we cannot resolve. We have deleted, recreated the entry in the roadmap but the issue remains. Within the flow view in powerautomate we can see an fail reason of Action: Startdate Failed but do not know what this means. We think that it is when checking the flagged items to display in the roadmap and can see no issue with the data. Can anyone provide advice on this? Read More
Recommend me a safe youtube to mp3 converter software for Windows 11
Hello everyone, I’m currently on the lookout for a reliable YouTube to MP3 converter that works smoothly on Windows 11. I need a tool that can efficiently download and convert videos without compromising on the audio quality. Ideally, it would be great if the software also offers some flexibility with file formats and quality settings. Does anyone have recommendations for software that is particularly well-suited for Windows 11?
Hello everyone, I’m currently on the lookout for a reliable YouTube to MP3 converter that works smoothly on Windows 11. I need a tool that can efficiently download and convert videos without compromising on the audio quality. Ideally, it would be great if the software also offers some flexibility with file formats and quality settings. Does anyone have recommendations for software that is particularly well-suited for Windows 11? Read More
APK file not getting published in the Private apps section from managed Google Play Store @
Hi Team,
We are trying to deploy an APK file in the private apps section from managed Google Play Store in Intune but its throwing an error continuously – “Can’t publish app, please try again later.”
We tried several times but the error remain constant. We are unable to understand what could be the reason which is causing this issue. Its super critical for our project .
Can you suggest any trouble shooting steps that need to be followed or any recommendations.
Hi Team,We are trying to deploy an APK file in the private apps section from managed Google Play Store in Intune but its throwing an error continuously – “Can’t publish app, please try again later.”We tried several times but the error remain constant. We are unable to understand what could be the reason which is causing this issue. Its super critical for our project .Can you suggest any trouble shooting steps that need to be followed or any recommendations. Read More
Forms in SharePoint Lists: information about the input form
With the new Forms funcionality in SharePoint Lists, is there a way to have two different Forms, and record in a column which one the user filled out?
Basically have Form 1 and Form 2, and a column that autofills based on the link the user used.
(I have this setup already in PowerAutomate, but with the introduction of Forms, I was hoping I could have one less flow.)
With the new Forms funcionality in SharePoint Lists, is there a way to have two different Forms, and record in a column which one the user filled out?Basically have Form 1 and Form 2, and a column that autofills based on the link the user used. (I have this setup already in PowerAutomate, but with the introduction of Forms, I was hoping I could have one less flow.) Read More
Getting started with Private Clusters on HDInsight on AKS for securing your analytics workloads
HDInsight on AKS is a managed Platform as a Service (PaaS) that runs on Azure Kubernetes Service (AKS). HDInsight on AKS allows you to deploy popular Open-Source Analytics workloads like Apache Spark™, Apache Flink:registered:, and Trino without the overhead of managing and monitoring containers.
HDInsight on AKS clusters allow you to setup outbound network connections from cluster to any destination, if the destination is reachable from the node’s network interface. This means that cluster resources can access any public or private IP address, domain name, or URL on the internet or on your virtual network.
However, in some scenarios, you may want to control or restrict the egress traffic from your cluster for security, compliance reasons. For example, you may want to:
Prevent clusters from accessing malicious or unwanted services.
Enforce network policies or firewall rules on the outbound traffic.
Monitor or audit the egress traffic from cluster for troubleshooting or compliance purposes.
There are different methods for managing the traffic flow. You can learn more about it here.
In this blog, we will discuss about how to control or restrict the egress traffic from your HDInsight on AKS cluster using User Defined Routing (UDR) in your virtual network.
With this setup, there won’t be any Public IP created when you spin up an HDInsight on AKS cluster.
Note: UDR setup requires you to setup firewall rules and define the routing using custom VNet and subnet before creating an HDInsight on AKS cluster
Let’s get started.
Step 1: Setup the virtual network (VNet). Required if you don’t have existing VNet
From the Azure portal, search for virtual networks and click to create new.
Create a VNet named “contoso-hdi-vnet”.
Step 2: Setup the firewall. Deploy the firewall in your virtual network (contoso-hdi-vnet).
To deploy a firewall into the integrated virtual network, you need a subnet called AzureFirewallSubnet
Navigate to your VNet (contoso-hdi-vnet) and go to subnets
Add subnet with subnet purpose as “Azure Firewall”
Now, go to Firewall tab and click to add a new Firewall
2. Create a firewall named “contoso-hdi-firewall” with the following details
Setting
Value
Resource group
Same resource group as the integrated virtual network.
Name
“contoso-hdi-firewall” or Name of your choice
Region
Same region as the integrated virtual network.
Firewall policy
Create one by selecting Add new.
Virtual network
Select the integrated virtual network.
Public IP address
Select an existing address or create one by selecting Add new.
3. Once deployment is complete, go to Overview page of newly created firewall, copy private IP address. The private IP address will be used as next hop address in the routing rule for the virtual network.
Step 3: Create a Route table and associate it with your virtual network to route all traffic to the firewall
When you create a virtual network, Azure automatically creates a default route table for each of its subnets and adds system default routes to the table. In this step, you create a user-defined route table that routes all traffic to the firewall, and then associate it with the App Service subnet in the integrated virtual network.
From the Azure portal, search for “Route tables” and select Route tables resource
Create a route table with name “contoso-hdi-route-table”.
Note: Region should be same as Firewall region For e.g. “East US 2” in this case
Go to the newly create route table and add a route with the following details
Setting
Value
Destination Type
IP Addresses
Destination IP addresses/CIDR ranges
0.0.0.0/0
Next hop type
Virtual appliance
Next hop address
The private IP address for the firewall that you copied
Go to subnets and associate the subnet you want to use during HDInsight on AKS cluster setup. Here, “default” subnet is used.
Step 4: Configure Firewall policies
Navigate to the firewall’s overview page and select its firewall policy.
Add network rules (defined here) with the subnet (To be used for setting up HDInsight on AKS cluster) as the source address
Add application rules (defined here) with the subnet (To be used for setting up HDInsight on AKS cluster) as the source address
Depending on the cluster type (Spark, Flink, Trino), you need to add additional network and application rules defined here.
Step 5: Setup HDInsight on AKS cluster pool
From the Azure portal, search “HDInsight on AKS clusters pool” and create a new HDInsight on AKS cluster pool
Under Security + network settings, choose the virtual network (contoso-hdi-vnet), Subnet (default) and Egress path (Outbound with userDefinedRouting)
Once cluster pool is created, verify that no public IP is created. Search for MC_hdi-<clusterpool deployment id> resource group
Step 6: Add AKS API Server Address to the network rules in the firewall policy
From the Azure portal, search for cluster pool name (contoso-hdi-udr-pool) and go the corresponding kubernetes resource.
From the overview tab, copy the API server address
Navigate to the contoso-hdi-firewall-policy and enable DNS proxy from DNS tab
Go to Network rules tab and add a new rule
Step 7: Assign the AKS cluster – that matches the cluster pool – Network Contributor role on your network resources that are used for defining the routing, such as Virtual Network, Route table, and NSG (if used).
Navigate to your VNet (contoso-hdi-vnet), go to Access control and click on “Add role assignment
Select “Network Contributor” role and member as “Managed identity”. In Managed identity option, select Kubernetes services and select your cluster pool name
Click Review+ create to complete the role assignment
Step 8: Create HDInsight on AKS cluster
From Azure portal, search for “HDInsight on AKS cluster” service or click + New cluster from the overview tab of the cluster pool
Select the cluster pool (contoso-hdi-udr-pool), cluster type (Trino) and click “Review + create”
Step 9: Access the cluster via a client such as virtual machine (VM)
Create a windows virtual machine and copy the public IP of the VM
Navigate to the route table (contoso-hdi-route-table) and add VM IP to the route table
Remote login to the VM and you can access the cluster web urls
With Private AKS clusters, and outbound UDR setup, enterprise customers can ensure that their sensitive data is protected from unauthorized access, and theft. They can continue to implement a range of security measures to protect their data driven applications. With the ability to perform regular security updates and patches to keep their systems up-to-date and secure with In-place upgrades.
With all of this available, enterprise customers can now comply with industry-specific regulations related to data privacy, security, and compliance and reduce the risk of data breaches and other security incidents.
Microsoft Tech Community – Latest Blogs –Read More
species go to negative values
Hi
I developed a model in Simbiology simulating the effect of a drug on a tissue mass. Sometime, I received a message that the integration toerance does not met and other times I had a mass species with negative values.Why does the software allow the value of a species representing the mass of this tissue go to negative values? what is the cause of this issue and how can I solve it? I want the content of this species to go as small as it can go without jumping to negative values.
Thank youHi
I developed a model in Simbiology simulating the effect of a drug on a tissue mass. Sometime, I received a message that the integration toerance does not met and other times I had a mass species with negative values.Why does the software allow the value of a species representing the mass of this tissue go to negative values? what is the cause of this issue and how can I solve it? I want the content of this species to go as small as it can go without jumping to negative values.
Thank you Hi
I developed a model in Simbiology simulating the effect of a drug on a tissue mass. Sometime, I received a message that the integration toerance does not met and other times I had a mass species with negative values.Why does the software allow the value of a species representing the mass of this tissue go to negative values? what is the cause of this issue and how can I solve it? I want the content of this species to go as small as it can go without jumping to negative values.
Thank you negative species, simbiology MATLAB Answers — New Questions
Add duration object to datetime object to get new datetime object
I’m reading a text file that looks like this:
2024-05-11 00:34:35 1.2 sta/lta 2.0 8.0 3.5 2.5 max 363.3 rms 127.2 id: L MSS1
2024-05-11 01:19:32 2.2 sta/lta 2.0 8.0 3.5 2.5 max 1126.7 rms 328.4 id: t MSS1
2024-05-11 01:30:10 1.7 sta/lta 2.0 8.0 3.5 2.5 max 597.3 rms 162.4 id: t MSS1
2024-05-11 04:52:52 2.7 sta/lta 2.0 8.0 3.5 2.5 max 2516.3 rms 657.6 id: t MSS1
2024-05-11 07:14:16 2.3 sta/lta 2.0 8.0 3.5 2.5 max 2644.7 rms 626.9 id: t MSS1
2024-05-11 09:45:07 1.9 sta/lta 2.0 8.0 3.5 2.5 max 1768.3 rms 558.0 id: u MSS1
2024-05-11 19:44:04 2.2 sta/lta 2.0 8.0 3.5 2.5 max 1027.7 rms 229.0 id: r MSS1
I use readtable, and it returns this:
>> A = readtable( fileTriggerIDs )
A =
7×15 table
Var1 Var2 Var3 Var4 Var5 Var6 Var7 Var8 Var9 Var10 Var11 Var12 Var13 Var14 Var15
__________ ________ ____ ___________ ____ ____ ____ ____ _______ ______ _______ _____ _______ _____ ________
11/05/2024 00:34:35 1.2 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 363.3 {‘rms’} 127.2 {‘id:’} {‘L’} {‘MSS1’}
11/05/2024 01:19:32 2.2 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 1126.7 {‘rms’} 328.4 {‘id:’} {‘t’} {‘MSS1’}
11/05/2024 01:30:10 1.7 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 597.3 {‘rms’} 162.4 {‘id:’} {‘t’} {‘MSS1’}
11/05/2024 04:52:52 2.7 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 2516.3 {‘rms’} 657.6 {‘id:’} {‘t’} {‘MSS1’}
11/05/2024 07:14:16 2.3 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 2644.7 {‘rms’} 626.9 {‘id:’} {‘t’} {‘MSS1’}
11/05/2024 09:45:07 1.9 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 1768.3 {‘rms’} 558 {‘id:’} {‘u’} {‘MSS1’}
11/05/2024 19:44:04 2.2 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 1027.7 {‘rms’} 229 {‘id:’} {‘r’} {‘MSS1’}
A.Var1 is a datetime array and A.Var2 is a duration array.
How do I combine them to get one datetime array?
I tried adding them, but the results are nonsense:
>> A.Var1 + A.Var2
ans =
7×1 datetime array
2024-05-11 12:34:35
2024-05-11 01:19:32
2024-05-11 01:30:10
2024-05-11 04:52:52
2024-05-11 07:14:16
2024-05-11 09:45:07
2024-05-11 07:44:04I’m reading a text file that looks like this:
2024-05-11 00:34:35 1.2 sta/lta 2.0 8.0 3.5 2.5 max 363.3 rms 127.2 id: L MSS1
2024-05-11 01:19:32 2.2 sta/lta 2.0 8.0 3.5 2.5 max 1126.7 rms 328.4 id: t MSS1
2024-05-11 01:30:10 1.7 sta/lta 2.0 8.0 3.5 2.5 max 597.3 rms 162.4 id: t MSS1
2024-05-11 04:52:52 2.7 sta/lta 2.0 8.0 3.5 2.5 max 2516.3 rms 657.6 id: t MSS1
2024-05-11 07:14:16 2.3 sta/lta 2.0 8.0 3.5 2.5 max 2644.7 rms 626.9 id: t MSS1
2024-05-11 09:45:07 1.9 sta/lta 2.0 8.0 3.5 2.5 max 1768.3 rms 558.0 id: u MSS1
2024-05-11 19:44:04 2.2 sta/lta 2.0 8.0 3.5 2.5 max 1027.7 rms 229.0 id: r MSS1
I use readtable, and it returns this:
>> A = readtable( fileTriggerIDs )
A =
7×15 table
Var1 Var2 Var3 Var4 Var5 Var6 Var7 Var8 Var9 Var10 Var11 Var12 Var13 Var14 Var15
__________ ________ ____ ___________ ____ ____ ____ ____ _______ ______ _______ _____ _______ _____ ________
11/05/2024 00:34:35 1.2 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 363.3 {‘rms’} 127.2 {‘id:’} {‘L’} {‘MSS1’}
11/05/2024 01:19:32 2.2 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 1126.7 {‘rms’} 328.4 {‘id:’} {‘t’} {‘MSS1’}
11/05/2024 01:30:10 1.7 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 597.3 {‘rms’} 162.4 {‘id:’} {‘t’} {‘MSS1’}
11/05/2024 04:52:52 2.7 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 2516.3 {‘rms’} 657.6 {‘id:’} {‘t’} {‘MSS1’}
11/05/2024 07:14:16 2.3 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 2644.7 {‘rms’} 626.9 {‘id:’} {‘t’} {‘MSS1’}
11/05/2024 09:45:07 1.9 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 1768.3 {‘rms’} 558 {‘id:’} {‘u’} {‘MSS1’}
11/05/2024 19:44:04 2.2 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 1027.7 {‘rms’} 229 {‘id:’} {‘r’} {‘MSS1’}
A.Var1 is a datetime array and A.Var2 is a duration array.
How do I combine them to get one datetime array?
I tried adding them, but the results are nonsense:
>> A.Var1 + A.Var2
ans =
7×1 datetime array
2024-05-11 12:34:35
2024-05-11 01:19:32
2024-05-11 01:30:10
2024-05-11 04:52:52
2024-05-11 07:14:16
2024-05-11 09:45:07
2024-05-11 07:44:04 I’m reading a text file that looks like this:
2024-05-11 00:34:35 1.2 sta/lta 2.0 8.0 3.5 2.5 max 363.3 rms 127.2 id: L MSS1
2024-05-11 01:19:32 2.2 sta/lta 2.0 8.0 3.5 2.5 max 1126.7 rms 328.4 id: t MSS1
2024-05-11 01:30:10 1.7 sta/lta 2.0 8.0 3.5 2.5 max 597.3 rms 162.4 id: t MSS1
2024-05-11 04:52:52 2.7 sta/lta 2.0 8.0 3.5 2.5 max 2516.3 rms 657.6 id: t MSS1
2024-05-11 07:14:16 2.3 sta/lta 2.0 8.0 3.5 2.5 max 2644.7 rms 626.9 id: t MSS1
2024-05-11 09:45:07 1.9 sta/lta 2.0 8.0 3.5 2.5 max 1768.3 rms 558.0 id: u MSS1
2024-05-11 19:44:04 2.2 sta/lta 2.0 8.0 3.5 2.5 max 1027.7 rms 229.0 id: r MSS1
I use readtable, and it returns this:
>> A = readtable( fileTriggerIDs )
A =
7×15 table
Var1 Var2 Var3 Var4 Var5 Var6 Var7 Var8 Var9 Var10 Var11 Var12 Var13 Var14 Var15
__________ ________ ____ ___________ ____ ____ ____ ____ _______ ______ _______ _____ _______ _____ ________
11/05/2024 00:34:35 1.2 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 363.3 {‘rms’} 127.2 {‘id:’} {‘L’} {‘MSS1’}
11/05/2024 01:19:32 2.2 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 1126.7 {‘rms’} 328.4 {‘id:’} {‘t’} {‘MSS1’}
11/05/2024 01:30:10 1.7 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 597.3 {‘rms’} 162.4 {‘id:’} {‘t’} {‘MSS1’}
11/05/2024 04:52:52 2.7 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 2516.3 {‘rms’} 657.6 {‘id:’} {‘t’} {‘MSS1’}
11/05/2024 07:14:16 2.3 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 2644.7 {‘rms’} 626.9 {‘id:’} {‘t’} {‘MSS1’}
11/05/2024 09:45:07 1.9 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 1768.3 {‘rms’} 558 {‘id:’} {‘u’} {‘MSS1’}
11/05/2024 19:44:04 2.2 {‘sta/lta’} 2 8 3.5 2.5 {‘max’} 1027.7 {‘rms’} 229 {‘id:’} {‘r’} {‘MSS1’}
A.Var1 is a datetime array and A.Var2 is a duration array.
How do I combine them to get one datetime array?
I tried adding them, but the results are nonsense:
>> A.Var1 + A.Var2
ans =
7×1 datetime array
2024-05-11 12:34:35
2024-05-11 01:19:32
2024-05-11 01:30:10
2024-05-11 04:52:52
2024-05-11 07:14:16
2024-05-11 09:45:07
2024-05-11 07:44:04 datetime, duration MATLAB Answers — New Questions
Can sqlite not search in the project path?
I have a sqlite database, say "filename.db", in a local folder (MacOS). The folder is then added to my project path. However, sqlite can find it with absolute path, but not with filename. Can sqlite not search in the project path?
% works
conn = sqlite(full_absolute_path/"filename.db", "connect")
% Error: database not found
conn = sqlite("filename.db", "connect")I have a sqlite database, say "filename.db", in a local folder (MacOS). The folder is then added to my project path. However, sqlite can find it with absolute path, but not with filename. Can sqlite not search in the project path?
% works
conn = sqlite(full_absolute_path/"filename.db", "connect")
% Error: database not found
conn = sqlite("filename.db", "connect") I have a sqlite database, say "filename.db", in a local folder (MacOS). The folder is then added to my project path. However, sqlite can find it with absolute path, but not with filename. Can sqlite not search in the project path?
% works
conn = sqlite(full_absolute_path/"filename.db", "connect")
% Error: database not found
conn = sqlite("filename.db", "connect") sqlite, project, path MATLAB Answers — New Questions
I’m experiencing matlab crashes on my model how do I find out the cause?
I have a rather complex simulink model that uses simevents, I created a block that saves the packets (simevents entities) in the matlab workspace, this is done by calling a simulink function with a toWorkspace block inside it.
The problem is that by inserting one of these blocks into the model everything works correctly, but if I insert 2 matlab freezes and then closes without showing any error message. It’s not a "same name in the toWorkspace block" issue because it would give me a compilation error and instead it starts simulating and then crash.
The most absurd thing is that by creating a very simplified model I managed to make these 2 blocks work correctly but in the large model I’m working on it doesn’t work. However, by removing the part related to saving in the workspace there are no problems.I have a rather complex simulink model that uses simevents, I created a block that saves the packets (simevents entities) in the matlab workspace, this is done by calling a simulink function with a toWorkspace block inside it.
The problem is that by inserting one of these blocks into the model everything works correctly, but if I insert 2 matlab freezes and then closes without showing any error message. It’s not a "same name in the toWorkspace block" issue because it would give me a compilation error and instead it starts simulating and then crash.
The most absurd thing is that by creating a very simplified model I managed to make these 2 blocks work correctly but in the large model I’m working on it doesn’t work. However, by removing the part related to saving in the workspace there are no problems. I have a rather complex simulink model that uses simevents, I created a block that saves the packets (simevents entities) in the matlab workspace, this is done by calling a simulink function with a toWorkspace block inside it.
The problem is that by inserting one of these blocks into the model everything works correctly, but if I insert 2 matlab freezes and then closes without showing any error message. It’s not a "same name in the toWorkspace block" issue because it would give me a compilation error and instead it starts simulating and then crash.
The most absurd thing is that by creating a very simplified model I managed to make these 2 blocks work correctly but in the large model I’m working on it doesn’t work. However, by removing the part related to saving in the workspace there are no problems. simulink, crash, simevent, workspace MATLAB Answers — New Questions
Copilot Powerpoint cannot prompt changing font
Did anyone found this issue, I cannot prompt changing the font in Powerpoint as the tutorial video shown in the YouTube.
Did anyone found this issue, I cannot prompt changing the font in Powerpoint as the tutorial video shown in the YouTube. Read More
AVD user unable to unlock Shared Desktop
User can connect fine when they initiate session from Remote Desktop app. However, our local machine policy locks screen after 15 minutes idle time. This particular user is unable to unlock screen and user gets the error “Logon failure: the user has not been granted the requested logon type at this computer”.
Checked event viewer on the session host, and it logs event with event id 4625 and failed logon type 7. Which is unlock screen error.
I haven’t reset the FSLogix profile of the user, which could be the culprit.
User can connect fine when they initiate session from Remote Desktop app. However, our local machine policy locks screen after 15 minutes idle time. This particular user is unable to unlock screen and user gets the error “Logon failure: the user has not been granted the requested logon type at this computer”.Checked event viewer on the session host, and it logs event with event id 4625 and failed logon type 7. Which is unlock screen error. I haven’t reset the FSLogix profile of the user, which could be the culprit. Read More
How to remove Reset Zoom keyboard shortcut?
The keyboard shortcut for "Reset Zoom" is the same as for my close brakets key (}), which means I can never place curly brackets on my live scripts. I tried to go in the settings, but, for some reason, there isn’t an option to change or remove this shortcut. How can I change this setting otherwise?The keyboard shortcut for "Reset Zoom" is the same as for my close brakets key (}), which means I can never place curly brackets on my live scripts. I tried to go in the settings, but, for some reason, there isn’t an option to change or remove this shortcut. How can I change this setting otherwise? The keyboard shortcut for "Reset Zoom" is the same as for my close brakets key (}), which means I can never place curly brackets on my live scripts. I tried to go in the settings, but, for some reason, there isn’t an option to change or remove this shortcut. How can I change this setting otherwise? zoom, reset zoom, matlab, settings, curly braces, braces, brackets, curly brackets MATLAB Answers — New Questions
pulling non-consistent arrays out of a structure
Hello, I am trying to pull out arrays from a structure previously defined in my code to then find the median behavior, so I can plot alongside my individual object’s behaviors. The overall goal is to track median behavior of all obects over the time of the experiment.
Let me create an example via words, as I do not know how to recapitulate via code. Object 1-5 were detected over the whole length of the experiment, so they have all data points. Object 6-9 had varying degrees of detection, but were detected for more than 70% of the experiment, and so are considered ‘tracked well enough to retain’.
The problem is when attempting horzcat or any way to pull data out of the structure, due to the inconsistent size, matlab has an error. The overall idea I have to use a ‘full detection’ object to compare all other objects to, and if an image frame wasn’t found in the array of a certain object, to fill the row that should have been that with NaN. Then all arrays would be consistent, and I could pull them out of their individual sections within the structure to then collectively median.
While I don’t know how to do most of that, attached is the structure, and what I would like to do with the structure once the NaN is inserted into different objects. If there is a better or more efficient way to do this, perhaps without even inserting the NaN, please let me know!!
load ‘DataStruct.mat’
% Note that Data.m was used to contruct two different populations, Data.PC3
% and .MDA, disregard Data.m at this point
%once NaN inserted, separate x and y of each object within the structure
%for easier extraction
idxPC3 =
5 6 7 8 9
for i = 1:length(idxPC3)
for j = 1:length(Data.m{idxPC3(i)}.n)
if i== 1
Data.PC3.x = Data.m{idxPC3(i)}.n{1,j}(:,1);
Data.PC3.y = Data.m{idxPC3(i)}.n{1,j}(:,2);
else
Data.PC3.x = horzcat(Data.PC3.x, Data.m{idxPC3(i)}.n{1,j}(:,1));
Data.PC3.y = horzcat(Data.PC3.y, Data.m{idxPC3(i)}.n{1,j}(:,2));
end
end
end
MedPC3= median(Data.PC3.y, 2) %the median,2 is used for median behavior across time points, not at the median time point
plot(Data.PC3.x, MedPC3) %plot the median behavior with respect to time (x data points)Hello, I am trying to pull out arrays from a structure previously defined in my code to then find the median behavior, so I can plot alongside my individual object’s behaviors. The overall goal is to track median behavior of all obects over the time of the experiment.
Let me create an example via words, as I do not know how to recapitulate via code. Object 1-5 were detected over the whole length of the experiment, so they have all data points. Object 6-9 had varying degrees of detection, but were detected for more than 70% of the experiment, and so are considered ‘tracked well enough to retain’.
The problem is when attempting horzcat or any way to pull data out of the structure, due to the inconsistent size, matlab has an error. The overall idea I have to use a ‘full detection’ object to compare all other objects to, and if an image frame wasn’t found in the array of a certain object, to fill the row that should have been that with NaN. Then all arrays would be consistent, and I could pull them out of their individual sections within the structure to then collectively median.
While I don’t know how to do most of that, attached is the structure, and what I would like to do with the structure once the NaN is inserted into different objects. If there is a better or more efficient way to do this, perhaps without even inserting the NaN, please let me know!!
load ‘DataStruct.mat’
% Note that Data.m was used to contruct two different populations, Data.PC3
% and .MDA, disregard Data.m at this point
%once NaN inserted, separate x and y of each object within the structure
%for easier extraction
idxPC3 =
5 6 7 8 9
for i = 1:length(idxPC3)
for j = 1:length(Data.m{idxPC3(i)}.n)
if i== 1
Data.PC3.x = Data.m{idxPC3(i)}.n{1,j}(:,1);
Data.PC3.y = Data.m{idxPC3(i)}.n{1,j}(:,2);
else
Data.PC3.x = horzcat(Data.PC3.x, Data.m{idxPC3(i)}.n{1,j}(:,1));
Data.PC3.y = horzcat(Data.PC3.y, Data.m{idxPC3(i)}.n{1,j}(:,2));
end
end
end
MedPC3= median(Data.PC3.y, 2) %the median,2 is used for median behavior across time points, not at the median time point
plot(Data.PC3.x, MedPC3) %plot the median behavior with respect to time (x data points) Hello, I am trying to pull out arrays from a structure previously defined in my code to then find the median behavior, so I can plot alongside my individual object’s behaviors. The overall goal is to track median behavior of all obects over the time of the experiment.
Let me create an example via words, as I do not know how to recapitulate via code. Object 1-5 were detected over the whole length of the experiment, so they have all data points. Object 6-9 had varying degrees of detection, but were detected for more than 70% of the experiment, and so are considered ‘tracked well enough to retain’.
The problem is when attempting horzcat or any way to pull data out of the structure, due to the inconsistent size, matlab has an error. The overall idea I have to use a ‘full detection’ object to compare all other objects to, and if an image frame wasn’t found in the array of a certain object, to fill the row that should have been that with NaN. Then all arrays would be consistent, and I could pull them out of their individual sections within the structure to then collectively median.
While I don’t know how to do most of that, attached is the structure, and what I would like to do with the structure once the NaN is inserted into different objects. If there is a better or more efficient way to do this, perhaps without even inserting the NaN, please let me know!!
load ‘DataStruct.mat’
% Note that Data.m was used to contruct two different populations, Data.PC3
% and .MDA, disregard Data.m at this point
%once NaN inserted, separate x and y of each object within the structure
%for easier extraction
idxPC3 =
5 6 7 8 9
for i = 1:length(idxPC3)
for j = 1:length(Data.m{idxPC3(i)}.n)
if i== 1
Data.PC3.x = Data.m{idxPC3(i)}.n{1,j}(:,1);
Data.PC3.y = Data.m{idxPC3(i)}.n{1,j}(:,2);
else
Data.PC3.x = horzcat(Data.PC3.x, Data.m{idxPC3(i)}.n{1,j}(:,1));
Data.PC3.y = horzcat(Data.PC3.y, Data.m{idxPC3(i)}.n{1,j}(:,2));
end
end
end
MedPC3= median(Data.PC3.y, 2) %the median,2 is used for median behavior across time points, not at the median time point
plot(Data.PC3.x, MedPC3) %plot the median behavior with respect to time (x data points) structures MATLAB Answers — New Questions
How do you convert a surf object to an isosurface?
How to convert a regular surf surface (rectangular mesh) to a patch isosurface (triangular mesh)?
I have seen how to go the other direction, but this one eludes me. After creating the isosurface, I need to run inpolyhedron() to see if points are inside or outside the object.
theta = (pi:0.1:pi);
phi = 0:0.1:pi);
[THETA, PHI] = meshgrid(theta, phi);
x = cos(THETA).* sin(PHI);
y = sin(THETA).*sin(PHI);
z = cos(PHI;
ellipsoid = surf(x,y,z);
(Extract the isosurface from the ellipsoid…)
fv = isosurface(something something …)
pts = rand(5,3);
in = inpolyhedron(fv,pts); % check if points are inside or outside objectHow to convert a regular surf surface (rectangular mesh) to a patch isosurface (triangular mesh)?
I have seen how to go the other direction, but this one eludes me. After creating the isosurface, I need to run inpolyhedron() to see if points are inside or outside the object.
theta = (pi:0.1:pi);
phi = 0:0.1:pi);
[THETA, PHI] = meshgrid(theta, phi);
x = cos(THETA).* sin(PHI);
y = sin(THETA).*sin(PHI);
z = cos(PHI;
ellipsoid = surf(x,y,z);
(Extract the isosurface from the ellipsoid…)
fv = isosurface(something something …)
pts = rand(5,3);
in = inpolyhedron(fv,pts); % check if points are inside or outside object How to convert a regular surf surface (rectangular mesh) to a patch isosurface (triangular mesh)?
I have seen how to go the other direction, but this one eludes me. After creating the isosurface, I need to run inpolyhedron() to see if points are inside or outside the object.
theta = (pi:0.1:pi);
phi = 0:0.1:pi);
[THETA, PHI] = meshgrid(theta, phi);
x = cos(THETA).* sin(PHI);
y = sin(THETA).*sin(PHI);
z = cos(PHI;
ellipsoid = surf(x,y,z);
(Extract the isosurface from the ellipsoid…)
fv = isosurface(something something …)
pts = rand(5,3);
in = inpolyhedron(fv,pts); % check if points are inside or outside object isosurface, meshgrid, inpolyhedron, surf MATLAB Answers — New Questions
how to disappear email content ,just show email numbers in notification in Win11
I want just receive how many new email coming in notfications , do not want show details contents as i marked Yellow in picture below , how to setting ?
I want just receive how many new email coming in notfications , do not want show details contents as i marked Yellow in picture below , how to setting ? Read More
Regrid netcdf file using weighted average method
How can we regrid netcdf file in matlab? I found out in Python it is easy to regrid 3-dimensional data using xarray or xesmf but it seems not easy to regrid regrid 3-D netcdf in matlab? I want to resample a netcdf data from 0.25 degree to 1 degree. I want to use the the weighted average of all non-NODATA contributing pixels. How can I do this in Matlab? Is there a good function for resampling gridded datasets in matlab using different resampling methods?How can we regrid netcdf file in matlab? I found out in Python it is easy to regrid 3-dimensional data using xarray or xesmf but it seems not easy to regrid regrid 3-D netcdf in matlab? I want to resample a netcdf data from 0.25 degree to 1 degree. I want to use the the weighted average of all non-NODATA contributing pixels. How can I do this in Matlab? Is there a good function for resampling gridded datasets in matlab using different resampling methods? How can we regrid netcdf file in matlab? I found out in Python it is easy to regrid 3-dimensional data using xarray or xesmf but it seems not easy to regrid regrid 3-D netcdf in matlab? I want to resample a netcdf data from 0.25 degree to 1 degree. I want to use the the weighted average of all non-NODATA contributing pixels. How can I do this in Matlab? Is there a good function for resampling gridded datasets in matlab using different resampling methods? netcdf, regrid, resample MATLAB Answers — New Questions
Can’t Zoom Out on Files Section of Teams – Rest Fine
I have somehow zoomed out on the files section. The font size is really hard to see.
If I click out of the files area of Teams I can Ctl – or + and zoom in and out. This works for all of Teams EXCEPT for the files tab. If I click into the files tab and do Ctl – or + nothing happens.
How can I reset the font size! Restarting doesn’t work.
I have somehow zoomed out on the files section. The font size is really hard to see. If I click out of the files area of Teams I can Ctl – or + and zoom in and out. This works for all of Teams EXCEPT for the files tab. If I click into the files tab and do Ctl – or + nothing happens. How can I reset the font size! Restarting doesn’t work. Read More
How to make cells in one column change colour based on corresponding cells in another column?
Hi,
I’m trying to make the cells in column A become green when there is a date in the corresponding row in column C. I found a formula that worked =C2<=TODAY() when applied to A2, but when I tried to make it apply to the whole range on A2:A13, all the cells in column became green. But I only want A2, A3, A4, A10 & A11 to become green because they have a date in the corresponding cell in column C. Thank you in advance.
Hi, I’m trying to make the cells in column A become green when there is a date in the corresponding row in column C. I found a formula that worked =C2<=TODAY() when applied to A2, but when I tried to make it apply to the whole range on A2:A13, all the cells in column became green. But I only want A2, A3, A4, A10 & A11 to become green because they have a date in the corresponding cell in column C. Thank you in advance. Read More
Help with Project Duration
I have made a master project schedule and it hold all my subprojects which have their own calendar. I have been able to add separate calendar to each task but my total duration for the sub project is showing up wrong.
Can anyone please help me with this issue.
I have made a master project schedule and it hold all my subprojects which have their own calendar. I have been able to add separate calendar to each task but my total duration for the sub project is showing up wrong. Can anyone please help me with this issue. Read More