Category: News
Converting Equation of Two Variables Into Matrix Elements – ERROR: Operator ‘*’ is not supported for operands of type ‘function_handle’.
Hello everyone,
I am trying to output a square matrix that is N x M in size, where N = M. In my case, N = 3. So this is a "3×3" matrix
I have a variable that’s called "Kernel". This variable is calculated as an equation in terms of "z" and "z_prime".
My values in z_prime will vary from L / 2N to (2N-1)*(L/2N) , in steps of "L/N".
My "z" variable will be used as an "integration variable" as seen below.
I am trying to calculate an output called the "Z Matrix" which will integrate the "Kernal" variable across specific ranges.
I attached a .pdf file to clarify my end goal.
See the .pdf file attached:
Z_Matrix_Output.pdf
My Integration Limits for "z" will be going from:
z_start = 0 : L/N : (N-1) * (L/N)
z_end = L/N : L/N : L
As of right now, I’m getting the error:
Operator ‘*’ is not supported for operands of type ‘function_handle’.
This is after I tried using "function handles" in my code.
In my attempt, I have tried to use for loops and created function handles to make it easier to generate this matrix.However, I didn’t end up with a "N X M" matrix, I just ended up with a "1 X N" matrix.
I know that there is a way to use "nested" for loops to generate a square matrix of an "N X M" size. However, I wasn’t quite sure on how to implement that in MATLAB for my case.
I have tried to look through different questions/answers on the Mathworks Forum regarding converting equations of two variables into "matrix elements". However, I wasn’t able to find anything that was relevant to my case.
I attached my MATLAB Code for reference.
See MATLAB .m file attached:
Z_Calculation.mHello everyone,
I am trying to output a square matrix that is N x M in size, where N = M. In my case, N = 3. So this is a "3×3" matrix
I have a variable that’s called "Kernel". This variable is calculated as an equation in terms of "z" and "z_prime".
My values in z_prime will vary from L / 2N to (2N-1)*(L/2N) , in steps of "L/N".
My "z" variable will be used as an "integration variable" as seen below.
I am trying to calculate an output called the "Z Matrix" which will integrate the "Kernal" variable across specific ranges.
I attached a .pdf file to clarify my end goal.
See the .pdf file attached:
Z_Matrix_Output.pdf
My Integration Limits for "z" will be going from:
z_start = 0 : L/N : (N-1) * (L/N)
z_end = L/N : L/N : L
As of right now, I’m getting the error:
Operator ‘*’ is not supported for operands of type ‘function_handle’.
This is after I tried using "function handles" in my code.
In my attempt, I have tried to use for loops and created function handles to make it easier to generate this matrix.However, I didn’t end up with a "N X M" matrix, I just ended up with a "1 X N" matrix.
I know that there is a way to use "nested" for loops to generate a square matrix of an "N X M" size. However, I wasn’t quite sure on how to implement that in MATLAB for my case.
I have tried to look through different questions/answers on the Mathworks Forum regarding converting equations of two variables into "matrix elements". However, I wasn’t able to find anything that was relevant to my case.
I attached my MATLAB Code for reference.
See MATLAB .m file attached:
Z_Calculation.m Hello everyone,
I am trying to output a square matrix that is N x M in size, where N = M. In my case, N = 3. So this is a "3×3" matrix
I have a variable that’s called "Kernel". This variable is calculated as an equation in terms of "z" and "z_prime".
My values in z_prime will vary from L / 2N to (2N-1)*(L/2N) , in steps of "L/N".
My "z" variable will be used as an "integration variable" as seen below.
I am trying to calculate an output called the "Z Matrix" which will integrate the "Kernal" variable across specific ranges.
I attached a .pdf file to clarify my end goal.
See the .pdf file attached:
Z_Matrix_Output.pdf
My Integration Limits for "z" will be going from:
z_start = 0 : L/N : (N-1) * (L/N)
z_end = L/N : L/N : L
As of right now, I’m getting the error:
Operator ‘*’ is not supported for operands of type ‘function_handle’.
This is after I tried using "function handles" in my code.
In my attempt, I have tried to use for loops and created function handles to make it easier to generate this matrix.However, I didn’t end up with a "N X M" matrix, I just ended up with a "1 X N" matrix.
I know that there is a way to use "nested" for loops to generate a square matrix of an "N X M" size. However, I wasn’t quite sure on how to implement that in MATLAB for my case.
I have tried to look through different questions/answers on the Mathworks Forum regarding converting equations of two variables into "matrix elements". However, I wasn’t able to find anything that was relevant to my case.
I attached my MATLAB Code for reference.
See MATLAB .m file attached:
Z_Calculation.m matrix array, matrix, matrix manipulation, integration, numerical integration MATLAB Answers — New Questions
Any ideas for making this exponential decay function match the actual data better?
Hi all,
I have been trying to fit some weight data that was collected over time to an exponential decay function. I have come up with the following:
f(t) = An + (A0 – An) * exp (- t / tau)
Where: An = final data point measured, A0 = initial data point measured, and tau = a time constant that I am seeking to fit/solve for.
I am using the following code to set up the decay and solve for tau. Data is the collected weight data and t is the times at which the data was collected:
funlist={@(tau, t) An + (A0 – An) .* exp(-t / tau),1}; % define function
[tau]=fminspleas(funlist,1,time,data); % tau estimate
A0 = data(1);
An = data(end);
fn_data=@(t) funlist{1}(tau,t);
When I go to plot the data points to compare it with the fit, I notice the decay function does not do well at later time points where there is a greater plateau (see attached). I am wondering if anyone has any code or functions suggestions to help improve the fit of the curve? Any suggestions are welcome. Thank you very much!Hi all,
I have been trying to fit some weight data that was collected over time to an exponential decay function. I have come up with the following:
f(t) = An + (A0 – An) * exp (- t / tau)
Where: An = final data point measured, A0 = initial data point measured, and tau = a time constant that I am seeking to fit/solve for.
I am using the following code to set up the decay and solve for tau. Data is the collected weight data and t is the times at which the data was collected:
funlist={@(tau, t) An + (A0 – An) .* exp(-t / tau),1}; % define function
[tau]=fminspleas(funlist,1,time,data); % tau estimate
A0 = data(1);
An = data(end);
fn_data=@(t) funlist{1}(tau,t);
When I go to plot the data points to compare it with the fit, I notice the decay function does not do well at later time points where there is a greater plateau (see attached). I am wondering if anyone has any code or functions suggestions to help improve the fit of the curve? Any suggestions are welcome. Thank you very much! Hi all,
I have been trying to fit some weight data that was collected over time to an exponential decay function. I have come up with the following:
f(t) = An + (A0 – An) * exp (- t / tau)
Where: An = final data point measured, A0 = initial data point measured, and tau = a time constant that I am seeking to fit/solve for.
I am using the following code to set up the decay and solve for tau. Data is the collected weight data and t is the times at which the data was collected:
funlist={@(tau, t) An + (A0 – An) .* exp(-t / tau),1}; % define function
[tau]=fminspleas(funlist,1,time,data); % tau estimate
A0 = data(1);
An = data(end);
fn_data=@(t) funlist{1}(tau,t);
When I go to plot the data points to compare it with the fit, I notice the decay function does not do well at later time points where there is a greater plateau (see attached). I am wondering if anyone has any code or functions suggestions to help improve the fit of the curve? Any suggestions are welcome. Thank you very much! exponential decay, custom cuve fitting MATLAB Answers — New Questions
Checking in: Microsoft AI Bootcamp For Educators
Hello TSP community!
Liz Butowicz here from the Microsoft Worldwide Learning team checking in on those of you delivering the Microsoft AI Bootcamp for Educators to see how they are going, any feedback from customers, and if you have any questions.
Looking forward to hearing from you!
Hello TSP community!
Liz Butowicz here from the Microsoft Worldwide Learning team checking in on those of you delivering the Microsoft AI Bootcamp for Educators to see how they are going, any feedback from customers, and if you have any questions.
Looking forward to hearing from you! Read More
Create/Edit On-Premise type inbound connector in UI after cmdlet update
Following the updates on 24th July to the New/Set-InboundConnector cmdlets, you can no longer create Inbound connectors of type on-premise in the UI.
You get the error:
Microsoft.Exchange.Management.Tasks.ConnectorNotApplicablePropertyException|The properties ‘RestrictDomainsToCertificate’ are not applicable to connector of type
‘OnPremises’ with the current combination. Connector creation or modification aborted.
Essentially, the RestrictDomainsToCertificate and RestrictDomainsToIPAddresses parameters were updated to only be allowed for partner connectors.
This is understandable, since these elements aren’t considered for emails delivered via on-premise connectors anyway.
However, if you try and create an on-premise connector in the Exchange Online UI, particularly for certificated based auth, the RestrictDomainsToCertificate is set to $true by default in the UI, even though the PowerShell param default is $false.
If so, you can still make the connector, you just need to do so via PowerShell, and either omit the -RestrictDomainsToCertificate parameter or explicitly set it as $false.
If you need to edit an existing connector that was created with this set to true, you need to set it to false first before editing, and again, only via PowerShell.
Set-InboundConnector -Identity “connectorID/name” -RestrictDomainsToCertificate:$false
Following the updates on 24th July to the New/Set-InboundConnector cmdlets, you can no longer create Inbound connectors of type on-premise in the UI. You get the error:Microsoft.Exchange.Management.Tasks.ConnectorNotApplicablePropertyException|The properties ‘RestrictDomainsToCertificate’ are not applicable to connector of type’OnPremises’ with the current combination. Connector creation or modification aborted. Essentially, the RestrictDomainsToCertificate and RestrictDomainsToIPAddresses parameters were updated to only be allowed for partner connectors.This is understandable, since these elements aren’t considered for emails delivered via on-premise connectors anyway. However, if you try and create an on-premise connector in the Exchange Online UI, particularly for certificated based auth, the RestrictDomainsToCertificate is set to $true by default in the UI, even though the PowerShell param default is $false. If so, you can still make the connector, you just need to do so via PowerShell, and either omit the -RestrictDomainsToCertificate parameter or explicitly set it as $false. If you need to edit an existing connector that was created with this set to true, you need to set it to false first before editing, and again, only via PowerShell.Set-InboundConnector -Identity “connectorID/name” -RestrictDomainsToCertificate:$false Read More
Using a variable to turn criteria off and on
I have been trying to design a template to standardize account reconciliation in a way that even excel novices could complete the process without too much instruction. There are 7 elements to the “account numbers” we use which allows us to group or split out sub accounts as needed. The way I have set up the template involves listing the CFS element then choosing match or ignore in the adjacent cell (as seen below) then using an unholy amount of IF statements. I feel like I have chosen the least effective way of setting this up, plus it required me to input macro-assigned buttons to add 0’s to the relevant blank columns on the reference sheets, increasing the file size even further. Is there a more efficient way to go about this process to keep my file size down and avoid needing all my RAM to work in this workbook? I will note that any given file could have 20+ different iterations of the Template sheet with various combinations of the CFS elements, so I know the current version I’ve made is a recipe for future frustration. File is attached for anyone who wants to be disturbed looking at my 540+ character long formulas.
OrgPBH60000IGNOREFundSPNSRIGNOREFunction13IGNOREEntity0IGNORESource0IGNOREPurpose0IGNOREProject20000957MATCH
I have been trying to design a template to standardize account reconciliation in a way that even excel novices could complete the process without too much instruction. There are 7 elements to the “account numbers” we use which allows us to group or split out sub accounts as needed. The way I have set up the template involves listing the CFS element then choosing match or ignore in the adjacent cell (as seen below) then using an unholy amount of IF statements. I feel like I have chosen the least effective way of setting this up, plus it required me to input macro-assigned buttons to add 0’s to the relevant blank columns on the reference sheets, increasing the file size even further. Is there a more efficient way to go about this process to keep my file size down and avoid needing all my RAM to work in this workbook? I will note that any given file could have 20+ different iterations of the Template sheet with various combinations of the CFS elements, so I know the current version I’ve made is a recipe for future frustration. File is attached for anyone who wants to be disturbed looking at my 540+ character long formulas. OrgPBH60000IGNOREFundSPNSRIGNOREFunction13IGNOREEntity0IGNORESource0IGNOREPurpose0IGNOREProject20000957MATCH Read More
REGISTER TODAY: Azure Office Hours | August 15th
Join us on August 15th, 8:00am – 9:00am PT for Azure Office Hours as our Microsoft SMEs walk you through the new Azure Nonprofit Data Strategy eBook for ITDMs.
Hear the highlights on the new in-depth eBook and gather some tips on how to help nonprofits harness their data to drive nonprofit mission success. Learn how Microsoft Fabric’s integrated analytics platform, combined with a robust data strategy, is key to driving mission success for nonprofits.
Speakers
Sergio Victorio Queija
Director, Industry, Tech for Social Impact, Microsoft Philanthropies
Christian Bucher
Senior Specialist, Tech for Social Impact, Microsoft CELAI Switzerland
Join us on August 15th, 8:00am – 9:00am PT for Azure Office Hours as our Microsoft SMEs walk you through the new Azure Nonprofit Data Strategy eBook for ITDMs.
Hear the highlights on the new in-depth eBook and gather some tips on how to help nonprofits harness their data to drive nonprofit mission success. Learn how Microsoft Fabric’s integrated analytics platform, combined with a robust data strategy, is key to driving mission success for nonprofits.
REGISTER TODAY
Speakers
Sergio Victorio Queija
Director, Industry, Tech for Social Impact, Microsoft Philanthropies
Christian Bucher
Senior Specialist, Tech for Social Impact, Microsoft CELAI Switzerland Read More
MSN365 Unable to Update “Something Went Wrong” even after two repairs
Hello, I continue to run into a MSN365 account update issue. I have paid for an annual personal MSN 365 account. Two weeks ago the entire MSN 365 subscription updated successfully. Recently when I check for account update, I get an error message for each MSN 365 product.
“Something went wrong …. Go online for additional help……Error Code: 30088-27″
I followed the online link and did a full online repair of MSN 365. Twice but still get the same error message.
I’m still getting an error. What should I do?
To assist with this request to fix:
1. my Microsoft 365 MSO Version id is: 2407 Build 16.0.17830.20056 64-bit
2. I’ve run a full online repair 2 days in a row to no avail
Please advise how to fix this issue. Thank you
Hello, I continue to run into a MSN365 account update issue. I have paid for an annual personal MSN 365 account. Two weeks ago the entire MSN 365 subscription updated successfully. Recently when I check for account update, I get an error message for each MSN 365 product. “Something went wrong …. Go online for additional help……Error Code: 30088-27″I followed the online link and did a full online repair of MSN 365. Twice but still get the same error message. I’m still getting an error. What should I do?To assist with this request to fix:1. my Microsoft 365 MSO Version id is: 2407 Build 16.0.17830.20056 64-bit2. I’ve run a full online repair 2 days in a row to no avail Please advise how to fix this issue. Thank you Read More
Support tip: Turn off Activation Lock in Apple Business Manager or Apple School Manager with Intune
Author: Benjamin Flamm – Product Manager 2 | Microsoft Intune
Activation Lock on Apple devices helps keep the device secure if it falls into the wrong hands and works to prevent unauthorized access to data on devices that are owned by your organization. While Intune has a feature to disable Activation Lock, we wanted to highlight that Apple has also made this functionality available in Apple School Manager (ASM) and Apple Business Manager (ABM), keep reading to learn more!
Allowing Activation Lock using Intune
First, devices need to be enrolled through Automated Device Enrollment, which will enable supervision and generate an Activation Lock bypass code that is stored in the Microsoft Intune admin center under the per-device Hardware blade (Devices > All devices > select a device > Hardware).
Next, you’ll need to allow users to enable Activation Lock on devices by configuring the “Activation Lock Allowed While Supervised” setting to Allowed in the settings catalog under Device configuration > Settings catalog > MDM Options.
As a final step, users need to sign in to the Find My app on their device which will lock the device to their Apple account.
If a user already has Find My enabled when this setting is configured, then the device will be activation locked. If a user never enables Find My then the device will never be activation locked. To verify if Activation Lock is enabled on an iOS or iPadOS device, go to System Settings, select the Apple Account, and then Find My:
To verify if Activation Lock is enabled on a macOS device, go to System Settings, iCloud, Find My Mac:
On macOS, you can also verify the status of Activation Lock on devices by selecting the Apple menu in the menu bar, holding down the option key until the System Information option shows, and clicking System Information.
Once a device is locked to a user’s Apple account, you’ll need their account and password to access the device. This is troublesome and can be unattainable in situations where the user has already left the company. Alternatively, you can use the Activation Lock bypass code, but if the device has been wiped or removed from Intune, this code will no longer be available. The bypass codes would’ve had to be manually copied and saved somewhere else prior.
Disable Activation Lock action using Intune
To address these issues, we introduced the Disable Activation Lock device action in Intune, which allows you to remotely turn off Activation Lock on supervised iOS/iPadOS and macOS devices without needing the previous user’s Apple account and password or the bypass code. You can learn more on how to manage activation lock through Intune by reviewing Disable Activation Lock on Apple devices with Intune.
While this action is helpful, it doesn’t allow you to remotely view the status of Activation Lock on a device and if the device is ready to be repurposed.
Activation Lock management in ABM and ASM
At WWDC24 in June, Apple announced the ability to manage Activation Lock on devices that were enrolled using Automated Device Enrollment and managed in ABM and ASM. Not only does this new functionality let you ‘Turn off activation lock’, but you can also view the status of Activation Lock on devices directly from the AMB/ASM console:
You can learn more about this capability by reviewing Apple’s documentation:
Turn off Activation Lock in Apple Business Manager | Apple Support.
This is a major improvement for managing Activation Lock and we’re so excited to see this available in ABM and ASM. While Activation Lock management is still supported in Intune, we recommended using this new method through ABM and ASM for disabling Activation Lock on devices.
If you have any questions leave a comment below or reach out to us on X @IntuneSuppTeam.
Microsoft Tech Community – Latest Blogs –Read More
Issue with Contact analysis in Simscape – solid body contact
Hi,
I am trying to simulate a gear pair contact analysis in Simscape where I import the bodies from stl file. Upon simulation, the gear tooth meshings are not happening correctly and I have severe interference. I tried solving the issue with different solvers, but still the meshing is not appropriate. Could you please suggest how I can solve this issue?
Thanks,
AnandHi,
I am trying to simulate a gear pair contact analysis in Simscape where I import the bodies from stl file. Upon simulation, the gear tooth meshings are not happening correctly and I have severe interference. I tried solving the issue with different solvers, but still the meshing is not appropriate. Could you please suggest how I can solve this issue?
Thanks,
Anand Hi,
I am trying to simulate a gear pair contact analysis in Simscape where I import the bodies from stl file. Upon simulation, the gear tooth meshings are not happening correctly and I have severe interference. I tried solving the issue with different solvers, but still the meshing is not appropriate. Could you please suggest how I can solve this issue?
Thanks,
Anand simscape, contact, gears, contact analysis MATLAB Answers — New Questions
How to fill missing time points from a txt file
I have txt files that I am trying to read in and towards the end of the file it starts skipping time values and data points. I am trying to compare this txt file to another excel data set. I would like to create the missing time variables on the txt file and just fill them with NaN variables that way I can better match up the time. Should I use the fillmissing function? Any suggestion would be appreciated.
The excel file is also time shifted by about 3 seconds late so that is another problem I will have to face.I have txt files that I am trying to read in and towards the end of the file it starts skipping time values and data points. I am trying to compare this txt file to another excel data set. I would like to create the missing time variables on the txt file and just fill them with NaN variables that way I can better match up the time. Should I use the fillmissing function? Any suggestion would be appreciated.
The excel file is also time shifted by about 3 seconds late so that is another problem I will have to face. I have txt files that I am trying to read in and towards the end of the file it starts skipping time values and data points. I am trying to compare this txt file to another excel data set. I would like to create the missing time variables on the txt file and just fill them with NaN variables that way I can better match up the time. Should I use the fillmissing function? Any suggestion would be appreciated.
The excel file is also time shifted by about 3 seconds late so that is another problem I will have to face. fillmissing, readtable, retime, missing data MATLAB Answers — New Questions
How to create a Simscape custom component with 2 different thermal liquids?
Dear all,
I am currently trying to create a custom component block for Simscape Thermal Liquid that models the heat transfer behaviour of a specific heat exchanger between two different thermal liquids. The code creates the block with no errors, nor warnings, and runs fine as long as I do not define thermal properties for both liquids. When I do define thermal properties for both liquids, I get the following error:
I imagine that the error comes from the fact that my code "expects" the 4 nodes (in/out for both liquids) to share properties, but I cannot find where that definition comes from…
Does anyone know how to define nodes that do not share fluid properties?
As a simpler test case, I am trying to make it work with a custom component block based on the Flow Rate Sensor (TL) library block, with 4 ports instead of 2. Same error comes up, but the code is much simpler to work with:
component flow_sensor_two_fluids
nodes
A = foundation.thermal_liquid.thermal_liquid; % A :left
B = foundation.thermal_liquid.thermal_liquid; % B :right
C = foundation.thermal_liquid.thermal_liquid; % C :left
D = foundation.thermal_liquid.thermal_liquid; % D :right
end
outputs
M1 = {0, ‘kg/s’};
M2 = {0, ‘kg/s’};
end
annotations
[M1] : Side=top
[M2] : Side=bottom
end
variables (Access = protected, ExternalAccess = none)
mdot1 = {0, ‘kg/s’}; % Mass flow rate from port A to port B
Phi1 = {0, ‘kW’ }; % Energy flow rate from port A to port B
mdot2 = {0, ‘kg/s’}; % Mass flow rate from port C to port D
Phi2 = {0, ‘kW’ }; % Energy flow rate from port C to port D
end
branches
mdot1 : A.mdot -> B.mdot;
Phi1 : A.Phi -> B.Phi;
mdot2 : C.mdot -> D.mdot;
Phi2 : C.Phi -> D.Phi;
end
equations
M1 == mdot1;
A.p == B.p;
A.T == B.T;
M2 == mdot2;
C.p == D.p;
C.T == D.T;
end
end
Thank you for your help!
PS: (I am aware that there already exists a heat exchanger (TL-TL) block that MathWorks provide, but would prefer to create my own)Dear all,
I am currently trying to create a custom component block for Simscape Thermal Liquid that models the heat transfer behaviour of a specific heat exchanger between two different thermal liquids. The code creates the block with no errors, nor warnings, and runs fine as long as I do not define thermal properties for both liquids. When I do define thermal properties for both liquids, I get the following error:
I imagine that the error comes from the fact that my code "expects" the 4 nodes (in/out for both liquids) to share properties, but I cannot find where that definition comes from…
Does anyone know how to define nodes that do not share fluid properties?
As a simpler test case, I am trying to make it work with a custom component block based on the Flow Rate Sensor (TL) library block, with 4 ports instead of 2. Same error comes up, but the code is much simpler to work with:
component flow_sensor_two_fluids
nodes
A = foundation.thermal_liquid.thermal_liquid; % A :left
B = foundation.thermal_liquid.thermal_liquid; % B :right
C = foundation.thermal_liquid.thermal_liquid; % C :left
D = foundation.thermal_liquid.thermal_liquid; % D :right
end
outputs
M1 = {0, ‘kg/s’};
M2 = {0, ‘kg/s’};
end
annotations
[M1] : Side=top
[M2] : Side=bottom
end
variables (Access = protected, ExternalAccess = none)
mdot1 = {0, ‘kg/s’}; % Mass flow rate from port A to port B
Phi1 = {0, ‘kW’ }; % Energy flow rate from port A to port B
mdot2 = {0, ‘kg/s’}; % Mass flow rate from port C to port D
Phi2 = {0, ‘kW’ }; % Energy flow rate from port C to port D
end
branches
mdot1 : A.mdot -> B.mdot;
Phi1 : A.Phi -> B.Phi;
mdot2 : C.mdot -> D.mdot;
Phi2 : C.Phi -> D.Phi;
end
equations
M1 == mdot1;
A.p == B.p;
A.T == B.T;
M2 == mdot2;
C.p == D.p;
C.T == D.T;
end
end
Thank you for your help!
PS: (I am aware that there already exists a heat exchanger (TL-TL) block that MathWorks provide, but would prefer to create my own) Dear all,
I am currently trying to create a custom component block for Simscape Thermal Liquid that models the heat transfer behaviour of a specific heat exchanger between two different thermal liquids. The code creates the block with no errors, nor warnings, and runs fine as long as I do not define thermal properties for both liquids. When I do define thermal properties for both liquids, I get the following error:
I imagine that the error comes from the fact that my code "expects" the 4 nodes (in/out for both liquids) to share properties, but I cannot find where that definition comes from…
Does anyone know how to define nodes that do not share fluid properties?
As a simpler test case, I am trying to make it work with a custom component block based on the Flow Rate Sensor (TL) library block, with 4 ports instead of 2. Same error comes up, but the code is much simpler to work with:
component flow_sensor_two_fluids
nodes
A = foundation.thermal_liquid.thermal_liquid; % A :left
B = foundation.thermal_liquid.thermal_liquid; % B :right
C = foundation.thermal_liquid.thermal_liquid; % C :left
D = foundation.thermal_liquid.thermal_liquid; % D :right
end
outputs
M1 = {0, ‘kg/s’};
M2 = {0, ‘kg/s’};
end
annotations
[M1] : Side=top
[M2] : Side=bottom
end
variables (Access = protected, ExternalAccess = none)
mdot1 = {0, ‘kg/s’}; % Mass flow rate from port A to port B
Phi1 = {0, ‘kW’ }; % Energy flow rate from port A to port B
mdot2 = {0, ‘kg/s’}; % Mass flow rate from port C to port D
Phi2 = {0, ‘kW’ }; % Energy flow rate from port C to port D
end
branches
mdot1 : A.mdot -> B.mdot;
Phi1 : A.Phi -> B.Phi;
mdot2 : C.mdot -> D.mdot;
Phi2 : C.Phi -> D.Phi;
end
equations
M1 == mdot1;
A.p == B.p;
A.T == B.T;
M2 == mdot2;
C.p == D.p;
C.T == D.T;
end
end
Thank you for your help!
PS: (I am aware that there already exists a heat exchanger (TL-TL) block that MathWorks provide, but would prefer to create my own) simscape, custom components, themal liquid MATLAB Answers — New Questions
How can i use ansys_aas to interface between matlab and ansys workbench ?
How can i use ansys_aas to interface between matlab and ansys workbench ?How can i use ansys_aas to interface between matlab and ansys workbench ? How can i use ansys_aas to interface between matlab and ansys workbench ? ansys, matlab MATLAB Answers — New Questions
Blank page when I select Share Point list
Hi,
I have a Share Point site and it has 5 lists. I have worked on these lists for a few years and as of today, 4 of them open as usual but one opens with a blank white screen. The following is the steps I took before this problem occured;
Changed to Classic Experience as I thought this would help with another problem i was having.Went to the settings of the list and opened up one of the views and re-ordered the columns so that a lookup column appeared higher up the list.Selected OK.
Rather than go back to the list, a blank white screen appeared. I have tried clearing the browser cache, re-booting machine, refreshing page etc but nothing works. This list was displaying normally until I made the above changes. Any help appreciated.
Thanks
Hi,I have a Share Point site and it has 5 lists. I have worked on these lists for a few years and as of today, 4 of them open as usual but one opens with a blank white screen. The following is the steps I took before this problem occured;Changed to Classic Experience as I thought this would help with another problem i was having.Went to the settings of the list and opened up one of the views and re-ordered the columns so that a lookup column appeared higher up the list.Selected OK.Rather than go back to the list, a blank white screen appeared. I have tried clearing the browser cache, re-booting machine, refreshing page etc but nothing works. This list was displaying normally until I made the above changes. Any help appreciated. Thanks Read More
Document Library webpart folder
We would like to have a modern page with a Document Library web part which initially shows a specific (sub)folder base on the URL. In classic this functionality is possible using ?RootFolder=…. It does not seem to work in modern. Is there a workaround?
Steve
We would like to have a modern page with a Document Library web part which initially shows a specific (sub)folder base on the URL. In classic this functionality is possible using ?RootFolder=…. It does not seem to work in modern. Is there a workaround? Steve Read More
Microsoft sales org for FY25
Hi All,
I’m in search of information regarding MSFT’s sales org structure for FY25. Basically, how do the different orgs overlay to create the all-up GTM org under Judson. For example: How the product orgs are structured, how segments are defined, how Global Black Belt org overlays the sales teams. Any content, guidance or thoughts are very much appreciated!
Hi All, I’m in search of information regarding MSFT’s sales org structure for FY25. Basically, how do the different orgs overlay to create the all-up GTM org under Judson. For example: How the product orgs are structured, how segments are defined, how Global Black Belt org overlays the sales teams. Any content, guidance or thoughts are very much appreciated! Read More
Use WinGet 1.8 to download Microsoft Store apps
Windows Package Manager (WinGet) 1.8 now allows IT professionals to download Microsoft Store apps.
What is WinGet?
WinGet is a command-line tool that enables you to install and manage applications on Windows 10 and Windows 11 devices. WinGet supports a variety of sources, and it allows you to automate the installation and update process of applications, as well as to search and discover new apps.
What is WinGet Download?
WinGet Download provides the ability to download Microsoft Store apps for offline distribution to other devices in your network. This feature replaces the Enterprise Offline feature from the Microsoft Store for Business.
How can I use WinGet 1.8 to download Microsoft Store apps?
To use WinGet to download Microsoft Store apps, you need to have the latest version of WinGet installed on your device. You can check your WinGet version by running the command winget –version in a PowerShell or Command Prompt window. If you need to update WinGet, download the latest installer, run the command winget upgrade winget, or update App Installer from the Microsoft Store.
To download a Microsoft Store app, you can use the winget download command. For example, you can run the command winget download Calculator -s msstore to download the Calculator app from the Microsoft Store. This will create a folder in your Downloads directory, where you can find the downloaded app package. You can then copy the app package to another device and install it using the Add-AppxPackage PowerShell cmdlet. Run the command Add-AppxPackage -Path C:Usersusernamedownloads9WZDNCRFHVN5Calculator.appx to install the Calculator app on another device.
To learn more about WinGet 1.8 and its features, read the Windows Package Manager documentation and winget tool documentation.
Continue the conversation. Find best practices. Bookmark the Windows Tech Community, then follow us @MSWindowsITPro on X and on LinkedIn. Looking for support? Visit Windows on Microsoft Q&A.
Microsoft Tech Community – Latest Blogs –Read More
I want to make curve fitting to these points
I want to make curve fitting to these points but when i made it the blue straight line appeared. What does it mean ?I want to make curve fitting to these points but when i made it the blue straight line appeared. What does it mean ? I want to make curve fitting to these points but when i made it the blue straight line appeared. What does it mean ? matlab, curve fitting MATLAB Answers — New Questions
It is a coding function net1.net to detect images
clc;clear;close all;
image_folder = ‘daftar uang’;
filenames = dir(fullfile(image_folder, ‘*.jpg’));
total_images = numel(filenames);
for n = 1:total_images
full_name= fullfile(image_folder, filenames(n).name);
I = imread(full_name);
J = I(:,:,1);
K = imbinarize(J,.6);
L = imcomplement(K);
str = strel(‘disk’,5);
M = imclose(L,str);
N = imfill(M,’holes’);
O = bwareaopen(N,1000);
stats = regionprops(O,’Area’,’Perimeter’,’Eccentricity’);
area(n) = stats.Area;
perimeter(n) = stats.Perimeter;
metric(n) = 4*pi*area(n)/(perimeter(n)^2);
eccentricity(n) = stats.Eccentricity;
end
input = [metric;eccentricity];
target = zeros(1,48);
target(:,1:12) = 1;
target(:,13:24) = 2;
target(:,25:36) = 3;
target(:,37:48) = 4;
net = newff(input,target,[10 5],{‘logsig’,’logsig’},’trainlm’);
net.trainParam.epochs = 1000;
net.trainParam.goal = 1e-6;
net = train(net,input,target);
output = round(sim(net,input));
save net1.mat net
[m,n] = find(output==target);
akurasi = sum(m)/total_images*100
"Why is the accuracy I get only 25%? help me please?"clc;clear;close all;
image_folder = ‘daftar uang’;
filenames = dir(fullfile(image_folder, ‘*.jpg’));
total_images = numel(filenames);
for n = 1:total_images
full_name= fullfile(image_folder, filenames(n).name);
I = imread(full_name);
J = I(:,:,1);
K = imbinarize(J,.6);
L = imcomplement(K);
str = strel(‘disk’,5);
M = imclose(L,str);
N = imfill(M,’holes’);
O = bwareaopen(N,1000);
stats = regionprops(O,’Area’,’Perimeter’,’Eccentricity’);
area(n) = stats.Area;
perimeter(n) = stats.Perimeter;
metric(n) = 4*pi*area(n)/(perimeter(n)^2);
eccentricity(n) = stats.Eccentricity;
end
input = [metric;eccentricity];
target = zeros(1,48);
target(:,1:12) = 1;
target(:,13:24) = 2;
target(:,25:36) = 3;
target(:,37:48) = 4;
net = newff(input,target,[10 5],{‘logsig’,’logsig’},’trainlm’);
net.trainParam.epochs = 1000;
net.trainParam.goal = 1e-6;
net = train(net,input,target);
output = round(sim(net,input));
save net1.mat net
[m,n] = find(output==target);
akurasi = sum(m)/total_images*100
"Why is the accuracy I get only 25%? help me please?" clc;clear;close all;
image_folder = ‘daftar uang’;
filenames = dir(fullfile(image_folder, ‘*.jpg’));
total_images = numel(filenames);
for n = 1:total_images
full_name= fullfile(image_folder, filenames(n).name);
I = imread(full_name);
J = I(:,:,1);
K = imbinarize(J,.6);
L = imcomplement(K);
str = strel(‘disk’,5);
M = imclose(L,str);
N = imfill(M,’holes’);
O = bwareaopen(N,1000);
stats = regionprops(O,’Area’,’Perimeter’,’Eccentricity’);
area(n) = stats.Area;
perimeter(n) = stats.Perimeter;
metric(n) = 4*pi*area(n)/(perimeter(n)^2);
eccentricity(n) = stats.Eccentricity;
end
input = [metric;eccentricity];
target = zeros(1,48);
target(:,1:12) = 1;
target(:,13:24) = 2;
target(:,25:36) = 3;
target(:,37:48) = 4;
net = newff(input,target,[10 5],{‘logsig’,’logsig’},’trainlm’);
net.trainParam.epochs = 1000;
net.trainParam.goal = 1e-6;
net = train(net,input,target);
output = round(sim(net,input));
save net1.mat net
[m,n] = find(output==target);
akurasi = sum(m)/total_images*100
"Why is the accuracy I get only 25%? help me please?" transferred MATLAB Answers — New Questions
Usability is lacking
My school recently switched from Google to Microsoft and there are a lot of things I like about Outlook but there are also a lot of features or lack thereof that I am finding extremely frustrating. One thing that has been extremely frustrating is that when I look up how to do something I will find the instructions from Microsoft but the instructions are not effective. For example, I looked up how to find deleted events in Calendar and it says to click on the “Folders” tab at the top but there is no folders tab. Similarly, when I looked up how to view flagged items it gave the option of using the “Folders” tab again in Outlook email but there isn’t a folders tab. I was eventually able to figure out how to view the flagged items. I just wanted to share some of my frustrations in the hope that you will be able to make improvements on the usability or at least the instructions provided online regarding how to use features or access different things on you software.
Also, I still can’t figure out how to access deleted events in calendar and would like some assistance. And please, don’t tell me to click on the Folders tab.
My school recently switched from Google to Microsoft and there are a lot of things I like about Outlook but there are also a lot of features or lack thereof that I am finding extremely frustrating. One thing that has been extremely frustrating is that when I look up how to do something I will find the instructions from Microsoft but the instructions are not effective. For example, I looked up how to find deleted events in Calendar and it says to click on the “Folders” tab at the top but there is no folders tab. Similarly, when I looked up how to view flagged items it gave the option of using the “Folders” tab again in Outlook email but there isn’t a folders tab. I was eventually able to figure out how to view the flagged items. I just wanted to share some of my frustrations in the hope that you will be able to make improvements on the usability or at least the instructions provided online regarding how to use features or access different things on you software.Also, I still can’t figure out how to access deleted events in calendar and would like some assistance. And please, don’t tell me to click on the Folders tab. Read More
Unusual Time format
I have an unusual time format that I would like to add up the hours. So 0930 is 9hours 30 mins and 0415 is 4hours 15mins etc. I have tried changing the format to time and manually tried h:mm and variation of, I have tried changing it to 9.3 but can’t then get it to go 9.5.
I have an unusual time format that I would like to add up the hours. So 0930 is 9hours 30 mins and 0415 is 4hours 15mins etc. I have tried changing the format to time and manually tried h:mm and variation of, I have tried changing it to 9.3 but can’t then get it to go 9.5. Read More