Month: October 2025
Why do I get “Error using ^” after clicking “Run COM” in the MATLAB R2025a Signal Integrity Toolbox, Channel Operating Margin (COM) Manager?
I’m following the Channel Operating Margin (COM) for Serial Link tutorial from the Signal Integrity Toolbox. I’m following the tutorial exactly, not trying to make any modifications. I get to Step 5 and click "Run COM" in the Channel Operating Margin (COM) Manager. After running for a bit, I get the error:
Error using ^ (line 52)
Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar. To operate on each element of the matrix individually, use POWER (.^) for elementwise power.
Why is this happening? I’ve attached the full MATLAB command window output below:
Processing 1/5: C:myRootCOM_100G_KRinterfaces100G_KRpre_simsCrosstalkdefault.ssmqcdqcd_ttte_clearance1qcd_ttte_clearance1.nc.s20p
Warning: COM controls for DIAGNOSTIC and DISPLAY_WINDOW turned off because of limitations in com_ieee8023_93a.m for MATLAB versions 14b and newer.
> In comGUI>comWrapper (line 574)
In comGUI>run_com_Callback (line 365)
In matlab.ui.internal.controller.uicontrol/UIControlController/triggerActionEvent (line 76)
In matlab.ui.internal.controller.uicontrol/UIControlPushButtonController/handleEvent (line 29)
In matlab.ui.internal.controller.uicontrol.UIControlController>@(varargin)obj.handleEvent(varargin{:}) (line 71)
In viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event)) (line 76)
Creating s4p’s . . . done.
Running COM . . .
This is NOT an official IEEE document.
Revision: 2.95 This is a computation example for exploring COM and ERL for projects like IEEE P802.3bj/b/bs/cd/ck with some exploratory extensions and is not normative or official
reading file 1 2 3 4 5
reading file Error using ^ (line 52)
Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar. To operate on each element of the matrix individually, use POWER (.^) for elementwise power.
Error in com_ieee8023_93a_295 (line 642)
MDFEXT_ICN=sqrt(2*chdata(i).delta_f/param.f2*sum( chdata(i).Aicn^2*PWF(1:index_f2).*abs(MDFEXT(1:index_f2)).^2)); %eq 46
^
Error in comGUI>comWrapper (line 668)
comresults = comFunction(cfg_name,…
^^^^^^^^^^^^^^^^^^^^^^^^
Error in comGUI>run_com_Callback (line 365)
comWrapper(comdat,com_template_xls_fn,com_ieee8023_93a_fn,sit_csv_write_path,handles);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error using matlab.ui.internal.controller.uicontrol.UIControlController/triggerActionEvent (line 76)
Error while evaluating UIControl Callback.
I’m following the Channel Operating Margin (COM) for Serial Link tutorial from the Signal Integrity Toolbox. I’m following the tutorial exactly, not trying to make any modifications. I get to Step 5 and click "Run COM" in the Channel Operating Margin (COM) Manager. After running for a bit, I get the error:
Error using ^ (line 52)
Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar. To operate on each element of the matrix individually, use POWER (.^) for elementwise power.
Why is this happening? I’ve attached the full MATLAB command window output below:
Processing 1/5: C:myRootCOM_100G_KRinterfaces100G_KRpre_simsCrosstalkdefault.ssmqcdqcd_ttte_clearance1qcd_ttte_clearance1.nc.s20p
Warning: COM controls for DIAGNOSTIC and DISPLAY_WINDOW turned off because of limitations in com_ieee8023_93a.m for MATLAB versions 14b and newer.
> In comGUI>comWrapper (line 574)
In comGUI>run_com_Callback (line 365)
In matlab.ui.internal.controller.uicontrol/UIControlController/triggerActionEvent (line 76)
In matlab.ui.internal.controller.uicontrol/UIControlPushButtonController/handleEvent (line 29)
In matlab.ui.internal.controller.uicontrol.UIControlController>@(varargin)obj.handleEvent(varargin{:}) (line 71)
In viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event)) (line 76)
Creating s4p’s . . . done.
Running COM . . .
This is NOT an official IEEE document.
Revision: 2.95 This is a computation example for exploring COM and ERL for projects like IEEE P802.3bj/b/bs/cd/ck with some exploratory extensions and is not normative or official
reading file 1 2 3 4 5
reading file Error using ^ (line 52)
Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar. To operate on each element of the matrix individually, use POWER (.^) for elementwise power.
Error in com_ieee8023_93a_295 (line 642)
MDFEXT_ICN=sqrt(2*chdata(i).delta_f/param.f2*sum( chdata(i).Aicn^2*PWF(1:index_f2).*abs(MDFEXT(1:index_f2)).^2)); %eq 46
^
Error in comGUI>comWrapper (line 668)
comresults = comFunction(cfg_name,…
^^^^^^^^^^^^^^^^^^^^^^^^
Error in comGUI>run_com_Callback (line 365)
comWrapper(comdat,com_template_xls_fn,com_ieee8023_93a_fn,sit_csv_write_path,handles);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error using matlab.ui.internal.controller.uicontrol.UIControlController/triggerActionEvent (line 76)
Error while evaluating UIControl Callback.
I’m following the Channel Operating Margin (COM) for Serial Link tutorial from the Signal Integrity Toolbox. I’m following the tutorial exactly, not trying to make any modifications. I get to Step 5 and click "Run COM" in the Channel Operating Margin (COM) Manager. After running for a bit, I get the error:
Error using ^ (line 52)
Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar. To operate on each element of the matrix individually, use POWER (.^) for elementwise power.
Why is this happening? I’ve attached the full MATLAB command window output below:
Processing 1/5: C:myRootCOM_100G_KRinterfaces100G_KRpre_simsCrosstalkdefault.ssmqcdqcd_ttte_clearance1qcd_ttte_clearance1.nc.s20p
Warning: COM controls for DIAGNOSTIC and DISPLAY_WINDOW turned off because of limitations in com_ieee8023_93a.m for MATLAB versions 14b and newer.
> In comGUI>comWrapper (line 574)
In comGUI>run_com_Callback (line 365)
In matlab.ui.internal.controller.uicontrol/UIControlController/triggerActionEvent (line 76)
In matlab.ui.internal.controller.uicontrol/UIControlPushButtonController/handleEvent (line 29)
In matlab.ui.internal.controller.uicontrol.UIControlController>@(varargin)obj.handleEvent(varargin{:}) (line 71)
In viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event)) (line 76)
Creating s4p’s . . . done.
Running COM . . .
This is NOT an official IEEE document.
Revision: 2.95 This is a computation example for exploring COM and ERL for projects like IEEE P802.3bj/b/bs/cd/ck with some exploratory extensions and is not normative or official
reading file 1 2 3 4 5
reading file Error using ^ (line 52)
Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar. To operate on each element of the matrix individually, use POWER (.^) for elementwise power.
Error in com_ieee8023_93a_295 (line 642)
MDFEXT_ICN=sqrt(2*chdata(i).delta_f/param.f2*sum( chdata(i).Aicn^2*PWF(1:index_f2).*abs(MDFEXT(1:index_f2)).^2)); %eq 46
^
Error in comGUI>comWrapper (line 668)
comresults = comFunction(cfg_name,…
^^^^^^^^^^^^^^^^^^^^^^^^
Error in comGUI>run_com_Callback (line 365)
comWrapper(comdat,com_template_xls_fn,com_ieee8023_93a_fn,sit_csv_write_path,handles);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error using matlab.ui.internal.controller.uicontrol.UIControlController/triggerActionEvent (line 76)
Error while evaluating UIControl Callback.
serial, link, designer, channel, operating, margin, com, signal, integrity, toolbox, config, path MATLAB Answers — New Questions
Why can I not see the Menu Bar (File, Edit, View, etc.) when I open my GUIDE-built app in R2025a or R2025b?
After upgrading from MATLAB R2023a to MATLAB R2025a/R2025b, the classic ‘Menu Bar’ (File, Edit, View, Insert, Tools, Help) that normally appears at the top of the figure window in my GUIDE-built app is missing. This issue occurs every time I open the app in the newer releases.
Previously, in MATLAB R2023a, these menus were available and allowed me to interact with plots, export data, and access other figure tools.
I need a way to restore these menus or replicate the same functionality in the newer versions of MATLAB. Why is this happening?After upgrading from MATLAB R2023a to MATLAB R2025a/R2025b, the classic ‘Menu Bar’ (File, Edit, View, Insert, Tools, Help) that normally appears at the top of the figure window in my GUIDE-built app is missing. This issue occurs every time I open the app in the newer releases.
Previously, in MATLAB R2023a, these menus were available and allowed me to interact with plots, export data, and access other figure tools.
I need a way to restore these menus or replicate the same functionality in the newer versions of MATLAB. Why is this happening? After upgrading from MATLAB R2023a to MATLAB R2025a/R2025b, the classic ‘Menu Bar’ (File, Edit, View, Insert, Tools, Help) that normally appears at the top of the figure window in my GUIDE-built app is missing. This issue occurs every time I open the app in the newer releases.
Previously, in MATLAB R2023a, these menus were available and allowed me to interact with plots, export data, and access other figure tools.
I need a way to restore these menus or replicate the same functionality in the newer versions of MATLAB. Why is this happening? matlab, guide, menubar, toolbar MATLAB Answers — New Questions
Simulation freezes after exiting fullscreen mode in VR Sink (Simulink Desktop Real-Time)
Hi everyone,
I’m running a Simulink Desktop Real-Time model that includes a VR Sink block (from Simulink 3D Animation) to display a virtual world. Everything works fine until I open the VR viewer in fullscreen mode.
When I exit fullscreen, MATLAB immediately shows an error in the Command Window, and the simulation freezes, it doesn’t continue running, and I have to stop and restart the model manually.
This happens consistently. Here are some details about my setup:
MATLAB version: R2024b
Simulation mode: Simulink Desktop Real-Time (External mode)
run in Kernel
I’m aware that in newer releases (R2025a and later) the VR Sink and related blocks are no longer supported, replaced by the new Simscape / Simulation 3D environment. However, I must use Simulink Desktop Real-Time, which currently does not support the new 3D blocks, so updating is not a viable option for my setup.
I need fullscreen rendering for human–VR interaction experiments, so I can’t avoid fullscreen mode.
Has anyone encountered this problem before? Is there a known workaround or patch for using fullscreen in VR Sink + Simulink Desktop Real-Time?
Thanks in advance for any suggestion or insight!Hi everyone,
I’m running a Simulink Desktop Real-Time model that includes a VR Sink block (from Simulink 3D Animation) to display a virtual world. Everything works fine until I open the VR viewer in fullscreen mode.
When I exit fullscreen, MATLAB immediately shows an error in the Command Window, and the simulation freezes, it doesn’t continue running, and I have to stop and restart the model manually.
This happens consistently. Here are some details about my setup:
MATLAB version: R2024b
Simulation mode: Simulink Desktop Real-Time (External mode)
run in Kernel
I’m aware that in newer releases (R2025a and later) the VR Sink and related blocks are no longer supported, replaced by the new Simscape / Simulation 3D environment. However, I must use Simulink Desktop Real-Time, which currently does not support the new 3D blocks, so updating is not a viable option for my setup.
I need fullscreen rendering for human–VR interaction experiments, so I can’t avoid fullscreen mode.
Has anyone encountered this problem before? Is there a known workaround or patch for using fullscreen in VR Sink + Simulink Desktop Real-Time?
Thanks in advance for any suggestion or insight! Hi everyone,
I’m running a Simulink Desktop Real-Time model that includes a VR Sink block (from Simulink 3D Animation) to display a virtual world. Everything works fine until I open the VR viewer in fullscreen mode.
When I exit fullscreen, MATLAB immediately shows an error in the Command Window, and the simulation freezes, it doesn’t continue running, and I have to stop and restart the model manually.
This happens consistently. Here are some details about my setup:
MATLAB version: R2024b
Simulation mode: Simulink Desktop Real-Time (External mode)
run in Kernel
I’m aware that in newer releases (R2025a and later) the VR Sink and related blocks are no longer supported, replaced by the new Simscape / Simulation 3D environment. However, I must use Simulink Desktop Real-Time, which currently does not support the new 3D blocks, so updating is not a viable option for my setup.
I need fullscreen rendering for human–VR interaction experiments, so I can’t avoid fullscreen mode.
Has anyone encountered this problem before? Is there a known workaround or patch for using fullscreen in VR Sink + Simulink Desktop Real-Time?
Thanks in advance for any suggestion or insight! simulink, vr sink, fullscreen, matlab, simulation MATLAB Answers — New Questions
Matlab 2025b become unresponsive after running long iterations
The thing seems to get stuck after loading a lot of files.
Despite those files are not kept in the memory.
e.g.,
for i = 1 : 10000
filename = xxxx_i % different file each iteration
data = load(filename);
% then do something with data, and data is updated every iteration
end
and MATLAB becomes unresponsive after running the said code. The behavior is kind of reproducable in different scripts loading different files for different purposes. The common ground is they are all loading a lot of files, and Matlab gets stuck afterwards. The memoery useage is normal.
Appears to be a new issue starting from 2025b, 2025a doesn`t have this behavior.The thing seems to get stuck after loading a lot of files.
Despite those files are not kept in the memory.
e.g.,
for i = 1 : 10000
filename = xxxx_i % different file each iteration
data = load(filename);
% then do something with data, and data is updated every iteration
end
and MATLAB becomes unresponsive after running the said code. The behavior is kind of reproducable in different scripts loading different files for different purposes. The common ground is they are all loading a lot of files, and Matlab gets stuck afterwards. The memoery useage is normal.
Appears to be a new issue starting from 2025b, 2025a doesn`t have this behavior. The thing seems to get stuck after loading a lot of files.
Despite those files are not kept in the memory.
e.g.,
for i = 1 : 10000
filename = xxxx_i % different file each iteration
data = load(filename);
% then do something with data, and data is updated every iteration
end
and MATLAB becomes unresponsive after running the said code. The behavior is kind of reproducable in different scripts loading different files for different purposes. The common ground is they are all loading a lot of files, and Matlab gets stuck afterwards. The memoery useage is normal.
Appears to be a new issue starting from 2025b, 2025a doesn`t have this behavior. bug MATLAB Answers — New Questions
Allowing Users to Add Enterprise Apps to Entra ID is a Bad Idea
Reviewing Enterprise Apps is a Good Idea
Over the years, I have advised Microsoft 365 tenants to check and clean up enterprise apps regularly. Initially, the Graph APIs available to report information about enterprise apps weren’t too approachable and lacked some data. However, the situation has improved and it’s now easier to get a solid handle on the enterprise apps present in a tenant, the usage of those apps, and the permissions used by apps to access data.
Given that the original clean-up script dates back to April 2020, I’ve been writing a new script based on the Microsoft Graph PowerShell SDK to demonstrate how to generate review data. (Microsoft released V2.32 of the SDK on October 20, 2025, so far, the new version appears to be solid). In any case, once I’ve finished tweaking the code, I’ll write up details about what the script does and release it via the Office 365 for IT Pros GitHub repository.
The Case of the Newly-Added Enterprise Application
One of the checks performed by the script highlights recently added service principals. After writing the code, I was interested to discover the presence of an enterprise app called GuideAnts, added on 15 October 2025 by my account. I couldn’t remember anything about adding such an app. Advancing age has a nasty habit of eroding immediate recall.
In any case, running an audit log search confirmed that my account had added the service principal (Use the Search-UnifiedAuditLog cmdlet to search the audit log for events with operations = “Add Service Principal.”). Here’s an extract from the audit log:
Actor : {@{ID=Tony.Redmond@office365itpros; Type=5}, @{ID=1003BFFD805C87B0; Type=3}, @{ID=Azure ESTS Service; Type=1}, @{ID=00000001-0000-0000-c000-000000000000; Type=2}…}
InterSystemsId : e5fce0de-688c-4e1e-bf64-22d9246ba0e6
IntraSystemId : 00000000-0000-0000-0000-000000000000
SupportTicketId :
Target : {@{ID=ServicePrincipal_d448e5cc-80cc-4c95-8aca-356068dc2972; Type=2},@{ID=d448e5cc-80cc-4c95-8aca-356068dc2972; Type=2}, @{ID=ServicePrincipal; Type=2},@{ID=guideants; Type=1}…}
Having still no memory of doing such a thing, I exported my browser history and loaded the CSV file into PowerShell to check it:
$History = Import-CSV browserhistory.csv
$History | Where-Object {$_.pagetitle -like "*GuideAnts*"} | Format-table DateTime, PageTitle, NavigatedToURL
DateTime PageTitle NavigatedToUrl
-------- --------- --------------
2025-10-15T20:26:54.855Z GuideAnts Notebooks https://go.guideants.ai/access
2025-10-15T20:26:30.514Z GuideAnts Notebooks https://go.guideants.ai/login
2025-10-15T20:26:29.801Z GuideAnts Notebooks https://go.guideants.ai/
This is the kind of interaction captured when someone goes through the consent process to add an enterprise app (Figure 1) and consents on behalf of the organization. There was no doubt. I was the culprit.

This is an example of bad practice in action. I might have been tired, and I might have wanted to check out the app because I was writing about ISV AI-powered add-ins for Microsoft 365 at the time, but these are not acceptable excuses.
Consent Approval Workflow for Enterprise Apps
I violated my personal standards in three ways. First, I added an enterprise app without much consideration, perhaps because the permissions sought for the app were pretty benign. Second, I added an unverified app. Enterprise apps published by ISVs should go through the Microsoft verification process to give tenants some additional trust that the app comes from a reputable publisher.
Third, I used my administrator account. Had I used my normal account, I wouldn’t have been able to add an enterprise app because the tenant settings would block immediate app creation by users. Instead, a request to add the app would have gone through a consent approval workflow for approval by an administrator (Figure 2). Even if that administrator was me, being forced to go through the approval process might have caused me to think why an enterprise app was needed, or to review the reply URLs used by the app and ask myself why these URLs are required.

We live and learn from our mistakes. I hope that I won’t make the same mistake again!
GuideAnts AI Notebooks
Apart from noting the unverified nature of the enterprise app, none of the above is criticism of the GuideAnts app (an AI-powered notebook). The app’s author is Doug Ware, an ex-MVP, who publishes some interesting AI-related content on Elumenotion.com. The app is currently in preview. You can read more about GuideAnts here and decide if you want its enterprise app to exist in your tenant. Use invite code 22VG6Y if you want to join the preview.
Learn how to exploit the data available to Microsoft 365 tenant administrators through the Office 365 for IT Pros eBook. We love figuring out how things work.
Why is VideoReader telling me the duration of every video is 0?
I am trying to use VideoReader to gather data about a video. Ultimatly what I want to do is define a time stamp and extract the frame that corresponds to that time frame. For some reason when I use VideoReader I get all of the usual data except for the Duration which always reads 0. Ive tried a few videos and they all read 0. Below is my code.
Edit: The video im trying to load is roughly an hour long
VideoName = "video.mp4";
V = VideoReader(VideoName);
VideoHeight = V.Height;
VideoWidth = V.Width;
VideoFrames = V.NumFrames;
VideoFrameRate = V.FrameRate;
VideoLength = VideoFrames/VideoFrameRate;
TargetTimeStamp = 0;
V.CurrentTime = TargetTimeStamp;
Frame = readFrame(V);
imshow(Frame)
Here is the output of VideoReader:
Duration 0 1×1 double
Name ‘video.mp4’ 1×38 char
Path ‘C:Users’ 1×46 char
BitsPerPixel 24 1×1 double
FrameRate 31.4136 1×1 double
Height 1080 1×1 double
NumFrames 2328 1×1 double
VideoFormat ‘RGB24’ 1×5 char
Width 1920 1×1 double
Tag ” 0×0 char
UserData [ ] 0×0 double
CurrentTime 0.0318 1×1 doubleI am trying to use VideoReader to gather data about a video. Ultimatly what I want to do is define a time stamp and extract the frame that corresponds to that time frame. For some reason when I use VideoReader I get all of the usual data except for the Duration which always reads 0. Ive tried a few videos and they all read 0. Below is my code.
Edit: The video im trying to load is roughly an hour long
VideoName = "video.mp4";
V = VideoReader(VideoName);
VideoHeight = V.Height;
VideoWidth = V.Width;
VideoFrames = V.NumFrames;
VideoFrameRate = V.FrameRate;
VideoLength = VideoFrames/VideoFrameRate;
TargetTimeStamp = 0;
V.CurrentTime = TargetTimeStamp;
Frame = readFrame(V);
imshow(Frame)
Here is the output of VideoReader:
Duration 0 1×1 double
Name ‘video.mp4’ 1×38 char
Path ‘C:Users’ 1×46 char
BitsPerPixel 24 1×1 double
FrameRate 31.4136 1×1 double
Height 1080 1×1 double
NumFrames 2328 1×1 double
VideoFormat ‘RGB24’ 1×5 char
Width 1920 1×1 double
Tag ” 0×0 char
UserData [ ] 0×0 double
CurrentTime 0.0318 1×1 double I am trying to use VideoReader to gather data about a video. Ultimatly what I want to do is define a time stamp and extract the frame that corresponds to that time frame. For some reason when I use VideoReader I get all of the usual data except for the Duration which always reads 0. Ive tried a few videos and they all read 0. Below is my code.
Edit: The video im trying to load is roughly an hour long
VideoName = "video.mp4";
V = VideoReader(VideoName);
VideoHeight = V.Height;
VideoWidth = V.Width;
VideoFrames = V.NumFrames;
VideoFrameRate = V.FrameRate;
VideoLength = VideoFrames/VideoFrameRate;
TargetTimeStamp = 0;
V.CurrentTime = TargetTimeStamp;
Frame = readFrame(V);
imshow(Frame)
Here is the output of VideoReader:
Duration 0 1×1 double
Name ‘video.mp4’ 1×38 char
Path ‘C:Users’ 1×46 char
BitsPerPixel 24 1×1 double
FrameRate 31.4136 1×1 double
Height 1080 1×1 double
NumFrames 2328 1×1 double
VideoFormat ‘RGB24’ 1×5 char
Width 1920 1×1 double
Tag ” 0×0 char
UserData [ ] 0×0 double
CurrentTime 0.0318 1×1 double video processing MATLAB Answers — New Questions
quadratic formula matlab coding
quadratic formula codingquadratic formula coding quadratic formula coding quadratic formula MATLAB Answers — New Questions
issue with Installing Offline Documentation
when i Installing Offline Documentation on Windows 10 for MATLAB R2023a
on offline machine (not have a network connection)
step 1: mount iso
step 2: run Windows Command Prompt as Administrator
step 3: cd E:binwin64
step 4: .mpm install-doc –matlabroot="C:Program FilesMATLABR2023a"
result: ‘.mpm’ is not recognized as an internal or external command,
operable program or batch file.
please, how to solve this issue with a clear steps because i’m beginner user.when i Installing Offline Documentation on Windows 10 for MATLAB R2023a
on offline machine (not have a network connection)
step 1: mount iso
step 2: run Windows Command Prompt as Administrator
step 3: cd E:binwin64
step 4: .mpm install-doc –matlabroot="C:Program FilesMATLABR2023a"
result: ‘.mpm’ is not recognized as an internal or external command,
operable program or batch file.
please, how to solve this issue with a clear steps because i’m beginner user. when i Installing Offline Documentation on Windows 10 for MATLAB R2023a
on offline machine (not have a network connection)
step 1: mount iso
step 2: run Windows Command Prompt as Administrator
step 3: cd E:binwin64
step 4: .mpm install-doc –matlabroot="C:Program FilesMATLABR2023a"
result: ‘.mpm’ is not recognized as an internal or external command,
operable program or batch file.
please, how to solve this issue with a clear steps because i’m beginner user. install offline documentation, offline documentation, install documentation, documentation, mpm MATLAB Answers — New Questions
How to develop a Closed loop current control for converter
I have developed a Buck-Boost converter to charge a SuperCap from a source, in Buck mode and supply a load in Boost mode, I have created a voltage control loop, to maintain the Voltage level within the limit 2.7V.
I also need to include a current controller for maintaing the current to the reference value, (ex.10A)
I need support/guidance with this part.I have developed a Buck-Boost converter to charge a SuperCap from a source, in Buck mode and supply a load in Boost mode, I have created a voltage control loop, to maintain the Voltage level within the limit 2.7V.
I also need to include a current controller for maintaing the current to the reference value, (ex.10A)
I need support/guidance with this part. I have developed a Buck-Boost converter to charge a SuperCap from a source, in Buck mode and supply a load in Boost mode, I have created a voltage control loop, to maintain the Voltage level within the limit 2.7V.
I also need to include a current controller for maintaing the current to the reference value, (ex.10A)
I need support/guidance with this part. converter current control, closed loop control MATLAB Answers — New Questions
Im not able to find the powergui block with my school license?
I’m not able to find the powergui or specialized systems category even tho I have a license through my college for matlab? How can I fix this? this is what shows up when I click on the simscape library.I’m not able to find the powergui or specialized systems category even tho I have a license through my college for matlab? How can I fix this? this is what shows up when I click on the simscape library. I’m not able to find the powergui or specialized systems category even tho I have a license through my college for matlab? How can I fix this? this is what shows up when I click on the simscape library. powergui MATLAB Answers — New Questions
Updating the Entra ID Password Protection Policy with the Microsoft Graph PowerShell SDK
Use SDK Cmdlets to Create or Update Password Protection Policy Settings
A reader asks if the script written for the article about updating the Entra ID banned password list can be used to update other settings in the Entra ID password protection policy. The answer is “of course.” The code is PowerShell, and it can be adapted to update any of the password protection settings found in the Entra admin center (Figure 1).

A few considerations must be remembered when updating the Entra ID password protection policy:
- You don’t need additional licenses to use the default password protection policy. If you create a custom policy by updating settings, user accounts must be licensed with Entra P1 or P2.
- Custom password policy settings are immediately effective across the entire tenant. You can’t assign a custom password policy to specific users or groups.
- In a hybrid environment, password protection can extend to Active Directory.
Creating a Password Protection Policy
The underlying concepts for creating a custom password policy are similar to the management of other Entra ID policies (like the Microsoft 365 groups policy):
Check if a custom policy exists, or rather, a directory setting object created using the directory setting template for password rules. The template always has the identifier 5cf42378-d67d-4f36-ba46-e8b86229381d, so we can check if a custom password protection policy exists follows:
$Policy = (Get-MgBetaDirectorySetting | Where-Object {$_.TemplateId -eq "5cf42378-d67d-4f36-ba46-e8b86229381d"})A client-side filter is used because the Graph API does not support server-side filtering against template identifiers.
If a password policy object is not available, you can create a new password policy object. The values for the policy settings are in a hash table containing an array of values. Each value (a setting) is a hash table consisting of the setting name and its value. For example, this code creates the hash table to hold the setting for lockout duration:
$Value5 = @{}
$Value5.Add("Name", "LockoutDurationInSeconds")
$Value5.Add("Value", $LockoutDuration -as [int32])
After populating values for all settings (or just the ones that are different from the default), run the New-MgBetaDirectorySetting cmdlet to create the new custom password policy:
$NewBannedListParameters = @{}
$NewBannedListParameters.Add("templateId", "5cf42378-d67d-4f36-ba46-e8b86229381d")
$NewBannedListParameters.Add("values", ($Value1, $Value2, $Value3, $Value4, $Value5, $Value6))
$Policy = New-MgBetaDirectorySetting -BodyParameter $NewBannedListParameters -ErrorAction Stop
Updating the Password Protection Policy
If a custom policy already exists, fetch the policy settings, update the value for the settings that you want to change, and use the Update-MgBetaDirectorySetting cmdlet to update the policy. This example changes the lock out duration time to 120 seconds (the default is 60 seconds):
[array]$PolicyValues = Get-MgBetaDirectorySetting -DirectorySettingId $Policy.Id | Select-Object -ExpandProperty Values
($PolicyValues | Where-Object {$_.Name -eq "LockOutDurationInSeconds"}).Value = 120
Update-MgBetaDirectorySetting -DirectorySettingId $Policy.id -Values $PolicyValues -ErrorAction Stop
The code for these operations is the same as used in the script to update the banned passwords list. Grab what you need from that script and repurpose it to do whatever you need to. For instance, some organizations like to validate that the password policy settings in the tenants that they manage are consistent and up to date. This is easily done on a periodic basis by creating a PowerShell runbook in Azure Automation. I imagine that checking the password policy would only be one of the Entra ID configuration checks that such a runbook would process. At least, that’s how I would do it.
Next Step – Testing Configurations
The Maester utility includes some checks against the password policy and it would be easy to expand test coverage to whatever aspect of the password policy you consider needs to be checked. Once you’ve mastered programmatic manipulation of the Entra ID password protection policy settings, anything is possible.
Support the work of the Office 365 for IT Pros team by subscribing to the Office 365 for IT Pros eBook. Your support pays for the time we need to track, analyze, and document the changing world of Microsoft 365 and Office 365. Only humans contribute to our work!
Is MultiSelect possible with the Checkbox Tree? (App Designer)
The normal tree app component has the MultiSelect property. The checkbox tree (introduced in 2021a), however, has not and, so far, I have not been able to enable the selection of multiple child nodes of the checkbox tree. Is it possible to circumvent this limitation?The normal tree app component has the MultiSelect property. The checkbox tree (introduced in 2021a), however, has not and, so far, I have not been able to enable the selection of multiple child nodes of the checkbox tree. Is it possible to circumvent this limitation? The normal tree app component has the MultiSelect property. The checkbox tree (introduced in 2021a), however, has not and, so far, I have not been able to enable the selection of multiple child nodes of the checkbox tree. Is it possible to circumvent this limitation? app designer, selection, tree, checkbox MATLAB Answers — New Questions
How can I access secrets (MATLAB vault) in web apps?
I am deploying an app to MATLAB Web App Server that uses secrets. Currently, this works in my local MATLAB installation using setSecret and getSecret. How can I use these secrets when deploying this app as a web app on MATLAB Web App Server? I am deploying an app to MATLAB Web App Server that uses secrets. Currently, this works in my local MATLAB installation using setSecret and getSecret. How can I use these secrets when deploying this app as a web app on MATLAB Web App Server? I am deploying an app to MATLAB Web App Server that uses secrets. Currently, this works in my local MATLAB installation using setSecret and getSecret. How can I use these secrets when deploying this app as a web app on MATLAB Web App Server? MATLAB Answers — New Questions
can u ans me what should i do now from bolded wave to normalwave
i do my simulink which is dynamic voltage restorer using fuzzy logic controller for voltage stabilization. here i face this kind of problem can u suggest me what should i do now? why the curve is bolded? please help mei do my simulink which is dynamic voltage restorer using fuzzy logic controller for voltage stabilization. here i face this kind of problem can u suggest me what should i do now? why the curve is bolded? please help me i do my simulink which is dynamic voltage restorer using fuzzy logic controller for voltage stabilization. here i face this kind of problem can u suggest me what should i do now? why the curve is bolded? please help me simulink, matlab MATLAB Answers — New Questions
Making a table from data using rec
I am trying to use this code to create a table of when the data is in recession (when the value of q(x)>q(x-1)). However I do not know how to use the rec command.
T= readtable ("GDF.xlsx");
q=T(:,2);%The second column of the data is numerical, the first column is just dates
R=0;
for x=T
if q(x)>q(x-1) %Defining what a recession counts as
R=R+1;
rec(x)=1 %If it is a recession it =1, if not it will =0
else
rec(x)=0;
end
end
Error message that appears when I run this code:
Error using () (line 133)
Subscripting into a table using one subscript (as in t(i))
is not supported. Specify a row subscript and a variable
subscript, as in t(rows,vars). To select variables, use
t(:,i) or for one variable t.(i). To select rows, use
t(i,:).
Error in
Week4Q2 (line 8)
if q(x)>q(x-1)
Any idea on how to change the code so it produces a table of when the data is in recession? Help would be appreciated.I am trying to use this code to create a table of when the data is in recession (when the value of q(x)>q(x-1)). However I do not know how to use the rec command.
T= readtable ("GDF.xlsx");
q=T(:,2);%The second column of the data is numerical, the first column is just dates
R=0;
for x=T
if q(x)>q(x-1) %Defining what a recession counts as
R=R+1;
rec(x)=1 %If it is a recession it =1, if not it will =0
else
rec(x)=0;
end
end
Error message that appears when I run this code:
Error using () (line 133)
Subscripting into a table using one subscript (as in t(i))
is not supported. Specify a row subscript and a variable
subscript, as in t(rows,vars). To select variables, use
t(:,i) or for one variable t.(i). To select rows, use
t(i,:).
Error in
Week4Q2 (line 8)
if q(x)>q(x-1)
Any idea on how to change the code so it produces a table of when the data is in recession? Help would be appreciated. I am trying to use this code to create a table of when the data is in recession (when the value of q(x)>q(x-1)). However I do not know how to use the rec command.
T= readtable ("GDF.xlsx");
q=T(:,2);%The second column of the data is numerical, the first column is just dates
R=0;
for x=T
if q(x)>q(x-1) %Defining what a recession counts as
R=R+1;
rec(x)=1 %If it is a recession it =1, if not it will =0
else
rec(x)=0;
end
end
Error message that appears when I run this code:
Error using () (line 133)
Subscripting into a table using one subscript (as in t(i))
is not supported. Specify a row subscript and a variable
subscript, as in t(rows,vars). To select variables, use
t(:,i) or for one variable t.(i). To select rows, use
t(i,:).
Error in
Week4Q2 (line 8)
if q(x)>q(x-1)
Any idea on how to change the code so it produces a table of when the data is in recession? Help would be appreciated. table, rec, if statement, for loop, else MATLAB Answers — New Questions
Important Change Coming for Entra ID Passkeys in November 2025
Passkey Settings Behavior Change After Introduction of New Passkey Profiles
If your focus is on Entra ID or security, you probably agree with the statement that passkeys are the future for authentication. Or at least, the immediate next step. Who knows what might happen after passkeys are fully deployed? After all, it wasn’t so long ago that people congratulated themselves for using SMS messages for multifactor authentication.
In any case, message center notification MC1097225 (first published 17 June 2025, updated 20 October 2025) marks an important point in the evolution of passkey support within Entra ID. Where today Entra ID supports tenant-wide controls for passkeys as an authentication method, from November 2025 (December 2025 for government clouds), the preview Entra ID feature will support up to ten passkey profiles per tenant. The intention behind the change is to allow tenants to exert more granular control over which users can use what passkeys for authentication.
Granular control is usually goodness, and there’s goodness in this change. You’ll be able to create a passkey profile for departments or other groups and dictate what kind of passkeys the users within the scope of the profile can use.
Passkey Authenticator Attestation
A potential downside exists that should be understood before rushing to embrace the change. When a tenant opts in to use the new approach, Entra ID switches to a new schema to describe what passkey policies are. Logically enough, the existing passkey settings become the default passkey policy, and if the setting to enforce attestation is disabled, Entra ID will become less strict about the kind of passkeys it accepts as an authentication method.
Passkeys have an Authenticator Attestation GUID (AAGUID), a 128-bit identifier to identify the make and model. In enterprise environments, it is common practice to decide on a set of passkeys or FIDO2 keys that the tenant wishes to support. This decision is enforced by specifying the AAGUIDs in the passkey settings.
But as part of the change to the new passkey schema, Microsoft says that “if Enforce attestation is disabled (in a policy), we (Entra ID) will start accepting security key or passkey providers using the following attestation statements:
- “none”
- “tpm”
- “packed” (AttCA type only)
- Custom attestation formats ≤ 32 characters
This will allow a wider range of security keys and passkey providers to be accepted for registration and authentication in Microsoft Entra ID.”
That doesn’t sound too serious, but it does mean that if your current passkey settings do not enforce attestation (Figure 1), anyone covered by the default policy created when the switchover happens will be able to choose whatever passkey type they like.

A Passkey Setting Worth Checking
Some tenants might not care very much about the non-enforcement of attestation. Others will care deeply because of the work they’ve done previously to figure out what kind of passkeys should be used within the tenant. In either case, it’s worthwhile considering the topic and deciding if attestation should be enforced.
Microsoft says that there’s no administrator action necessary for the change. It will be deployed automatically to tenants, and you might not realize that anything has happened if you don’t have the need to review authentication methods.
APIs Not Ready for Change
MC1097225 contains an important note: “If you continue using Graph API or third-party tools to modify the policy, the schema will not change until General Availability.” Remember, what comes in November is a preview and it takes time for APIs to catch up with change. Customers who have built tools to manage authentication methods can continue to use those methods until general availability happens, which will probably be in early to mid-2026 (my guess). When that happens, I guess I’ll revisit my password and authentication methods report script.
Support the work of the Office 365 for IT Pros team by subscribing to the Office 365 for IT Pros eBook. Your support pays for the time we need to track, analyze, and document the changing world of Microsoft 365 and Office 365. Only humans contribute to our work!
Figure 창에 출력되는 이미지 크기 조절 방법
안녕하세요.
Figure 창에 출력되는 결과가 전체의 부분만 나타납니다. 처리하는 이미지 크기가 커서 그런것 같아서 이미지 크기를 줄여도 동일한 형태인데. Figure에 출력되는 이미지가 계속 부분만 보이는 이유가 무엇인지 조언 부탁 드립니다.
scale_factor = 0.5;
radius_range_orig = [15 60];
img1_rgb_orig = imread(‘SIFT_1.png’);
img1_rgb = imresize(img1_rgb_orig, scale_factor);
img1_gray = im2gray(img1_rgb);
img2_rgb_orig = imread(‘SIFT_2.png’);
img2_rgb = imresize(img2_rgb_orig, scale_factor);
img2_gray = im2gray(img2_rgb);
points1_all = detectSIFTFeatures(img1_gray);
points2_all = detectSIFTFeatures(img2_gray);
scaled_radius_range = round(radius_range_orig * scale_factor);
[centers1, radii1] = imfindcircles(img1_gray, scaled_radius_range, ‘Sensitivity’, 0.92, ‘ObjectPolarity’, ‘bright’);
if isempty(centers1)
disp(‘SIFT_1.png (축소됨)에서 공을 찾지 못했습니다. 반경/민감도를 조절하세요.’);
return;
end
center1 = centers1(1,:);
radius1 = radii1(1);
roi1 = [center1(1)-radius1, center1(2)-radius1, 2*radius1, 2*radius1];
[centers2, radii2] = imfindcircles(img2_gray, scaled_radius_range, ‘Sensitivity’, 0.92, ‘ObjectPolarity’, ‘bright’);
if isempty(centers2)
disp(‘SIFT_2.png (축소됨)에서 공을 찾지 못했습니다. 반경/민감도를 조절하세요.’);
return;
end
center2 = centers2(1,:);
radius2 = radii2(1);
roi2 = [center2(1)-radius2, center2(2)-radius2, 2*radius2, 2*radius2];
locations1 = points1_all.Location;
x_min1 = roi1(1); y_min1 = roi1(2);
x_max1 = roi1(1) + roi1(3); y_max1 = roi1(2) + roi1(4);
inside_indices1 = (locations1(:, 1) >= x_min1 & locations1(:, 1) <= x_max1 & …
locations1(:, 2) >= y_min1 & locations1(:, 2) <= y_max1);
points_in_roi1 = points1_all(inside_indices1);
locations2 = points2_all.Location;
x_min2 = roi2(1); y_min2 = roi2(2);
x_max2 = roi2(1) + roi2(3); y_max2 = roi2(2) + roi2(4);
inside_indices2 = (locations2(:, 1) >= x_min2 & locations2(:, 1) <= x_max2 & …
locations2(:, 2) >= y_min2 & locations2(:, 2) <= y_max2);
points_in_roi2 = points2_all(inside_indices2);
[features1, valid_points1] = extractFeatures(img1_gray, points_in_roi1);
[features2, valid_points2] = extractFeatures(img2_gray, points_in_roi2);
indexPairs = matchFeatures(features1, features2, ‘MaxRatio’, 0.6);
matchedPoints1 = valid_points1(indexPairs(:, 1), :);
matchedPoints2 = valid_points2(indexPairs(:, 2), :);
figure(‘WindowState’, ‘maximized’);
showMatchedFeatures(img1_rgb, img2_rgb, matchedPoints1, matchedPoints2, ‘montage’);
title(‘Matched SIFT Features (Resized Image)’);안녕하세요.
Figure 창에 출력되는 결과가 전체의 부분만 나타납니다. 처리하는 이미지 크기가 커서 그런것 같아서 이미지 크기를 줄여도 동일한 형태인데. Figure에 출력되는 이미지가 계속 부분만 보이는 이유가 무엇인지 조언 부탁 드립니다.
scale_factor = 0.5;
radius_range_orig = [15 60];
img1_rgb_orig = imread(‘SIFT_1.png’);
img1_rgb = imresize(img1_rgb_orig, scale_factor);
img1_gray = im2gray(img1_rgb);
img2_rgb_orig = imread(‘SIFT_2.png’);
img2_rgb = imresize(img2_rgb_orig, scale_factor);
img2_gray = im2gray(img2_rgb);
points1_all = detectSIFTFeatures(img1_gray);
points2_all = detectSIFTFeatures(img2_gray);
scaled_radius_range = round(radius_range_orig * scale_factor);
[centers1, radii1] = imfindcircles(img1_gray, scaled_radius_range, ‘Sensitivity’, 0.92, ‘ObjectPolarity’, ‘bright’);
if isempty(centers1)
disp(‘SIFT_1.png (축소됨)에서 공을 찾지 못했습니다. 반경/민감도를 조절하세요.’);
return;
end
center1 = centers1(1,:);
radius1 = radii1(1);
roi1 = [center1(1)-radius1, center1(2)-radius1, 2*radius1, 2*radius1];
[centers2, radii2] = imfindcircles(img2_gray, scaled_radius_range, ‘Sensitivity’, 0.92, ‘ObjectPolarity’, ‘bright’);
if isempty(centers2)
disp(‘SIFT_2.png (축소됨)에서 공을 찾지 못했습니다. 반경/민감도를 조절하세요.’);
return;
end
center2 = centers2(1,:);
radius2 = radii2(1);
roi2 = [center2(1)-radius2, center2(2)-radius2, 2*radius2, 2*radius2];
locations1 = points1_all.Location;
x_min1 = roi1(1); y_min1 = roi1(2);
x_max1 = roi1(1) + roi1(3); y_max1 = roi1(2) + roi1(4);
inside_indices1 = (locations1(:, 1) >= x_min1 & locations1(:, 1) <= x_max1 & …
locations1(:, 2) >= y_min1 & locations1(:, 2) <= y_max1);
points_in_roi1 = points1_all(inside_indices1);
locations2 = points2_all.Location;
x_min2 = roi2(1); y_min2 = roi2(2);
x_max2 = roi2(1) + roi2(3); y_max2 = roi2(2) + roi2(4);
inside_indices2 = (locations2(:, 1) >= x_min2 & locations2(:, 1) <= x_max2 & …
locations2(:, 2) >= y_min2 & locations2(:, 2) <= y_max2);
points_in_roi2 = points2_all(inside_indices2);
[features1, valid_points1] = extractFeatures(img1_gray, points_in_roi1);
[features2, valid_points2] = extractFeatures(img2_gray, points_in_roi2);
indexPairs = matchFeatures(features1, features2, ‘MaxRatio’, 0.6);
matchedPoints1 = valid_points1(indexPairs(:, 1), :);
matchedPoints2 = valid_points2(indexPairs(:, 2), :);
figure(‘WindowState’, ‘maximized’);
showMatchedFeatures(img1_rgb, img2_rgb, matchedPoints1, matchedPoints2, ‘montage’);
title(‘Matched SIFT Features (Resized Image)’); 안녕하세요.
Figure 창에 출력되는 결과가 전체의 부분만 나타납니다. 처리하는 이미지 크기가 커서 그런것 같아서 이미지 크기를 줄여도 동일한 형태인데. Figure에 출력되는 이미지가 계속 부분만 보이는 이유가 무엇인지 조언 부탁 드립니다.
scale_factor = 0.5;
radius_range_orig = [15 60];
img1_rgb_orig = imread(‘SIFT_1.png’);
img1_rgb = imresize(img1_rgb_orig, scale_factor);
img1_gray = im2gray(img1_rgb);
img2_rgb_orig = imread(‘SIFT_2.png’);
img2_rgb = imresize(img2_rgb_orig, scale_factor);
img2_gray = im2gray(img2_rgb);
points1_all = detectSIFTFeatures(img1_gray);
points2_all = detectSIFTFeatures(img2_gray);
scaled_radius_range = round(radius_range_orig * scale_factor);
[centers1, radii1] = imfindcircles(img1_gray, scaled_radius_range, ‘Sensitivity’, 0.92, ‘ObjectPolarity’, ‘bright’);
if isempty(centers1)
disp(‘SIFT_1.png (축소됨)에서 공을 찾지 못했습니다. 반경/민감도를 조절하세요.’);
return;
end
center1 = centers1(1,:);
radius1 = radii1(1);
roi1 = [center1(1)-radius1, center1(2)-radius1, 2*radius1, 2*radius1];
[centers2, radii2] = imfindcircles(img2_gray, scaled_radius_range, ‘Sensitivity’, 0.92, ‘ObjectPolarity’, ‘bright’);
if isempty(centers2)
disp(‘SIFT_2.png (축소됨)에서 공을 찾지 못했습니다. 반경/민감도를 조절하세요.’);
return;
end
center2 = centers2(1,:);
radius2 = radii2(1);
roi2 = [center2(1)-radius2, center2(2)-radius2, 2*radius2, 2*radius2];
locations1 = points1_all.Location;
x_min1 = roi1(1); y_min1 = roi1(2);
x_max1 = roi1(1) + roi1(3); y_max1 = roi1(2) + roi1(4);
inside_indices1 = (locations1(:, 1) >= x_min1 & locations1(:, 1) <= x_max1 & …
locations1(:, 2) >= y_min1 & locations1(:, 2) <= y_max1);
points_in_roi1 = points1_all(inside_indices1);
locations2 = points2_all.Location;
x_min2 = roi2(1); y_min2 = roi2(2);
x_max2 = roi2(1) + roi2(3); y_max2 = roi2(2) + roi2(4);
inside_indices2 = (locations2(:, 1) >= x_min2 & locations2(:, 1) <= x_max2 & …
locations2(:, 2) >= y_min2 & locations2(:, 2) <= y_max2);
points_in_roi2 = points2_all(inside_indices2);
[features1, valid_points1] = extractFeatures(img1_gray, points_in_roi1);
[features2, valid_points2] = extractFeatures(img2_gray, points_in_roi2);
indexPairs = matchFeatures(features1, features2, ‘MaxRatio’, 0.6);
matchedPoints1 = valid_points1(indexPairs(:, 1), :);
matchedPoints2 = valid_points2(indexPairs(:, 2), :);
figure(‘WindowState’, ‘maximized’);
showMatchedFeatures(img1_rgb, img2_rgb, matchedPoints1, matchedPoints2, ‘montage’);
title(‘Matched SIFT Features (Resized Image)’); figure, 이미지크기 조절 MATLAB Answers — New Questions
Capture 1.6 GHz Bandwidth Spectrum Using Multiple Antennas
I want to fully utilize the 1.6 GHz bandwidth of the X410. What kind of computer hardware configuration should I use should I use (network card, cable, memory, storage, etc.)?I want to fully utilize the 1.6 GHz bandwidth of the X410. What kind of computer hardware configuration should I use should I use (network card, cable, memory, storage, etc.)? I want to fully utilize the 1.6 GHz bandwidth of the X410. What kind of computer hardware configuration should I use should I use (network card, cable, memory, storage, etc.)? usrp, x410 MATLAB Answers — New Questions
The ‘Evaluate’ attribute is not valid – Simscape masking
I am trying to make a masked subsystem with an integrated Pipe (TL) block from the Simscape Fluids library. In the mask, I promote the ‘Cross-sectional geometry’ and ‘Pipe diameter’ properties. Previewing the dialog box works at this point. When changing the cross-sectional geometry in the dialog box from Circular to e.g. Annular, the mask editor gives the following error: The ‘Evaluate’ attribute specified for parameter ‘Parameter 2’ of block ‘Model/Subsystem’ is not valid. Looking at the Mask editor, the entire list of parameters changes. The properties are still there but all the namings are gone. Moreover, I noticed that depending on which property is loaded in ‘Cross-sectional geometry’, the Evaluate attribute of ‘Pipe diameter’ is either checked or not, and I cannot change it by clicking in the mask – it seems to be locked. I’ve been looking for the attributes via command line using get(gcbh), but I was not able to find a way to change the attribute. I found something in the ‘DialogParameters’ structure, but this is read-only and cannot be changed using set_param.
Is there a way I can get the masking working, with the ability to set both the Cross-sectional geometry as other properties like Pipe diameter?
Mask before changing cross-sectional geometry:
Mask after changing cross-sectional geometry:I am trying to make a masked subsystem with an integrated Pipe (TL) block from the Simscape Fluids library. In the mask, I promote the ‘Cross-sectional geometry’ and ‘Pipe diameter’ properties. Previewing the dialog box works at this point. When changing the cross-sectional geometry in the dialog box from Circular to e.g. Annular, the mask editor gives the following error: The ‘Evaluate’ attribute specified for parameter ‘Parameter 2’ of block ‘Model/Subsystem’ is not valid. Looking at the Mask editor, the entire list of parameters changes. The properties are still there but all the namings are gone. Moreover, I noticed that depending on which property is loaded in ‘Cross-sectional geometry’, the Evaluate attribute of ‘Pipe diameter’ is either checked or not, and I cannot change it by clicking in the mask – it seems to be locked. I’ve been looking for the attributes via command line using get(gcbh), but I was not able to find a way to change the attribute. I found something in the ‘DialogParameters’ structure, but this is read-only and cannot be changed using set_param.
Is there a way I can get the masking working, with the ability to set both the Cross-sectional geometry as other properties like Pipe diameter?
Mask before changing cross-sectional geometry:
Mask after changing cross-sectional geometry: I am trying to make a masked subsystem with an integrated Pipe (TL) block from the Simscape Fluids library. In the mask, I promote the ‘Cross-sectional geometry’ and ‘Pipe diameter’ properties. Previewing the dialog box works at this point. When changing the cross-sectional geometry in the dialog box from Circular to e.g. Annular, the mask editor gives the following error: The ‘Evaluate’ attribute specified for parameter ‘Parameter 2’ of block ‘Model/Subsystem’ is not valid. Looking at the Mask editor, the entire list of parameters changes. The properties are still there but all the namings are gone. Moreover, I noticed that depending on which property is loaded in ‘Cross-sectional geometry’, the Evaluate attribute of ‘Pipe diameter’ is either checked or not, and I cannot change it by clicking in the mask – it seems to be locked. I’ve been looking for the attributes via command line using get(gcbh), but I was not able to find a way to change the attribute. I found something in the ‘DialogParameters’ structure, but this is read-only and cannot be changed using set_param.
Is there a way I can get the masking working, with the ability to set both the Cross-sectional geometry as other properties like Pipe diameter?
Mask before changing cross-sectional geometry:
Mask after changing cross-sectional geometry: mask, evaluate MATLAB Answers — New Questions
How can I execute a function if it exist, otherwise use a custom function?
knnsearch is a function from the "statistics and machine learning toolbox"
I created my own knnsearch, however, if the user has this function already I want to run it from the toolbox. if the user doesn’t have it, then execute my implementation.
The problem is that matlab fails in compiler time becasue it is expecting knnsearch to exist.
by the way… I used copilot and chatgpt for suggestions…. but their suggestions didn’t work.
function [k_idx, D] = knnsearch_lib(queryPoint, data, k)
% Check if the Toolbox knnsearch function is available
if exist(‘knnsearch’, ‘file’) == 2
[k_idx, D] = knnsearch(queryPoint, data, k);
else
% If not available, use custom implementation
[k_idx, D] = knn_custom(queryPoint, data, k);
end
endknnsearch is a function from the "statistics and machine learning toolbox"
I created my own knnsearch, however, if the user has this function already I want to run it from the toolbox. if the user doesn’t have it, then execute my implementation.
The problem is that matlab fails in compiler time becasue it is expecting knnsearch to exist.
by the way… I used copilot and chatgpt for suggestions…. but their suggestions didn’t work.
function [k_idx, D] = knnsearch_lib(queryPoint, data, k)
% Check if the Toolbox knnsearch function is available
if exist(‘knnsearch’, ‘file’) == 2
[k_idx, D] = knnsearch(queryPoint, data, k);
else
% If not available, use custom implementation
[k_idx, D] = knn_custom(queryPoint, data, k);
end
end knnsearch is a function from the "statistics and machine learning toolbox"
I created my own knnsearch, however, if the user has this function already I want to run it from the toolbox. if the user doesn’t have it, then execute my implementation.
The problem is that matlab fails in compiler time becasue it is expecting knnsearch to exist.
by the way… I used copilot and chatgpt for suggestions…. but their suggestions didn’t work.
function [k_idx, D] = knnsearch_lib(queryPoint, data, k)
% Check if the Toolbox knnsearch function is available
if exist(‘knnsearch’, ‘file’) == 2
[k_idx, D] = knnsearch(queryPoint, data, k);
else
% If not available, use custom implementation
[k_idx, D] = knn_custom(queryPoint, data, k);
end
end conditional dispatch MATLAB Answers — New Questions









