Month: April 2026
I want to install Matlab on my desktop with connection from Network license server . Steps required
I want to install Matlab on my desktop with connection from Network license server . Steps requiredI want to install Matlab on my desktop with connection from Network license server . Steps required I want to install Matlab on my desktop with connection from Network license server . Steps required client installation MATLAB Answers — New Questions
UAV Toolbox Support Package for PX4 Autopilots — SITL plant simulation running much slower after recent windows update
I’ve been developing a custom controller using this toolbox, and everything has been working well after following the examples provided in the documentation.
However, after this last Tuesday, April 14th 2026, I attempted to monitor and tune my controller, and it threw an error saying the build failed and I need to go through the toolbox setup again (this is the first time I’ve gotten this error). I did this, and that is when problems developed. When using a simulink plant simulation for the PX4 SITL Host, the plant can no longer run in real time. It runs at about a quarter of the speed. I booted up the PX4 monitor and tune with plant example, and even that example is now running slowly too! Is it possible the recent security update affected TCP communication between Windows and the WSL network adapter?
Also, I am on R2025a.I’ve been developing a custom controller using this toolbox, and everything has been working well after following the examples provided in the documentation.
However, after this last Tuesday, April 14th 2026, I attempted to monitor and tune my controller, and it threw an error saying the build failed and I need to go through the toolbox setup again (this is the first time I’ve gotten this error). I did this, and that is when problems developed. When using a simulink plant simulation for the PX4 SITL Host, the plant can no longer run in real time. It runs at about a quarter of the speed. I booted up the PX4 monitor and tune with plant example, and even that example is now running slowly too! Is it possible the recent security update affected TCP communication between Windows and the WSL network adapter?
Also, I am on R2025a. I’ve been developing a custom controller using this toolbox, and everything has been working well after following the examples provided in the documentation.
However, after this last Tuesday, April 14th 2026, I attempted to monitor and tune my controller, and it threw an error saying the build failed and I need to go through the toolbox setup again (this is the first time I’ve gotten this error). I did this, and that is when problems developed. When using a simulink plant simulation for the PX4 SITL Host, the plant can no longer run in real time. It runs at about a quarter of the speed. I booted up the PX4 monitor and tune with plant example, and even that example is now running slowly too! Is it possible the recent security update affected TCP communication between Windows and the WSL network adapter?
Also, I am on R2025a. px4, uav toolbox support package, monitor and tune, simulink, plant MATLAB Answers — New Questions
How to put a title on a colorbar?
I have a 3D surface surf(X,Y,Z) viewed from view(0,90) with a colorbar which I want to put a title on. The help instructions talk about an lcolorbar, TitleString and ZlabelString but there’s no example and I’m lost.
[X Y]=meshgrid(0:100,0:100);
Z=Y;
surf(X,Y,Z);
view(0,90);
hcb=colorbar;
?????? what next to put a title on the colorbar please ?????
Maybe something like set(get(hcb,’Title’),’cb title’) but I wouldn’t be asking if that worked …
Thanks.I have a 3D surface surf(X,Y,Z) viewed from view(0,90) with a colorbar which I want to put a title on. The help instructions talk about an lcolorbar, TitleString and ZlabelString but there’s no example and I’m lost.
[X Y]=meshgrid(0:100,0:100);
Z=Y;
surf(X,Y,Z);
view(0,90);
hcb=colorbar;
?????? what next to put a title on the colorbar please ?????
Maybe something like set(get(hcb,’Title’),’cb title’) but I wouldn’t be asking if that worked …
Thanks. I have a 3D surface surf(X,Y,Z) viewed from view(0,90) with a colorbar which I want to put a title on. The help instructions talk about an lcolorbar, TitleString and ZlabelString but there’s no example and I’m lost.
[X Y]=meshgrid(0:100,0:100);
Z=Y;
surf(X,Y,Z);
view(0,90);
hcb=colorbar;
?????? what next to put a title on the colorbar please ?????
Maybe something like set(get(hcb,’Title’),’cb title’) but I wouldn’t be asking if that worked …
Thanks. colorbar title surf titlestring MATLAB Answers — New Questions
Evaluate Noise and vibration of an EV motor (PMSM)
I want to find out the Noise and vibration of an EV motor PMSM by given few input data and getting results. So what is the process in the matlab/simulink to get the resultsI want to find out the Noise and vibration of an EV motor PMSM by given few input data and getting results. So what is the process in the matlab/simulink to get the results I want to find out the Noise and vibration of an EV motor PMSM by given few input data and getting results. So what is the process in the matlab/simulink to get the results nvh of an ev motor MATLAB Answers — New Questions
The Microsoft Graph PowerShell SDK and the additionalProperties Property
What is the additionalProperties Property and What is Its Purpose?
Experienced PowerShell developers who are accustomed to working with modules like the Exchange Online management module or old AzureAD module often express surprise when they see how Microsoft Graph PowerShell SDK cmdlets return objects. Anyone who’s used to getting objects full of nice well-formed properties might be confused when they discover that cmdlets like Get-MgUserMemberOf and Get-MgGroupMember only return a couple of properties, including the identifiers (GUIDs) for matching objects. The immediate conclusion might be that the identifiers are necessary to retrieve the full set of object properties with a separate call. In fact, the cmdlets usually return additional information for objects in a property aptly named additionalProperties.
This behavior naturally creates the question why does the Microsoft Graph PowerShell SDK use the additionalProperties property to hold so much valuable information? The reason lies in the way that the AutoRest process generates Graph SDK cmdlets from the OpenAPI descriptions for Graph APIs.
AutoRest and OpenAPI Descriptions
Microsoft uses a process called AutoRest to convert the OpenAPI specifications for Graph APIs into the modules and cmdlets that form the Microsoft Graph PowerShell SDK (AutoRest is also used to create other SDKs).
When AutoRest runs to create a new version of the Microsoft Graph PowerShell SDK, it checks the output that each cmdlet should produce. However, many of the output properties for Graph queries are dynamic and cannot be converted by AutoRest into strongly-typed PowerShell properties. AutoRest works around this problem by making cmdlets generate normal PowerShell properties for Graph properties of a known type and capturing anything that isn’t a known typed property (like an array or string) in a catch-all PowerShell dictionary called additionalProperties. This implementation is in line with the OpenAPI rules for handling data that is not explicitly defined in the schema.
For example, the Get-MgDirectoryDeletedItem cmdlet fetches details of soft-deleted Entra ID objects. The only strongly-typed properties defined for the cmdlet are Id and DeletedDateTime, which is why we see these properties when the cmdlet is run to fetch details of a soft-deleted group:
Get-MgDirectoryDeletedItem -DirectoryObjectId $GroupId Id DeletedDateTime -- --------------- bfa786a7-2394-495b-9e9e-a8b52c9ee3be 07/03/2026 12:38:30
Most of the properties describing the deleted group is in additionalProperties:
(Get-MgDirectoryDeletedItem -DirectoryObjectId $GroupId).additionalProperties
Key Value
--- -----
@odata.context https://graph.microsoft.com/v1.0/$metadata#directoryObjects/$entity
@odata.type #microsoft.graph.group
createdDateTime 2021-11-01T17:52:57Z
creationOptions {}
description Case studies
displayName Customer Case Studies
expirationDateTime 2027-08-22T08:07:44Z
However, if you run the Get-MgDirectoryDeletedGroup cmdlet instead of Get-MgDirectoryDeletedItem, more properties are returned. As discussed below, this is because Get-MgDirectoryDeletedItem can process many different types of soft-deleted Entra ID objects, so the set of properties it outputs are those common to all objects. By comparison, Get-MgDirectoryDeletedGroup only handles soft-deleted groups, so the set of strongly-typed properties is larger:
Get-MgDirectoryDeletedGroup | Format-Table DisplayName, Description, Id DisplayName Description Id ----------- ----------- -- Azure AD Testers People who do early testing of Azure AD features 36fcfd60-9ad8-48ed-8c3c-ef36fc5d0c94
The additionalProperties Hash Table
A PowerShell dictionary is a hash table composed of key value pairs, so the value of a property in the dictionary can be accessed by referencing its name (the key). Be careful with casing. Sometimes it matters and sometimes it doesn’t. It’s safest to use the casing used by the cmdlet when it outputs values held in additionalProperties:
(Get-MgDirectoryDeletedItem -DirectoryObjectId $GroupId).additionalProperties.displayName Customer Case Studies
Similar output is seen in many other Graph SDK cmdlets. For example, here’s the output from Get-MgGroupMember:
Get-MgGroupMember -GroupId $GroupId Id DeletedDateTime -- --------------- 5b52fba5-349e-4624-88cd-d790883fe4c4 a221d10f-e0cf-4a1d-b6a2-4e844670f118 7bfd3f83-be63-4a5a-bbf8-c821e2836920 70ba4f9f-c357-4f08-a746-5d4d03794e3d
To see the display names for the group members, fetch the information from additionalProperties:
(Get-MgGroupMember -GroupId $GroupId).additionalProperties.displayName Ken Bowers Chris Bishop Alain Charnier Marty King
A common requirement for scripts is to create a comma-separated string from properties for report output. The details returned for a group by the Get-MgGroup cmdlet don’t include its owners. To fetch the display names of the group owners, run the Get-MgGroupOwner cmdlet like this:
$Group = (Get-MgGroup -Filter "displayName eq 'Ultra Fans'")
[array]$Owners = Get-MgGroupOwner -GroupId $Group.Id | Select-Object
-ExpandProperty additionalProperties
$OwnersOutput = $Owners.displayName -join ", "
Write-Host ("The owners of the {0} group are {1}" -f $Group.displayName, $OwnersOutput)
You’ll find many examples of using the information held in the additionalProperties hash table in scripts in the Office 365 for IT Pros GitHub repository. For example, the script to replace group owners with PowerShell uses the property in conjunction with the Get-MgUserOwnedObject cmdlet to determine the set of Microsoft 365 groups owned by an account.
When Microsoft Graph PowerShell SDK Cmdlets Generate the additionalProperties Property
AdditionalProperties are encountered most often when:
- A cmdlet can return multiple object types: For instance, the membership of an administrative unit can include user accounts, devices, and groups. The different object types can be distinguished in additionalProperties by the value of the odata.type key. This is the situation when the Get-MgDirectoryDeletedItem cmdlet is used as described above.
- A cmdlet is requested to output a property that is not common to all the object types retrieved by a cmdlet. For example, the City property is available for user objects, but not for groups, so if you include City in the set of properties retrieved by Get-MgGroupMember, the output for the City property is in additionalProperties (but only for user objects).
- A cmdlet expands a navigation property. For example, a user account has a Manager property which points (navigates) to the user account for the user’s Manager. By default, the Manager property is not in the set fetched by the Get-MgUser cmdlet. However, if the Get-MgUser cmdlet includes the ExpandProperty parameter to expand the Manager property, the cmdlet outputs the Manager property with additionalProperties containing details of the manager’s account (Figure 1).

Solving an AutoRest Problem
In summary, the additionalProperties property solves a problem for AutoRest with Graph properties which AutoRest can’t figure out how to deal with. The solution works, even if stuffing the properties and their values into the additionalProperties hash table seems a little strange when first encountered. It’s another of the little foibles that make the Microsoft Graph PowerShell SDK so “interesting” to work with.
Need help to write and manage PowerShell scripts for Microsoft 365, including Azure Automation runbooks? Get a copy of the Automating Microsoft 365 with PowerShell eBook, available standalone or as part of the Office 365 for IT Pros eBook bundle.
Identifying bright spots in RGB image
I have hundreds of RGB images (one of the image is attached). For reference these are interference images and the RGB color values correspond to certain film thickness between a semi reflective glass surface and a steel surface. I apply electric potential across the surface and observed electric discharges which show as bright spots on the image (highlighted in red circle in attached image).
I want to write a script in MATLAB (2023a) that goes through the images, identify these bright spots stores there location in the XY cordinate system. The end goal is to show spatial distribution of the electric discharges.I have hundreds of RGB images (one of the image is attached). For reference these are interference images and the RGB color values correspond to certain film thickness between a semi reflective glass surface and a steel surface. I apply electric potential across the surface and observed electric discharges which show as bright spots on the image (highlighted in red circle in attached image).
I want to write a script in MATLAB (2023a) that goes through the images, identify these bright spots stores there location in the XY cordinate system. The end goal is to show spatial distribution of the electric discharges. I have hundreds of RGB images (one of the image is attached). For reference these are interference images and the RGB color values correspond to certain film thickness between a semi reflective glass surface and a steel surface. I apply electric potential across the surface and observed electric discharges which show as bright spots on the image (highlighted in red circle in attached image).
I want to write a script in MATLAB (2023a) that goes through the images, identify these bright spots stores there location in the XY cordinate system. The end goal is to show spatial distribution of the electric discharges. image analysis, image processing MATLAB Answers — New Questions
I can’t able to see the orange, gray, red or green checks. Instead I can see only the code metrics.
I’m facing the issue i.e., I’m running the polyspace code prover throught the commend prompt. I used all the configuration in the option.txt file. Through that option.txt file i’m start compling by using this cmd ("C:Program FilesPOLYSPACER2023apolyspacebinpolyspace-code-prover" ^ -options-file Options.txt ^ -scheduler CHE6-SV00106 ^ -results-dir "C:UsersaallimutDocumentsSWEET500cb1146_vcore_main_devResult"). Compliation is done sucessfully and the code is pushed to the server. After successful complition of run I Checked the result, It’s only showing the code metrix, not showing any checks in the dashboard.I’m facing the issue i.e., I’m running the polyspace code prover throught the commend prompt. I used all the configuration in the option.txt file. Through that option.txt file i’m start compling by using this cmd ("C:Program FilesPOLYSPACER2023apolyspacebinpolyspace-code-prover" ^ -options-file Options.txt ^ -scheduler CHE6-SV00106 ^ -results-dir "C:UsersaallimutDocumentsSWEET500cb1146_vcore_main_devResult"). Compliation is done sucessfully and the code is pushed to the server. After successful complition of run I Checked the result, It’s only showing the code metrix, not showing any checks in the dashboard. I’m facing the issue i.e., I’m running the polyspace code prover throught the commend prompt. I used all the configuration in the option.txt file. Through that option.txt file i’m start compling by using this cmd ("C:Program FilesPOLYSPACER2023apolyspacebinpolyspace-code-prover" ^ -options-file Options.txt ^ -scheduler CHE6-SV00106 ^ -results-dir "C:UsersaallimutDocumentsSWEET500cb1146_vcore_main_devResult"). Compliation is done sucessfully and the code is pushed to the server. After successful complition of run I Checked the result, It’s only showing the code metrix, not showing any checks in the dashboard. no checks found MATLAB Answers — New Questions
Why the figure is not apearing after using plot(x) command?
Hi,
after new instalation of MATLAB 2025b my program does not use function plot properly.
After command "plot(x)" MATLAB opens new window "Figures" as usual but there is no figure.
After this line program continues execution.
I could not find the explanation jet.
Thanks!Hi,
after new instalation of MATLAB 2025b my program does not use function plot properly.
After command "plot(x)" MATLAB opens new window "Figures" as usual but there is no figure.
After this line program continues execution.
I could not find the explanation jet.
Thanks! Hi,
after new instalation of MATLAB 2025b my program does not use function plot properly.
After command "plot(x)" MATLAB opens new window "Figures" as usual but there is no figure.
After this line program continues execution.
I could not find the explanation jet.
Thanks! plot, figures MATLAB Answers — New Questions
Only version 2026a appears available for download as a trial. I want version 2025b
Only version 2026a appears available for download as a trial.
I want version 2025b, but it does not appear as an option at https://www.mathworks.com/downloads/web_downloads/13799194.Only version 2026a appears available for download as a trial.
I want version 2025b, but it does not appear as an option at https://www.mathworks.com/downloads/web_downloads/13799194. Only version 2026a appears available for download as a trial.
I want version 2025b, but it does not appear as an option at https://www.mathworks.com/downloads/web_downloads/13799194. r2025a MATLAB Answers — New Questions
Stateflow transition does not work when using output bus field
Hello together,
I am facing a strange behaviour of my Simulink model. That model is comprised of a Simscape subsystem and a Stateflow subsystem. The latter is used to controll the operation mode of the Simscape model.
For a clear data transfer I implemented several data buses as Stateflow inputs and outputs. For that, I created the necessary Simulink Bus Objects and it works fine so far. But when I want to use one field of the Getoperationdata bus to describe the transition condition, the transition is not exceeded despite the condition is true (as shown in the figure below). The state Empty_Pump_Chamber remains active but should switch to Empty_Complete.
The Getoperationdata bus is implemented as an output bus. When defining a transition condition with a variable from another input bus, the model succeeds. Very strange. Even when I define a local variable, set this variable equal to Getoperationaldata.emptyComplete2 and use this new variable to state the transition condition, the model succeeds. Very strange! What is wrong?
Kind Regards!Hello together,
I am facing a strange behaviour of my Simulink model. That model is comprised of a Simscape subsystem and a Stateflow subsystem. The latter is used to controll the operation mode of the Simscape model.
For a clear data transfer I implemented several data buses as Stateflow inputs and outputs. For that, I created the necessary Simulink Bus Objects and it works fine so far. But when I want to use one field of the Getoperationdata bus to describe the transition condition, the transition is not exceeded despite the condition is true (as shown in the figure below). The state Empty_Pump_Chamber remains active but should switch to Empty_Complete.
The Getoperationdata bus is implemented as an output bus. When defining a transition condition with a variable from another input bus, the model succeeds. Very strange. Even when I define a local variable, set this variable equal to Getoperationaldata.emptyComplete2 and use this new variable to state the transition condition, the model succeeds. Very strange! What is wrong?
Kind Regards! Hello together,
I am facing a strange behaviour of my Simulink model. That model is comprised of a Simscape subsystem and a Stateflow subsystem. The latter is used to controll the operation mode of the Simscape model.
For a clear data transfer I implemented several data buses as Stateflow inputs and outputs. For that, I created the necessary Simulink Bus Objects and it works fine so far. But when I want to use one field of the Getoperationdata bus to describe the transition condition, the transition is not exceeded despite the condition is true (as shown in the figure below). The state Empty_Pump_Chamber remains active but should switch to Empty_Complete.
The Getoperationdata bus is implemented as an output bus. When defining a transition condition with a variable from another input bus, the model succeeds. Very strange. Even when I define a local variable, set this variable equal to Getoperationaldata.emptyComplete2 and use this new variable to state the transition condition, the model succeeds. Very strange! What is wrong?
Kind Regards! simulink bus object, transition MATLAB Answers — New Questions
Automating Microsoft 365 with PowerShell Version 23
The May 2026 Update for Automating Microsoft 365 with PowerShell

As is our normal practice, the Office 365 for IT Pros team has released the regular update for the Automating Microsoft 365 with PowerShell eBook in mid-month. This is update #23 for our PowerShell book. Current subscribers can download the latest PDF and EPUB files from Gumroad.com through their Gumroad account or by using the download link from their receipt. The paperback version of the book (available on an on-demand print basis from Amazon) has also been updated.
The Flexibility of PowerShell
As time progress, the value of understanding how to use the Microsoft Graph to interact with Microsoft 365 workloads increase. Over the last month, I was asked to do some weird and wonderful things. A tenant suspected that people were scheduling and attending single-user Teams meetings to appear busy. Adapting the code from an article describing how to report details of Teams meetings solved that problem (and as it turned out, people were doing what the company suspected). Another question involved a company that uses the calendars of shared mailboxes to schedule vehicles (for example, an engineer needs a car to visit a facility). The ask was to analyze the bookings for vehicles to understand if the fleet needed to be augmented or reduced. Well, a calendar is a calendar, and the script to analyze conference room bookings proved a great base for developing the script to analyze the use of company vehicles.
However, the script that gave me most pleasure was the one developed to help chapter authors for the Office 365 for IT Pros eBook keep on top of developments within Microsoft 365. We synchronize a Planner plan with messages posted in the Microsoft 365 admin center and assign each message to an author. The author then considers whether the change described in the message is something that affects the content of their chapter, and if so, makes the necessary adjustments to the text. It’s a simple system that has served us well for years.
The problem is that authors can overlook assigned tasks (to be honest, I have 52 open tasks at present), so we created a script to find and send a listing of open tasks to authors. The script executes as an Azure Automation runbook, and all authors receive an email detailing their open tasks every Saturday morning. Time will tell if this tactic reduces the number of open tasks, but things are looking up. I hope that the change reported in MC1282308 (16 April 2026) describing changes to message center headings won’t affect the synchronization process.
All of this proves that searching for existing code examples can pay big time before sitting down to write new code, even with the help of AI tools.
Updates to PowerShell Modules
In terms of new releases for major Microsoft 365 PowerShell modules, we’ve only seen an update for the Microsoft Teams module (to V7.7) in the last month. Microsoft said that they improved the performance of the Get-Team cmdlet and the claim appears to be accurate. I tend to use the Get-MgTeam cmdlet rather that Get-Team, but it’s good to see Microsoft paying attention to performance of a cmdlet that features in many scripts.
The SharePoint Online management module moved to version 16.0.27111.12000 to keep track of changes being made to SharePoint tenant settings. However, the SharePoint module remains focused on Windows PowerShell rather than PowerShell Core, which is disappointing.
Keep on Learning
When we split the content that became Automating Microsoft 365 with PowerShell from the “big” Office 365 for IT Pros eBook, I never anticipated that our PowerShell book would take a life of its own and stretch to more than 400 pages of content. With more information about using Graph APIs effectively becoming available all the time, who knows how big the book might become. On to version 24…
Signal logging for evaluation episode during RL training
I am training a DDPG agent using a simulink environment. I want to log the last (final) value of a specific signal for every evaluation episode, e.g., if there are 10 evaluation episodes then I will have 10 values, possibly in the form of an array. The agent is unaware of this signal. How can I do this?I am training a DDPG agent using a simulink environment. I want to log the last (final) value of a specific signal for every evaluation episode, e.g., if there are 10 evaluation episodes then I will have 10 values, possibly in the form of an array. The agent is unaware of this signal. How can I do this? I am training a DDPG agent using a simulink environment. I want to log the last (final) value of a specific signal for every evaluation episode, e.g., if there are 10 evaluation episodes then I will have 10 values, possibly in the form of an array. The agent is unaware of this signal. How can I do this? simulink, reinforcement learning MATLAB Answers — New Questions
Axis not held using hold command in plot3
I need to plot 2 3d points: x1, y1, z1 and x2, y2, z2 on the same axis. When using plot3 I only get the second marker while using plot3 for each point. When using one command for both points I get only one marker.I need to plot 2 3d points: x1, y1, z1 and x2, y2, z2 on the same axis. When using plot3 I only get the second marker while using plot3 for each point. When using one command for both points I get only one marker. I need to plot 2 3d points: x1, y1, z1 and x2, y2, z2 on the same axis. When using plot3 I only get the second marker while using plot3 for each point. When using one command for both points I get only one marker. hold, plot3 MATLAB Answers — New Questions
textscatter example, and behavior, is mysterious
The code for the textscatter example at
textscatter – 2-D scatter plot of text – MATLAB
looks like it should produce text at those random points. Instead the figure there shows some text in unusual places, some points that dont belong to any specific label, and in general, the whole thing is mysterious.The code for the textscatter example at
textscatter – 2-D scatter plot of text – MATLAB
looks like it should produce text at those random points. Instead the figure there shows some text in unusual places, some points that dont belong to any specific label, and in general, the whole thing is mysterious. The code for the textscatter example at
textscatter – 2-D scatter plot of text – MATLAB
looks like it should produce text at those random points. Instead the figure there shows some text in unusual places, some points that dont belong to any specific label, and in general, the whole thing is mysterious. textscatter MATLAB Answers — New Questions
Can different sample times be used for fair torque ripple comparison?
Hello,
I am comparing two control strategies: one with fixed switching frequency and another with variable switching frequency.
Is it acceptable to use different powergui or sample times for each method so that both operate at a similar switching frequency range before comparing torque ripple?
Or should the same sample time always be used for both methods, even if their switching frequencies become very different?
Thank you.Hello,
I am comparing two control strategies: one with fixed switching frequency and another with variable switching frequency.
Is it acceptable to use different powergui or sample times for each method so that both operate at a similar switching frequency range before comparing torque ripple?
Or should the same sample time always be used for both methods, even if their switching frequencies become very different?
Thank you. Hello,
I am comparing two control strategies: one with fixed switching frequency and another with variable switching frequency.
Is it acceptable to use different powergui or sample times for each method so that both operate at a similar switching frequency range before comparing torque ripple?
Or should the same sample time always be used for both methods, even if their switching frequencies become very different?
Thank you. powergui, simulink, sample time, switching frequency MATLAB Answers — New Questions
App Designer keeps adding multiple Instances of EditFields with the same name on startup
Hello Everyone!
I am having a strange problem with the app designer right now:
Every time I start the app designer and load the .mlapp-File of the Project I’m currently working on, there are multiple instances of the same EditField created. It began with only one copy of an EditField I manually added on the GUI. I didn’t think much about it and simply deleted the second instance. But it seems like this problem has grown exponentially with every start of app designer. Now, when I open up my Project 500 (!!) EditFields with the same name are created! ‘Simply’ deleting all of them is obviously not anymore an acceptable workaround – especially since ‘ctrl+a’ doesn’t work in the Component Browser and you have to selected them all manually…
I have no idea why the app designer creates these multiple instances on the startup – after I deleted all multiple instances, they also didn’t appear in the non-editable Function ‘createComponents(app)’ anymore.
Does anyone of you have an idea on that? Where in my code could be a bug causing this phenomenon? Or could this be an appdesigner-internal bug? The project itself is already quite big with ~260 components even without those multiple and unwanted EditFields…
I’m desperately looking for your help! Thanks a lot in advance.Hello Everyone!
I am having a strange problem with the app designer right now:
Every time I start the app designer and load the .mlapp-File of the Project I’m currently working on, there are multiple instances of the same EditField created. It began with only one copy of an EditField I manually added on the GUI. I didn’t think much about it and simply deleted the second instance. But it seems like this problem has grown exponentially with every start of app designer. Now, when I open up my Project 500 (!!) EditFields with the same name are created! ‘Simply’ deleting all of them is obviously not anymore an acceptable workaround – especially since ‘ctrl+a’ doesn’t work in the Component Browser and you have to selected them all manually…
I have no idea why the app designer creates these multiple instances on the startup – after I deleted all multiple instances, they also didn’t appear in the non-editable Function ‘createComponents(app)’ anymore.
Does anyone of you have an idea on that? Where in my code could be a bug causing this phenomenon? Or could this be an appdesigner-internal bug? The project itself is already quite big with ~260 components even without those multiple and unwanted EditFields…
I’m desperately looking for your help! Thanks a lot in advance. Hello Everyone!
I am having a strange problem with the app designer right now:
Every time I start the app designer and load the .mlapp-File of the Project I’m currently working on, there are multiple instances of the same EditField created. It began with only one copy of an EditField I manually added on the GUI. I didn’t think much about it and simply deleted the second instance. But it seems like this problem has grown exponentially with every start of app designer. Now, when I open up my Project 500 (!!) EditFields with the same name are created! ‘Simply’ deleting all of them is obviously not anymore an acceptable workaround – especially since ‘ctrl+a’ doesn’t work in the Component Browser and you have to selected them all manually…
I have no idea why the app designer creates these multiple instances on the startup – after I deleted all multiple instances, they also didn’t appear in the non-editable Function ‘createComponents(app)’ anymore.
Does anyone of you have an idea on that? Where in my code could be a bug causing this phenomenon? Or could this be an appdesigner-internal bug? The project itself is already quite big with ~260 components even without those multiple and unwanted EditFields…
I’m desperately looking for your help! Thanks a lot in advance. appdesigner, gui MATLAB Answers — New Questions
How to build a BESS model phasor system
The examples above in MATLAB all produce BESS sets in discrete mode. I want to build a BESS set in phasor mode but don’t know how to do it because the battery block only allows running in discrete mode. I am very confused. Please help me.The examples above in MATLAB all produce BESS sets in discrete mode. I want to build a BESS set in phasor mode but don’t know how to do it because the battery block only allows running in discrete mode. I am very confused. Please help me. The examples above in MATLAB all produce BESS sets in discrete mode. I want to build a BESS set in phasor mode but don’t know how to do it because the battery block only allows running in discrete mode. I am very confused. Please help me. battery_system_management, bess phasor, battery phasor MATLAB Answers — New Questions
computation of symbolic terms and error analysis
tic
syms x y m %alpha beta b lambda eta phi
phi=sqrt(0.5)
b=10
eta=1
alpha=2;
beta=1;
T=zeros(1,2,’sym’);
G=zeros(1,2,’sym’);
A=zeros(1,’sym’);
B=zeros(1,’sym’);
C=zeros(1,’sym’);
D=zeros(1,’sym’);
E=zeros(1,’sym’);
F=zeros(1,’sym’);
G_val=zeros(1,’sym’);
series(x)=sym(zeros(1,1));
series1(x)=sym(zeros(1,1));
% Transform Initial condition
T(1)=m;
T(2)=0;
% Initial transform value of exp function
for i=1:4
G(i)=y;
if i==1
E(1)=exp((eta*T(1))/(eta+T(1)));
else
A(1)=0;
for j=1:i-1
E(i)=A(1)+(j/(i-1))*G(j)*E(i-j);
end
B(1)=0;
for j=1:i
B(1)=B(1)+T(j)*G(i-j+1);
end
eq1=G(i)-T(i)+(1/eta)*B(1);
G_val=simplify(solve(eq1,y));
G(i)=simplify(G_val);
E_val=subs(E(i),y,G_val);
E(i)=E_val
end
C(1)=0
for r=1:i
C(1)=C(1)+T(r)*E(i-r+1);
end
T(i + alpha*beta) = (phi^2*C(1)-b*phi^2*E(i))*(gamma(1+(sym(i-1)/beta))/gamma(1+alpha+(sym(i-1)/beta)));
%T(i+2)=simplify((1/(i*(i+1)))*(phi^2*C(1)-b*phi^2*E(i)));
end
for k=1:3
series(x)=simplify(series(x)+T(k)*(power(x,((k-1)*beta))));
end
series
e1=subs(series,x,1);
format long
accuracy=input(‘enter the accuracy’)
f=e1(x)
g=inline(f)
a=input(‘enter the ist approximation=’)
b=input(‘enter the 2nd approximation=’)
fa=feval(g,a)
fb=feval(g,b)
while fa*fb>0
a=input(‘enter the ist approximation=’)
b=input(‘enter the 2nd approximation=’)
fa=feval(g,a)
fb=feval(g,b)
end
for i=1:50
c=(a+b)/2;
fc=feval(g,c);
disp([i a fa b fb c fc abs(b-a)])
if fc==accuracy
fprintf(‘the root of the equation is %f’,c)
break;
elseif abs(b-a)<=accuracy
fprintf(‘the root of the equation is %f’,c)
break;
elseif fa*fc<=0
b=c;
fb=fc;
else
a=c;
fa=fc;
end
end
fprintf(‘the value of c=%f’, c);
series1(x)=subs(series,m,c)
residualError=sym(zeros(1,1));
residual=sym(zeros(1,1));
residualError(x) = abs(diff(series1,x,2)+ B*phi^2*(1-(series1)/B)*exp((eta*series1)/(eta+series1)))
residual_error=double(subs(residualError,x,0.2))
var =double(residual_error);
x=0:0.1:1
error=zeros(1)
row=0;
for i=1:length(x)
row=row+1;
error(row)=(residualErrorx(i))
max_error=max(error)
end
fprintf(‘The residual error is %fn’, max_error);
%—————————————————————–
the error appear as Error using mupadengine/evalin2double
Unable to convert expression containing symbolic variables into double array. Apply ‘subs’ function first to substitute values for variables.
Error in mupadengine/feval2double
Error in sym/double (line 756)
X = feval2double(symengine, "symobj::doubleDirect", S);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Related documentation
now i substutite the value of m using sysntax series1(x)=subs(series,m,c) but when i later on call series 1 in line residualError(x) = abs(diff(series1,x,2)+ B*phi^2*(1-(series1)/B)*exp((eta*series1)/(eta+series1))) the final expression is having m and y . That is symbolic and craet an errortic
syms x y m %alpha beta b lambda eta phi
phi=sqrt(0.5)
b=10
eta=1
alpha=2;
beta=1;
T=zeros(1,2,’sym’);
G=zeros(1,2,’sym’);
A=zeros(1,’sym’);
B=zeros(1,’sym’);
C=zeros(1,’sym’);
D=zeros(1,’sym’);
E=zeros(1,’sym’);
F=zeros(1,’sym’);
G_val=zeros(1,’sym’);
series(x)=sym(zeros(1,1));
series1(x)=sym(zeros(1,1));
% Transform Initial condition
T(1)=m;
T(2)=0;
% Initial transform value of exp function
for i=1:4
G(i)=y;
if i==1
E(1)=exp((eta*T(1))/(eta+T(1)));
else
A(1)=0;
for j=1:i-1
E(i)=A(1)+(j/(i-1))*G(j)*E(i-j);
end
B(1)=0;
for j=1:i
B(1)=B(1)+T(j)*G(i-j+1);
end
eq1=G(i)-T(i)+(1/eta)*B(1);
G_val=simplify(solve(eq1,y));
G(i)=simplify(G_val);
E_val=subs(E(i),y,G_val);
E(i)=E_val
end
C(1)=0
for r=1:i
C(1)=C(1)+T(r)*E(i-r+1);
end
T(i + alpha*beta) = (phi^2*C(1)-b*phi^2*E(i))*(gamma(1+(sym(i-1)/beta))/gamma(1+alpha+(sym(i-1)/beta)));
%T(i+2)=simplify((1/(i*(i+1)))*(phi^2*C(1)-b*phi^2*E(i)));
end
for k=1:3
series(x)=simplify(series(x)+T(k)*(power(x,((k-1)*beta))));
end
series
e1=subs(series,x,1);
format long
accuracy=input(‘enter the accuracy’)
f=e1(x)
g=inline(f)
a=input(‘enter the ist approximation=’)
b=input(‘enter the 2nd approximation=’)
fa=feval(g,a)
fb=feval(g,b)
while fa*fb>0
a=input(‘enter the ist approximation=’)
b=input(‘enter the 2nd approximation=’)
fa=feval(g,a)
fb=feval(g,b)
end
for i=1:50
c=(a+b)/2;
fc=feval(g,c);
disp([i a fa b fb c fc abs(b-a)])
if fc==accuracy
fprintf(‘the root of the equation is %f’,c)
break;
elseif abs(b-a)<=accuracy
fprintf(‘the root of the equation is %f’,c)
break;
elseif fa*fc<=0
b=c;
fb=fc;
else
a=c;
fa=fc;
end
end
fprintf(‘the value of c=%f’, c);
series1(x)=subs(series,m,c)
residualError=sym(zeros(1,1));
residual=sym(zeros(1,1));
residualError(x) = abs(diff(series1,x,2)+ B*phi^2*(1-(series1)/B)*exp((eta*series1)/(eta+series1)))
residual_error=double(subs(residualError,x,0.2))
var =double(residual_error);
x=0:0.1:1
error=zeros(1)
row=0;
for i=1:length(x)
row=row+1;
error(row)=(residualErrorx(i))
max_error=max(error)
end
fprintf(‘The residual error is %fn’, max_error);
%—————————————————————–
the error appear as Error using mupadengine/evalin2double
Unable to convert expression containing symbolic variables into double array. Apply ‘subs’ function first to substitute values for variables.
Error in mupadengine/feval2double
Error in sym/double (line 756)
X = feval2double(symengine, "symobj::doubleDirect", S);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Related documentation
now i substutite the value of m using sysntax series1(x)=subs(series,m,c) but when i later on call series 1 in line residualError(x) = abs(diff(series1,x,2)+ B*phi^2*(1-(series1)/B)*exp((eta*series1)/(eta+series1))) the final expression is having m and y . That is symbolic and craet an error tic
syms x y m %alpha beta b lambda eta phi
phi=sqrt(0.5)
b=10
eta=1
alpha=2;
beta=1;
T=zeros(1,2,’sym’);
G=zeros(1,2,’sym’);
A=zeros(1,’sym’);
B=zeros(1,’sym’);
C=zeros(1,’sym’);
D=zeros(1,’sym’);
E=zeros(1,’sym’);
F=zeros(1,’sym’);
G_val=zeros(1,’sym’);
series(x)=sym(zeros(1,1));
series1(x)=sym(zeros(1,1));
% Transform Initial condition
T(1)=m;
T(2)=0;
% Initial transform value of exp function
for i=1:4
G(i)=y;
if i==1
E(1)=exp((eta*T(1))/(eta+T(1)));
else
A(1)=0;
for j=1:i-1
E(i)=A(1)+(j/(i-1))*G(j)*E(i-j);
end
B(1)=0;
for j=1:i
B(1)=B(1)+T(j)*G(i-j+1);
end
eq1=G(i)-T(i)+(1/eta)*B(1);
G_val=simplify(solve(eq1,y));
G(i)=simplify(G_val);
E_val=subs(E(i),y,G_val);
E(i)=E_val
end
C(1)=0
for r=1:i
C(1)=C(1)+T(r)*E(i-r+1);
end
T(i + alpha*beta) = (phi^2*C(1)-b*phi^2*E(i))*(gamma(1+(sym(i-1)/beta))/gamma(1+alpha+(sym(i-1)/beta)));
%T(i+2)=simplify((1/(i*(i+1)))*(phi^2*C(1)-b*phi^2*E(i)));
end
for k=1:3
series(x)=simplify(series(x)+T(k)*(power(x,((k-1)*beta))));
end
series
e1=subs(series,x,1);
format long
accuracy=input(‘enter the accuracy’)
f=e1(x)
g=inline(f)
a=input(‘enter the ist approximation=’)
b=input(‘enter the 2nd approximation=’)
fa=feval(g,a)
fb=feval(g,b)
while fa*fb>0
a=input(‘enter the ist approximation=’)
b=input(‘enter the 2nd approximation=’)
fa=feval(g,a)
fb=feval(g,b)
end
for i=1:50
c=(a+b)/2;
fc=feval(g,c);
disp([i a fa b fb c fc abs(b-a)])
if fc==accuracy
fprintf(‘the root of the equation is %f’,c)
break;
elseif abs(b-a)<=accuracy
fprintf(‘the root of the equation is %f’,c)
break;
elseif fa*fc<=0
b=c;
fb=fc;
else
a=c;
fa=fc;
end
end
fprintf(‘the value of c=%f’, c);
series1(x)=subs(series,m,c)
residualError=sym(zeros(1,1));
residual=sym(zeros(1,1));
residualError(x) = abs(diff(series1,x,2)+ B*phi^2*(1-(series1)/B)*exp((eta*series1)/(eta+series1)))
residual_error=double(subs(residualError,x,0.2))
var =double(residual_error);
x=0:0.1:1
error=zeros(1)
row=0;
for i=1:length(x)
row=row+1;
error(row)=(residualErrorx(i))
max_error=max(error)
end
fprintf(‘The residual error is %fn’, max_error);
%—————————————————————–
the error appear as Error using mupadengine/evalin2double
Unable to convert expression containing symbolic variables into double array. Apply ‘subs’ function first to substitute values for variables.
Error in mupadengine/feval2double
Error in sym/double (line 756)
X = feval2double(symengine, "symobj::doubleDirect", S);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Related documentation
now i substutite the value of m using sysntax series1(x)=subs(series,m,c) but when i later on call series 1 in line residualError(x) = abs(diff(series1,x,2)+ B*phi^2*(1-(series1)/B)*exp((eta*series1)/(eta+series1))) the final expression is having m and y . That is symbolic and craet an error symbolic compuational MATLAB Answers — New Questions
Why in 2025a figure Export Setup have been removed?
Good morning to everyone,
I have just bought a new laptop, downloaded 2025a, opened a figure I created with 2024b and BOOM I realized (with great regret!) that the "Figure Export Setup" have been removed…
In my academic and professional experience it was an essential feature to produce figures and plots in line with the specific request (journal article, technical report, presentation etc..) and coherent throughout the work for whant concerns font size, figure dimensions and features.
I know that now there’s the "uiexportdlg" https://www.mathworks.com/help/releases/R2025a/matlab/ref/uiexportdlg.html but, in my humble opinion, there is no comparison at all. Is there a way to be able to save profiles for the export of figures as was done in the old “File” > “Export Setup” mode? And, above all, does anyone know the reason why this feature was removed? I simply can’t get the point about it.
I’m not the reactionary kind of software users, but I’m seriously thinking about switching back to 2024b.Good morning to everyone,
I have just bought a new laptop, downloaded 2025a, opened a figure I created with 2024b and BOOM I realized (with great regret!) that the "Figure Export Setup" have been removed…
In my academic and professional experience it was an essential feature to produce figures and plots in line with the specific request (journal article, technical report, presentation etc..) and coherent throughout the work for whant concerns font size, figure dimensions and features.
I know that now there’s the "uiexportdlg" https://www.mathworks.com/help/releases/R2025a/matlab/ref/uiexportdlg.html but, in my humble opinion, there is no comparison at all. Is there a way to be able to save profiles for the export of figures as was done in the old “File” > “Export Setup” mode? And, above all, does anyone know the reason why this feature was removed? I simply can’t get the point about it.
I’m not the reactionary kind of software users, but I’m seriously thinking about switching back to 2024b. Good morning to everyone,
I have just bought a new laptop, downloaded 2025a, opened a figure I created with 2024b and BOOM I realized (with great regret!) that the "Figure Export Setup" have been removed…
In my academic and professional experience it was an essential feature to produce figures and plots in line with the specific request (journal article, technical report, presentation etc..) and coherent throughout the work for whant concerns font size, figure dimensions and features.
I know that now there’s the "uiexportdlg" https://www.mathworks.com/help/releases/R2025a/matlab/ref/uiexportdlg.html but, in my humble opinion, there is no comparison at all. Is there a way to be able to save profiles for the export of figures as was done in the old “File” > “Export Setup” mode? And, above all, does anyone know the reason why this feature was removed? I simply can’t get the point about it.
I’m not the reactionary kind of software users, but I’m seriously thinking about switching back to 2024b. figure export setup MATLAB Answers — New Questions
Can you get matlab to add a really small number to a big number and retain precision
I am trying to calculate small numbers from equations like the one below.
p = -1e17 + sqrt(1e34 + 1e18)
I have tried using ‘vpa(-1e17 + sqrt(1e34 + 1e18), 30) but the output always comes out as p = 0.0. But p is not exactly zero and this propagates errors in subsequent calculations that involve p. Is there another way to retain sig figs to avoid rounding errors?I am trying to calculate small numbers from equations like the one below.
p = -1e17 + sqrt(1e34 + 1e18)
I have tried using ‘vpa(-1e17 + sqrt(1e34 + 1e18), 30) but the output always comes out as p = 0.0. But p is not exactly zero and this propagates errors in subsequent calculations that involve p. Is there another way to retain sig figs to avoid rounding errors? I am trying to calculate small numbers from equations like the one below.
p = -1e17 + sqrt(1e34 + 1e18)
I have tried using ‘vpa(-1e17 + sqrt(1e34 + 1e18), 30) but the output always comes out as p = 0.0. But p is not exactly zero and this propagates errors in subsequent calculations that involve p. Is there another way to retain sig figs to avoid rounding errors? precision, digits MATLAB Answers — New Questions









