Month: June 2024
The encoder counter and speed display are wrong
I’m using R2024a and Embedded Encoder Support Package for Infineon AURIX TC3x Microcontrollers inside the add on.
And using the encoder block and running in KIT_A2G_TC387_5V TFT board ,and use scope to observe the output.
The results and settings are as shown below.
1.hardware setting
2-1 encoder setting
2-2 encoder setting
3.scope setting
4.result
from top to the bottom is count,direction,and rad/s.I’m using R2024a and Embedded Encoder Support Package for Infineon AURIX TC3x Microcontrollers inside the add on.
And using the encoder block and running in KIT_A2G_TC387_5V TFT board ,and use scope to observe the output.
The results and settings are as shown below.
1.hardware setting
2-1 encoder setting
2-2 encoder setting
3.scope setting
4.result
from top to the bottom is count,direction,and rad/s. I’m using R2024a and Embedded Encoder Support Package for Infineon AURIX TC3x Microcontrollers inside the add on.
And using the encoder block and running in KIT_A2G_TC387_5V TFT board ,and use scope to observe the output.
The results and settings are as shown below.
1.hardware setting
2-1 encoder setting
2-2 encoder setting
3.scope setting
4.result
from top to the bottom is count,direction,and rad/s. encoder MATLAB Answers — New Questions
How to disable position independent code (PIC) in CMake code generation for PIL?
Hi. I’m trying to create a PIL connectivity configuration for a board with a Cortex-M3 processor, using the "modern" method of target package and CMake. The code that is being generated is PIC, and I need it to not be PIC because I really do not want to write a bootloader. I simply want to run a PIL simulation and confirm that everything is calculated correctly. Handling a PIE is wasted effort.
However, I cannot see any way to disable PIC. In the internal files of the coder toolbox, file "writeCMakeLists.m" which generates the CMakeLists.txt from what I can see, the following is written:
% Always compile using position independent code
% Static libraries built without PIC might cause a failure when linked by a shared library
% See g2329017
cmakeTarget.Properties(end+1) = coder.make.internal.cmake.NameValuePair(‘PREFIX’, ‘""’);
cmakeTarget.Properties(end+1) = coder.make.internal.cmake.NameValuePair(‘POSITION_INDEPENDENT_CODE’, ‘ON’);
So from that I take that PIC is forced on the generated code. I would like to know if there is any way to disable PIC, or, as a last resort, if modifying the above Matlab file to disable PIC would have any unintended consequences (this is a bit complicated since I don’t have admin at work to modify program files, but as a last resort can be done).
Thank you.Hi. I’m trying to create a PIL connectivity configuration for a board with a Cortex-M3 processor, using the "modern" method of target package and CMake. The code that is being generated is PIC, and I need it to not be PIC because I really do not want to write a bootloader. I simply want to run a PIL simulation and confirm that everything is calculated correctly. Handling a PIE is wasted effort.
However, I cannot see any way to disable PIC. In the internal files of the coder toolbox, file "writeCMakeLists.m" which generates the CMakeLists.txt from what I can see, the following is written:
% Always compile using position independent code
% Static libraries built without PIC might cause a failure when linked by a shared library
% See g2329017
cmakeTarget.Properties(end+1) = coder.make.internal.cmake.NameValuePair(‘PREFIX’, ‘""’);
cmakeTarget.Properties(end+1) = coder.make.internal.cmake.NameValuePair(‘POSITION_INDEPENDENT_CODE’, ‘ON’);
So from that I take that PIC is forced on the generated code. I would like to know if there is any way to disable PIC, or, as a last resort, if modifying the above Matlab file to disable PIC would have any unintended consequences (this is a bit complicated since I don’t have admin at work to modify program files, but as a last resort can be done).
Thank you. Hi. I’m trying to create a PIL connectivity configuration for a board with a Cortex-M3 processor, using the "modern" method of target package and CMake. The code that is being generated is PIC, and I need it to not be PIC because I really do not want to write a bootloader. I simply want to run a PIL simulation and confirm that everything is calculated correctly. Handling a PIE is wasted effort.
However, I cannot see any way to disable PIC. In the internal files of the coder toolbox, file "writeCMakeLists.m" which generates the CMakeLists.txt from what I can see, the following is written:
% Always compile using position independent code
% Static libraries built without PIC might cause a failure when linked by a shared library
% See g2329017
cmakeTarget.Properties(end+1) = coder.make.internal.cmake.NameValuePair(‘PREFIX’, ‘""’);
cmakeTarget.Properties(end+1) = coder.make.internal.cmake.NameValuePair(‘POSITION_INDEPENDENT_CODE’, ‘ON’);
So from that I take that PIC is forced on the generated code. I would like to know if there is any way to disable PIC, or, as a last resort, if modifying the above Matlab file to disable PIC would have any unintended consequences (this is a bit complicated since I don’t have admin at work to modify program files, but as a last resort can be done).
Thank you. code generation, pil, cmake MATLAB Answers — New Questions
DATCOM Forces and Moments Block Control Surface Deflection Issues
I am a bit uncertain abou the proper use of the control surface delta block for the DATCOM forces and moments block in Simulink.
I noticed that when using import DATCOM with both the GRNDHT namelist for ground effect and the DELTA namelist for control surface deflections, the static stability derivatives are missing the values at various deflections at free-air ground height. To address this, I copied and filled in all the deflection values (6th index) coping the first value in the 6th index to fill in the free-air paraemters across all deflections. My assumption was that the DATCOM forces and moments block would use these to compute the forces and moments with no deflection, then add the control surface contributions seperately using dcm_sym, dcl_sym etc. However I only see a response to control surface delta inputs when the ground height signal is within the ground effect range, indicating that perhaps the DATCOM forces and moments block is not adding the dcm_sym, dcl_sym […] contributions and only finding coefficients from the cl, cl […] tables.
My question is, does the DATCOM forces and moments block read the incremental lift coefficients dcm_sym, dcl_sym […], or does it only apply the cl, cm […] coefficients for the current flight conditions, and are you supposed to manually apply aerdynamic coefficients using the aerodynamic forces and moments to account for forces and moments induced by the control surfaces?
Lastly, the units for the delta signal in Simulink state rad/s, I presume this is just a typo?
If anyone has any experience adding control surface contributions to a DATCOM simulink model, I would greatly appredicate your assistance!I am a bit uncertain abou the proper use of the control surface delta block for the DATCOM forces and moments block in Simulink.
I noticed that when using import DATCOM with both the GRNDHT namelist for ground effect and the DELTA namelist for control surface deflections, the static stability derivatives are missing the values at various deflections at free-air ground height. To address this, I copied and filled in all the deflection values (6th index) coping the first value in the 6th index to fill in the free-air paraemters across all deflections. My assumption was that the DATCOM forces and moments block would use these to compute the forces and moments with no deflection, then add the control surface contributions seperately using dcm_sym, dcl_sym etc. However I only see a response to control surface delta inputs when the ground height signal is within the ground effect range, indicating that perhaps the DATCOM forces and moments block is not adding the dcm_sym, dcl_sym […] contributions and only finding coefficients from the cl, cl […] tables.
My question is, does the DATCOM forces and moments block read the incremental lift coefficients dcm_sym, dcl_sym […], or does it only apply the cl, cm […] coefficients for the current flight conditions, and are you supposed to manually apply aerdynamic coefficients using the aerodynamic forces and moments to account for forces and moments induced by the control surfaces?
Lastly, the units for the delta signal in Simulink state rad/s, I presume this is just a typo?
If anyone has any experience adding control surface contributions to a DATCOM simulink model, I would greatly appredicate your assistance! I am a bit uncertain abou the proper use of the control surface delta block for the DATCOM forces and moments block in Simulink.
I noticed that when using import DATCOM with both the GRNDHT namelist for ground effect and the DELTA namelist for control surface deflections, the static stability derivatives are missing the values at various deflections at free-air ground height. To address this, I copied and filled in all the deflection values (6th index) coping the first value in the 6th index to fill in the free-air paraemters across all deflections. My assumption was that the DATCOM forces and moments block would use these to compute the forces and moments with no deflection, then add the control surface contributions seperately using dcm_sym, dcl_sym etc. However I only see a response to control surface delta inputs when the ground height signal is within the ground effect range, indicating that perhaps the DATCOM forces and moments block is not adding the dcm_sym, dcl_sym […] contributions and only finding coefficients from the cl, cl […] tables.
My question is, does the DATCOM forces and moments block read the incremental lift coefficients dcm_sym, dcl_sym […], or does it only apply the cl, cm […] coefficients for the current flight conditions, and are you supposed to manually apply aerdynamic coefficients using the aerodynamic forces and moments to account for forces and moments induced by the control surfaces?
Lastly, the units for the delta signal in Simulink state rad/s, I presume this is just a typo?
If anyone has any experience adding control surface contributions to a DATCOM simulink model, I would greatly appredicate your assistance! aerospace blocket, simulink, datcom, datcomimport, datcom forces and moments MATLAB Answers — New Questions
Slow array of structure updating in saving variables in app designer
I am working on developing an application in app designer for doing a bunch of fits and saving the results in an array of structures, where each structure has various types of fields about the fit results. When I save the file, I update the array with the fit_info structure each fit, and append to the array of structures for each save step. I eventually will be doing 89×13 fits. But, each cycle gets slower and slower, so it is impractically slow by about 30 fits. I looked into saving a separate variable for each fit, by dynamically naming the variables, i.e., fit_info_1_1, fit_info_1_2, etc., but I know this is bad programming practice. Does anyone have any suggestions?
function SaveFitButtonPushed(app, event)
data_source=string(app.TextArea.Value);
filename=strcat("fit_results_",data_source);
if isfile(filename)
matObj=matfile(filename,’Writable’,true);
matObj.fit_info_a(app.ColumnEditField.Value,app.CompoundEditField.Value)=app.fit_info_1;
else
fit_info_a(app.ColumnEditField.Value,app.CompoundEditField.Value)=app.fit_info_1;
save (filename,’fit_info_a’,’-v7.3′);
end
if ~isempty(app.fit_info_2.pm95)
data_source=string(app.TextArea.Value);
filename=strcat("fit_results_2_",data_source);
if isfile(filename)
matObj=matfile(filename,’Writable’,true);
matObj.fit_info_b(app.ColumnEditField.Value,app.CompoundEditField.Value)=app.fit_info_2;
else
fit_info_b(app.ColumnEditField.Value,app.CompoundEditField.Value)=app.fit_info_2;
save (filename,’fit_info_b’,’-v7.3′);
end
end
app.k_refS_1refS_2refTextArea.Value=”;
app.s_ETextArea.Value=”;
app.k_refS_1refS_2refTextArea_2.Value=”;
app.s_ETextArea_2.Value=”;
app.phi_refEditField.Value=30;
app.phi_refEditField_2.Value=30;
str='[]’;
app.OmitPointsEditField.Value=str;
app.OmitPointsEditField_2.Value=str;
endI am working on developing an application in app designer for doing a bunch of fits and saving the results in an array of structures, where each structure has various types of fields about the fit results. When I save the file, I update the array with the fit_info structure each fit, and append to the array of structures for each save step. I eventually will be doing 89×13 fits. But, each cycle gets slower and slower, so it is impractically slow by about 30 fits. I looked into saving a separate variable for each fit, by dynamically naming the variables, i.e., fit_info_1_1, fit_info_1_2, etc., but I know this is bad programming practice. Does anyone have any suggestions?
function SaveFitButtonPushed(app, event)
data_source=string(app.TextArea.Value);
filename=strcat("fit_results_",data_source);
if isfile(filename)
matObj=matfile(filename,’Writable’,true);
matObj.fit_info_a(app.ColumnEditField.Value,app.CompoundEditField.Value)=app.fit_info_1;
else
fit_info_a(app.ColumnEditField.Value,app.CompoundEditField.Value)=app.fit_info_1;
save (filename,’fit_info_a’,’-v7.3′);
end
if ~isempty(app.fit_info_2.pm95)
data_source=string(app.TextArea.Value);
filename=strcat("fit_results_2_",data_source);
if isfile(filename)
matObj=matfile(filename,’Writable’,true);
matObj.fit_info_b(app.ColumnEditField.Value,app.CompoundEditField.Value)=app.fit_info_2;
else
fit_info_b(app.ColumnEditField.Value,app.CompoundEditField.Value)=app.fit_info_2;
save (filename,’fit_info_b’,’-v7.3′);
end
end
app.k_refS_1refS_2refTextArea.Value=”;
app.s_ETextArea.Value=”;
app.k_refS_1refS_2refTextArea_2.Value=”;
app.s_ETextArea_2.Value=”;
app.phi_refEditField.Value=30;
app.phi_refEditField_2.Value=30;
str='[]’;
app.OmitPointsEditField.Value=str;
app.OmitPointsEditField_2.Value=str;
end I am working on developing an application in app designer for doing a bunch of fits and saving the results in an array of structures, where each structure has various types of fields about the fit results. When I save the file, I update the array with the fit_info structure each fit, and append to the array of structures for each save step. I eventually will be doing 89×13 fits. But, each cycle gets slower and slower, so it is impractically slow by about 30 fits. I looked into saving a separate variable for each fit, by dynamically naming the variables, i.e., fit_info_1_1, fit_info_1_2, etc., but I know this is bad programming practice. Does anyone have any suggestions?
function SaveFitButtonPushed(app, event)
data_source=string(app.TextArea.Value);
filename=strcat("fit_results_",data_source);
if isfile(filename)
matObj=matfile(filename,’Writable’,true);
matObj.fit_info_a(app.ColumnEditField.Value,app.CompoundEditField.Value)=app.fit_info_1;
else
fit_info_a(app.ColumnEditField.Value,app.CompoundEditField.Value)=app.fit_info_1;
save (filename,’fit_info_a’,’-v7.3′);
end
if ~isempty(app.fit_info_2.pm95)
data_source=string(app.TextArea.Value);
filename=strcat("fit_results_2_",data_source);
if isfile(filename)
matObj=matfile(filename,’Writable’,true);
matObj.fit_info_b(app.ColumnEditField.Value,app.CompoundEditField.Value)=app.fit_info_2;
else
fit_info_b(app.ColumnEditField.Value,app.CompoundEditField.Value)=app.fit_info_2;
save (filename,’fit_info_b’,’-v7.3′);
end
end
app.k_refS_1refS_2refTextArea.Value=”;
app.s_ETextArea.Value=”;
app.k_refS_1refS_2refTextArea_2.Value=”;
app.s_ETextArea_2.Value=”;
app.phi_refEditField.Value=30;
app.phi_refEditField_2.Value=30;
str='[]’;
app.OmitPointsEditField.Value=str;
app.OmitPointsEditField_2.Value=str;
end appdesigner, save, appending to file, array of structures MATLAB Answers — New Questions
Graph API with console app
Want to write console application in vsc to search the documents which are modified in last1 day.
Want to write console application in vsc to search the documents which are modified in last1 day. Read More
Sequential subtraction using criteria and a starting amount
Hi,
I’m having trouble creating a formula for this. I need it to sequentially subtract if equal to the selected date and if not then leave blank regardless if any value is entered. Need this to output as a horizontal spilled range and not use volatile functions (as my workbook is already fairly big)
Ex: Sum only if equal to value in today cell using the starting value in amount cell
today2024-01-27 amount500 Dates2024-01-272024-01-272024-02-272024-03-252024-04-14values1000.00800.00 750.00 output as spilled range-500-800
My thanks in advance.
Hi, I’m having trouble creating a formula for this. I need it to sequentially subtract if equal to the selected date and if not then leave blank regardless if any value is entered. Need this to output as a horizontal spilled range and not use volatile functions (as my workbook is already fairly big) Ex: Sum only if equal to value in today cell using the starting value in amount celltoday2024-01-27 amount500 Dates2024-01-272024-01-272024-02-272024-03-252024-04-14values1000.00800.00 750.00 output as spilled range-500-800 My thanks in advance. Read More
Defender for endpoint
-Does Defender for endpoint work if AV is in passive mode i.e. will it show pop ups, etc…-Does it view content in labelled items (using unified labelling) to intercept Sensitive info types? or should they be un-labelled.-In order for block printing to work, What are the conditions, Does it require a set of printers identified in DLP settings in compliance portal? or if not specified, Does it not work? Read More
Prevent creation of sharepoint list record if criteria is met?
I know you can do column data verification for certain data types. But I have a scenario where I want to prevent the creation of a record if certain criteria is met for the record as whole.
example: making a change control share point list. In this example the developer cannot be the same as the tester. If someone accidentally sets the same person for both fields and tries to save the record, it should stop them. How do you do that?
I know you can do column data verification for certain data types. But I have a scenario where I want to prevent the creation of a record if certain criteria is met for the record as whole. example: making a change control share point list. In this example the developer cannot be the same as the tester. If someone accidentally sets the same person for both fields and tries to save the record, it should stop them. How do you do that? Read More
How to Fix Connection Has Been Lost Error in Q.B?
I’m encountering an error message in Q.B that says “Connection has been lost.” This issue is disrupting my work and causing problems with accessing my company files. Has anyone faced this before? What steps can I take to resolve this error and prevent it from happening again? Any advice would be greatly appreciated!
I’m encountering an error message in Q.B that says “Connection has been lost.” This issue is disrupting my work and causing problems with accessing my company files. Has anyone faced this before? What steps can I take to resolve this error and prevent it from happening again? Any advice would be greatly appreciated! Read More
Integrate GPT4o (Azure Open AI) in Teams channel via Logic App with image supportability
As per the previous blog (Integrate Azure Open AI in Teams Channel via Logic App – Microsoft Community Hub) which only supports for plain text conversation.
For now, Azure Open AI released GPT-4o model which integrates text and images in a single model, enabling it to handle multiple data types simultaneously.
This post is to introduce how to upgrade to GPT-4o with capability for image processing.
Prerequisite
Most of the prerequisites are the same, just instead of GPT-3.5, we need to have a GPT-4o deployment in Azure Open AI environment.
Since GPT-4o is not available for all the regions, so you need to refer to the document (Azure OpenAI Service models – Azure OpenAI | Microsoft Learn) to see whether your current region supports for GPT-4o or not. If not, then you will have to deploy a new Azure Open AI.
Mechanism
In Open AI API, we can see that when send image to API, we need to provide image as base64 encoded content.
[
{
“role”: “user”,
“content”: [
{
“type”: “image_url”,
“image_url”: {
“url”: “data:image/png;base64,iVBORw0AAABJR…..U5ErkJggg==”
}
},
{
“type”: “text”,
“text”: “what is this logo”
}
]
}
]
So the only thing for us is to get image binary data from Teams channel which we can achieve that via using Teams Graph API: Get chatMessageHostedContent – Microsoft Graph v1.0 | Microsoft Learn
Template and parameters
You can find the template in Drac-Zhang/LogicApp_Teams_OpenAI_Integration_WithGPT4o (github.com)
Parameters of the template:
Parameter Name
Comments
openai_apikey
The api key of Open AI resource, it can be found in Open AI -> Keys and Endpoints
openai_endpoint
Open AI api endpoint, the format is https://[Open AI resource Name].openai.azure.com/openai/deployments/[Deployment name]/chat/completions?api-version=2024-04-01-preview
The version has been upgraded to 2024-04-01-preview compare to previous blog
teams_channel_keyword
The keywords you would like to trigger the Logic App, not case sensitive
teams_channel_id
See previous blog Integrate Azure Open AI in Teams Channel via Logic App – Microsoft Community Hub
teams_group_id
See previous blog Integrate Azure Open AI in Teams Channel via Logic App – Microsoft Community Hub
storage_account_name
The storage account name for saving conversation history
storage_account_accesskey
The access key for the storage account
Known Issues
Except the same known issues from previous blog, we have a new one:
In “Send a Microsoft Graph Http Request” action in “Microsoft Teams” connector, we have an issue that cannot correctly response hosted content as binary data, so we have to use “Invoke an HTTP request” which results to extra API connection (webcontents) and it requests to manual authentication after the deployment.
Sample Chat
Microsoft Tech Community – Latest Blogs –Read More
Three Phase dynamic load
Guys:
I´m an electric engineering student and I´m trying to create a IEEE-33 distribuion line topology with simulink as shown in figure 1. Source voltage is 138Kv and transformer reduces to 13.8 Kv.
<</matlabcentral/answers/uploaded_files/27736/topology.png>>
Instead of using fixed loads, I´m using three phase dynamic load with external control as show in figure 2.
<</matlabcentral/answers/uploaded_files/27737/model.png>>
I´m facing a problem with with a very small model with three loads. Voltages and currents that are associated to these load models as show in figure 3 have strange behaviours. Results are like numeric noise. I was suspecting that the problem could be related with solve model but I tried fixed step and variable step with the same results.
<</matlabcentral/answers/uploaded_files/27738/results.png>>
Can anyone explain to me what is going on with the model and how to fix it ?
Sincerely,
Andre NudelGuys:
I´m an electric engineering student and I´m trying to create a IEEE-33 distribuion line topology with simulink as shown in figure 1. Source voltage is 138Kv and transformer reduces to 13.8 Kv.
<</matlabcentral/answers/uploaded_files/27736/topology.png>>
Instead of using fixed loads, I´m using three phase dynamic load with external control as show in figure 2.
<</matlabcentral/answers/uploaded_files/27737/model.png>>
I´m facing a problem with with a very small model with three loads. Voltages and currents that are associated to these load models as show in figure 3 have strange behaviours. Results are like numeric noise. I was suspecting that the problem could be related with solve model but I tried fixed step and variable step with the same results.
<</matlabcentral/answers/uploaded_files/27738/results.png>>
Can anyone explain to me what is going on with the model and how to fix it ?
Sincerely,
Andre Nudel Guys:
I´m an electric engineering student and I´m trying to create a IEEE-33 distribuion line topology with simulink as shown in figure 1. Source voltage is 138Kv and transformer reduces to 13.8 Kv.
<</matlabcentral/answers/uploaded_files/27736/topology.png>>
Instead of using fixed loads, I´m using three phase dynamic load with external control as show in figure 2.
<</matlabcentral/answers/uploaded_files/27737/model.png>>
I´m facing a problem with with a very small model with three loads. Voltages and currents that are associated to these load models as show in figure 3 have strange behaviours. Results are like numeric noise. I was suspecting that the problem could be related with solve model but I tried fixed step and variable step with the same results.
<</matlabcentral/answers/uploaded_files/27738/results.png>>
Can anyone explain to me what is going on with the model and how to fix it ?
Sincerely,
Andre Nudel threephasedynamicload MATLAB Answers — New Questions
Matlab doesn´t respect the UI Scale of my OS
I’m encountering an issue with font size in MATLAB on my Linux system. During the installation of MATLAB, both the installation window and the software interface displayed very small fonts. Despite adjusting the DPI setting of my operating system (currently set to 200%), MATLAB seems to be fixed at a 100% scale, regardless of whether I change the scale to 200% or 300%.
I’m using linux mint 21.3I’m encountering an issue with font size in MATLAB on my Linux system. During the installation of MATLAB, both the installation window and the software interface displayed very small fonts. Despite adjusting the DPI setting of my operating system (currently set to 200%), MATLAB seems to be fixed at a 100% scale, regardless of whether I change the scale to 200% or 300%.
I’m using linux mint 21.3 I’m encountering an issue with font size in MATLAB on my Linux system. During the installation of MATLAB, both the installation window and the software interface displayed very small fonts. Despite adjusting the DPI setting of my operating system (currently set to 200%), MATLAB seems to be fixed at a 100% scale, regardless of whether I change the scale to 200% or 300%.
I’m using linux mint 21.3 linux, graphics, installation, matlab gui MATLAB Answers — New Questions
Retrieving incremental regression kernel trained model
How can I retrieve the incremental regression kernel trained model?: the equation that predict function uses to predict output.How can I retrieve the incremental regression kernel trained model?: the equation that predict function uses to predict output. How can I retrieve the incremental regression kernel trained model?: the equation that predict function uses to predict output. regression, svm, random features expansion MATLAB Answers — New Questions
No classification layer in MATLAB Deep network designer
Hi,
I am trying to build an image classification network in MATLAB. I am using the inbuilt Deep Network Designer app. But in the end of the neural network, there is a classification layer which is totally missing. I designed the last network in March and at that time the layer was present but now it is missing. Attaching the screenshots for reference. Also the tabs to select the image ibrary and the training options are missing from the top.Hi,
I am trying to build an image classification network in MATLAB. I am using the inbuilt Deep Network Designer app. But in the end of the neural network, there is a classification layer which is totally missing. I designed the last network in March and at that time the layer was present but now it is missing. Attaching the screenshots for reference. Also the tabs to select the image ibrary and the training options are missing from the top. Hi,
I am trying to build an image classification network in MATLAB. I am using the inbuilt Deep Network Designer app. But in the end of the neural network, there is a classification layer which is totally missing. I designed the last network in March and at that time the layer was present but now it is missing. Attaching the screenshots for reference. Also the tabs to select the image ibrary and the training options are missing from the top. deep learning, neural network, classification MATLAB Answers — New Questions
IF and ANDfunction
Trying to setup divisions for 3 sets of handicaps using ‘=IF(C2<=12,$G$2,IF(C2>=13<20,$G$3,IF(C2>20,$G$4)))’ but only getting 1st and last formula to calculate and getting a ‘false’ message for the middle formula-how do I set up this function within the calculation?
Trying to setup divisions for 3 sets of handicaps using ‘=IF(C2<=12,$G$2,IF(C2>=13<20,$G$3,IF(C2>20,$G$4)))’ but only getting 1st and last formula to calculate and getting a ‘false’ message for the middle formula-how do I set up this function within the calculation? Read More
Below Powershell script is not working without running as administrator.
Hi All,
I want to change the default font to Verdana on excel to all users on the intune endpoints.
But script is not working for some users. When checked directly on powershell i get the below errors
If i run as administrator it will work and the default font changes to verdana straight away.
Please help correcting the below script to run as administrator so that i can deploy to all intune devices.
if((Test-Path -LiteralPath “HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions”) -ne $true) { New-Item “HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions” -force -ea SilentlyContinue };
if((Test-Path -LiteralPath “HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptionsbinaryoptions”) -ne $true) { New-Item “HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptionsbinaryoptions” -force -ea SilentlyContinue };
New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions’ -Name ‘extractdatadisableui’ -Value 1 -PropertyType DWord -Force -ea SilentlyContinue;
New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions’ -Name ‘font’ -Value ‘Verdana, 11’ -PropertyType String -Force -ea SilentlyContinue;
New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions’ -Name ‘disableautorepublish’ -Value 1 -PropertyType DWord -Force -ea SilentlyContinue;
New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions’ -Name ‘disableautorepublishwarning’ -Value 0 -PropertyType DWord -Force -ea SilentlyContinue;
New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptionsbinaryoptions’ -Name ‘fupdateext_78_1’ -Value 0 -PropertyType DWord -Force -ea SilentlyContinue;
Hi All,I want to change the default font to Verdana on excel to all users on the intune endpoints.But script is not working for some users. When checked directly on powershell i get the below errors If i run as administrator it will work and the default font changes to verdana straight away.Please help correcting the below script to run as administrator so that i can deploy to all intune devices. if((Test-Path -LiteralPath “HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions”) -ne $true) { New-Item “HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions” -force -ea SilentlyContinue };if((Test-Path -LiteralPath “HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptionsbinaryoptions”) -ne $true) { New-Item “HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptionsbinaryoptions” -force -ea SilentlyContinue };New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions’ -Name ‘extractdatadisableui’ -Value 1 -PropertyType DWord -Force -ea SilentlyContinue;New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions’ -Name ‘font’ -Value ‘Verdana, 11’ -PropertyType String -Force -ea SilentlyContinue;New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions’ -Name ‘disableautorepublish’ -Value 1 -PropertyType DWord -Force -ea SilentlyContinue;New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptions’ -Name ‘disableautorepublishwarning’ -Value 0 -PropertyType DWord -Force -ea SilentlyContinue;New-ItemProperty -LiteralPath ‘HKCU:SoftwarePoliciesMicrosoftoffice16.0exceloptionsbinaryoptions’ -Name ‘fupdateext_78_1’ -Value 0 -PropertyType DWord -Force -ea SilentlyContinue; Read More
The code which disconnect safely an USB drive works randomly
Dear all,
I work on MATLAB R2023a and Windows 11 23H2.
Thanks to this post I coud do the following code which disconnect safely E:, a USB drive.
Unfortunately, sometimes it does not work, for example, when I change the plug from USB port, it needs several execution to disconnect safely the drive.
I also noticed that in the app (see below), missing run are more frequent. The code is just executed under the button Run (first callback).
The command window shows the message I expect when it works but in fact the USB drive is still visible on "My Computer". If the disconnection works, I see an error message in the command window.
Do you have an idea what can I do to solve this issue or find it origin?
Best regards,
Pierre
The code:
function EjectUSB
% Create the PowerShell command to eject the drive
powershellCommand = ‘(New-Object -comObject Shell.Application).Namespace(17).ParseName(”E:”).InvokeVerb(”Eject”)’;
% Create the command to run PowerShell from MATLAB
command = sprintf(‘powershell -Command "%s"’, powershellCommand);
% Execute the PowerShell command
[status, cmdout] = system(command);
% Display the results
if status == 0
disp([‘Lecteur USB E éjecté avec succès.’]);
else
disp(‘Échec de l”éjection du lecteur USB.’);
disp(cmdout);
end
end
%Add a diskpart list to check if E: has been removed
The app:
classdef PotVibrantUI < matlab.apps.AppBase
% Properties that correspond to app components
properties (Access = public)
UIFigure matlab.ui.Figure
AmplitudeSlider matlab.ui.control.Slider
FrequencySlider matlab.ui.control.Slider
Amplitude0to1EditField matlab.ui.control.NumericEditField
Amplitude0to1EditFieldLabel matlab.ui.control.Label
FrequencyHzEditField matlab.ui.control.NumericEditField
FrequencyHzEditFieldLabel matlab.ui.control.Label
RunButton matlab.ui.control.Button
end
properties (Access = private)
frequency = 20; % Default frequency value
amplitude = 0.5; % Default amplitude value
end
% Callbacks that handle component events
methods (Access = private)
% Button pushed function: RunButton
function RunButtonPushed(app, event)
SetupFileCreation(app.frequency)
CustomFileCreation(app.amplitude)
pause(3)
EjectUSB
pause(3)
EjectUSB
end
% Value changing function: FrequencySlider
function FrequencySliderValueChanging(app, event)
changingValue = event.Value;
app.FrequencyHzEditField.Value = changingValue;
% Update the app.frequency property
app.frequency = changingValue;
% guidata() to share variables
end
% Value changed function: FrequencyHzEditField
function FrequencyHzEditFieldValueChanged(app, event)
value = app.FrequencyHzEditField.Value;
app.FrequencySlider.Value = value;
% Update the app.frequency property
app.frequency = value;
end
% Value changing function: AmplitudeSlider
function AmplitudeSliderValueChanging(app, event)
changingValue = event.Value;
app.Amplitude0to1EditField.Value = changingValue;
% Update the app.frequency property
app.amplitude = changingValue;
% guidata() to share variables
end
% Value changed function: Amplitude0to1EditField
function Amplitude0to1EditFieldValueChanged(app, event)
value = app.Amplitude0to1EditField.Value;
app.AmplitudeSlider.Value = value;
app.amplitude = value;
end
end
% Component initialization
methods (Access = private)
% Create UIFigure and components
function createComponents(app)
% Create UIFigure and hide until all components are created
app.UIFigure = uifigure(‘Visible’, ‘off’);
app.UIFigure.Position = [100 100 640 480];
app.UIFigure.Name = ‘MATLAB App’;
% Create RunButton
app.RunButton = uibutton(app.UIFigure, ‘push’);
app.RunButton.ButtonPushedFcn = createCallbackFcn(app, @RunButtonPushed, true);
app.RunButton.FontSize = 24;
app.RunButton.Position = [26 41 568 80];
app.RunButton.Text = ‘Run’;
% Create FrequencyHzEditFieldLabel
app.FrequencyHzEditFieldLabel = uilabel(app.UIFigure);
app.FrequencyHzEditFieldLabel.HorizontalAlignment = ‘right’;
app.FrequencyHzEditFieldLabel.FontSize = 24;
app.FrequencyHzEditFieldLabel.Position = [49 435 170 31];
app.FrequencyHzEditFieldLabel.Text = ‘Frequency (Hz)’;
% Create FrequencyHzEditField
app.FrequencyHzEditField = uieditfield(app.UIFigure, ‘numeric’);
app.FrequencyHzEditField.ValueChangedFcn = createCallbackFcn(app, @FrequencyHzEditFieldValueChanged, true);
app.FrequencyHzEditField.FontSize = 24;
app.FrequencyHzEditField.Position = [234 434 100 32];
app.FrequencyHzEditField.Value = 20;
% Create Amplitude0to1EditFieldLabel
app.Amplitude0to1EditFieldLabel = uilabel(app.UIFigure);
app.Amplitude0to1EditFieldLabel.HorizontalAlignment = ‘right’;
app.Amplitude0to1EditFieldLabel.FontSize = 24;
app.Amplitude0to1EditFieldLabel.Position = [38 252 195 31];
app.Amplitude0to1EditFieldLabel.Text = ‘Amplitude (0 to 1)’;
% Create Amplitude0to1EditField
app.Amplitude0to1EditField = uieditfield(app.UIFigure, ‘numeric’);
app.Amplitude0to1EditField.ValueChangedFcn = createCallbackFcn(app, @Amplitude0to1EditFieldValueChanged, true);
app.Amplitude0to1EditField.FontSize = 24;
app.Amplitude0to1EditField.Position = [248 251 100 32];
app.Amplitude0to1EditField.Value = 0.5;
% Create FrequencySlider
app.FrequencySlider = uislider(app.UIFigure);
app.FrequencySlider.Limits = [10 40];
app.FrequencySlider.ValueChangingFcn = createCallbackFcn(app, @FrequencySliderValueChanging, true);
app.FrequencySlider.FontSize = 24;
app.FrequencySlider.Position = [26 418 473 3];
app.FrequencySlider.Value = 20;
% Create AmplitudeSlider
app.AmplitudeSlider = uislider(app.UIFigure);
app.AmplitudeSlider.Limits = [0 1];
app.AmplitudeSlider.MajorTicks = [0 0.125 0.25 0.375 0.5 0.625 0.75 0.875 1];
app.AmplitudeSlider.ValueChangingFcn = createCallbackFcn(app, @AmplitudeSliderValueChanging, true);
app.AmplitudeSlider.FontSize = 18;
app.AmplitudeSlider.Position = [20 207 479 3];
app.AmplitudeSlider.Value = 0.5;
% Show the figure after all components are created
app.UIFigure.Visible = ‘on’;
end
end
% App creation and deletion
methods (Access = public)
% Construct app
function app = PotVibrantUI
% Create UIFigure and components
createComponents(app)
% Register the app with App Designer
registerApp(app, app.UIFigure)
if nargout == 0
clear app
end
end
% Code that executes before app deletion
function delete(app)
% Delete UIFigure when app is deleted
delete(app.UIFigure)
end
end
endDear all,
I work on MATLAB R2023a and Windows 11 23H2.
Thanks to this post I coud do the following code which disconnect safely E:, a USB drive.
Unfortunately, sometimes it does not work, for example, when I change the plug from USB port, it needs several execution to disconnect safely the drive.
I also noticed that in the app (see below), missing run are more frequent. The code is just executed under the button Run (first callback).
The command window shows the message I expect when it works but in fact the USB drive is still visible on "My Computer". If the disconnection works, I see an error message in the command window.
Do you have an idea what can I do to solve this issue or find it origin?
Best regards,
Pierre
The code:
function EjectUSB
% Create the PowerShell command to eject the drive
powershellCommand = ‘(New-Object -comObject Shell.Application).Namespace(17).ParseName(”E:”).InvokeVerb(”Eject”)’;
% Create the command to run PowerShell from MATLAB
command = sprintf(‘powershell -Command "%s"’, powershellCommand);
% Execute the PowerShell command
[status, cmdout] = system(command);
% Display the results
if status == 0
disp([‘Lecteur USB E éjecté avec succès.’]);
else
disp(‘Échec de l”éjection du lecteur USB.’);
disp(cmdout);
end
end
%Add a diskpart list to check if E: has been removed
The app:
classdef PotVibrantUI < matlab.apps.AppBase
% Properties that correspond to app components
properties (Access = public)
UIFigure matlab.ui.Figure
AmplitudeSlider matlab.ui.control.Slider
FrequencySlider matlab.ui.control.Slider
Amplitude0to1EditField matlab.ui.control.NumericEditField
Amplitude0to1EditFieldLabel matlab.ui.control.Label
FrequencyHzEditField matlab.ui.control.NumericEditField
FrequencyHzEditFieldLabel matlab.ui.control.Label
RunButton matlab.ui.control.Button
end
properties (Access = private)
frequency = 20; % Default frequency value
amplitude = 0.5; % Default amplitude value
end
% Callbacks that handle component events
methods (Access = private)
% Button pushed function: RunButton
function RunButtonPushed(app, event)
SetupFileCreation(app.frequency)
CustomFileCreation(app.amplitude)
pause(3)
EjectUSB
pause(3)
EjectUSB
end
% Value changing function: FrequencySlider
function FrequencySliderValueChanging(app, event)
changingValue = event.Value;
app.FrequencyHzEditField.Value = changingValue;
% Update the app.frequency property
app.frequency = changingValue;
% guidata() to share variables
end
% Value changed function: FrequencyHzEditField
function FrequencyHzEditFieldValueChanged(app, event)
value = app.FrequencyHzEditField.Value;
app.FrequencySlider.Value = value;
% Update the app.frequency property
app.frequency = value;
end
% Value changing function: AmplitudeSlider
function AmplitudeSliderValueChanging(app, event)
changingValue = event.Value;
app.Amplitude0to1EditField.Value = changingValue;
% Update the app.frequency property
app.amplitude = changingValue;
% guidata() to share variables
end
% Value changed function: Amplitude0to1EditField
function Amplitude0to1EditFieldValueChanged(app, event)
value = app.Amplitude0to1EditField.Value;
app.AmplitudeSlider.Value = value;
app.amplitude = value;
end
end
% Component initialization
methods (Access = private)
% Create UIFigure and components
function createComponents(app)
% Create UIFigure and hide until all components are created
app.UIFigure = uifigure(‘Visible’, ‘off’);
app.UIFigure.Position = [100 100 640 480];
app.UIFigure.Name = ‘MATLAB App’;
% Create RunButton
app.RunButton = uibutton(app.UIFigure, ‘push’);
app.RunButton.ButtonPushedFcn = createCallbackFcn(app, @RunButtonPushed, true);
app.RunButton.FontSize = 24;
app.RunButton.Position = [26 41 568 80];
app.RunButton.Text = ‘Run’;
% Create FrequencyHzEditFieldLabel
app.FrequencyHzEditFieldLabel = uilabel(app.UIFigure);
app.FrequencyHzEditFieldLabel.HorizontalAlignment = ‘right’;
app.FrequencyHzEditFieldLabel.FontSize = 24;
app.FrequencyHzEditFieldLabel.Position = [49 435 170 31];
app.FrequencyHzEditFieldLabel.Text = ‘Frequency (Hz)’;
% Create FrequencyHzEditField
app.FrequencyHzEditField = uieditfield(app.UIFigure, ‘numeric’);
app.FrequencyHzEditField.ValueChangedFcn = createCallbackFcn(app, @FrequencyHzEditFieldValueChanged, true);
app.FrequencyHzEditField.FontSize = 24;
app.FrequencyHzEditField.Position = [234 434 100 32];
app.FrequencyHzEditField.Value = 20;
% Create Amplitude0to1EditFieldLabel
app.Amplitude0to1EditFieldLabel = uilabel(app.UIFigure);
app.Amplitude0to1EditFieldLabel.HorizontalAlignment = ‘right’;
app.Amplitude0to1EditFieldLabel.FontSize = 24;
app.Amplitude0to1EditFieldLabel.Position = [38 252 195 31];
app.Amplitude0to1EditFieldLabel.Text = ‘Amplitude (0 to 1)’;
% Create Amplitude0to1EditField
app.Amplitude0to1EditField = uieditfield(app.UIFigure, ‘numeric’);
app.Amplitude0to1EditField.ValueChangedFcn = createCallbackFcn(app, @Amplitude0to1EditFieldValueChanged, true);
app.Amplitude0to1EditField.FontSize = 24;
app.Amplitude0to1EditField.Position = [248 251 100 32];
app.Amplitude0to1EditField.Value = 0.5;
% Create FrequencySlider
app.FrequencySlider = uislider(app.UIFigure);
app.FrequencySlider.Limits = [10 40];
app.FrequencySlider.ValueChangingFcn = createCallbackFcn(app, @FrequencySliderValueChanging, true);
app.FrequencySlider.FontSize = 24;
app.FrequencySlider.Position = [26 418 473 3];
app.FrequencySlider.Value = 20;
% Create AmplitudeSlider
app.AmplitudeSlider = uislider(app.UIFigure);
app.AmplitudeSlider.Limits = [0 1];
app.AmplitudeSlider.MajorTicks = [0 0.125 0.25 0.375 0.5 0.625 0.75 0.875 1];
app.AmplitudeSlider.ValueChangingFcn = createCallbackFcn(app, @AmplitudeSliderValueChanging, true);
app.AmplitudeSlider.FontSize = 18;
app.AmplitudeSlider.Position = [20 207 479 3];
app.AmplitudeSlider.Value = 0.5;
% Show the figure after all components are created
app.UIFigure.Visible = ‘on’;
end
end
% App creation and deletion
methods (Access = public)
% Construct app
function app = PotVibrantUI
% Create UIFigure and components
createComponents(app)
% Register the app with App Designer
registerApp(app, app.UIFigure)
if nargout == 0
clear app
end
end
% Code that executes before app deletion
function delete(app)
% Delete UIFigure when app is deleted
delete(app.UIFigure)
end
end
end Dear all,
I work on MATLAB R2023a and Windows 11 23H2.
Thanks to this post I coud do the following code which disconnect safely E:, a USB drive.
Unfortunately, sometimes it does not work, for example, when I change the plug from USB port, it needs several execution to disconnect safely the drive.
I also noticed that in the app (see below), missing run are more frequent. The code is just executed under the button Run (first callback).
The command window shows the message I expect when it works but in fact the USB drive is still visible on "My Computer". If the disconnection works, I see an error message in the command window.
Do you have an idea what can I do to solve this issue or find it origin?
Best regards,
Pierre
The code:
function EjectUSB
% Create the PowerShell command to eject the drive
powershellCommand = ‘(New-Object -comObject Shell.Application).Namespace(17).ParseName(”E:”).InvokeVerb(”Eject”)’;
% Create the command to run PowerShell from MATLAB
command = sprintf(‘powershell -Command "%s"’, powershellCommand);
% Execute the PowerShell command
[status, cmdout] = system(command);
% Display the results
if status == 0
disp([‘Lecteur USB E éjecté avec succès.’]);
else
disp(‘Échec de l”éjection du lecteur USB.’);
disp(cmdout);
end
end
%Add a diskpart list to check if E: has been removed
The app:
classdef PotVibrantUI < matlab.apps.AppBase
% Properties that correspond to app components
properties (Access = public)
UIFigure matlab.ui.Figure
AmplitudeSlider matlab.ui.control.Slider
FrequencySlider matlab.ui.control.Slider
Amplitude0to1EditField matlab.ui.control.NumericEditField
Amplitude0to1EditFieldLabel matlab.ui.control.Label
FrequencyHzEditField matlab.ui.control.NumericEditField
FrequencyHzEditFieldLabel matlab.ui.control.Label
RunButton matlab.ui.control.Button
end
properties (Access = private)
frequency = 20; % Default frequency value
amplitude = 0.5; % Default amplitude value
end
% Callbacks that handle component events
methods (Access = private)
% Button pushed function: RunButton
function RunButtonPushed(app, event)
SetupFileCreation(app.frequency)
CustomFileCreation(app.amplitude)
pause(3)
EjectUSB
pause(3)
EjectUSB
end
% Value changing function: FrequencySlider
function FrequencySliderValueChanging(app, event)
changingValue = event.Value;
app.FrequencyHzEditField.Value = changingValue;
% Update the app.frequency property
app.frequency = changingValue;
% guidata() to share variables
end
% Value changed function: FrequencyHzEditField
function FrequencyHzEditFieldValueChanged(app, event)
value = app.FrequencyHzEditField.Value;
app.FrequencySlider.Value = value;
% Update the app.frequency property
app.frequency = value;
end
% Value changing function: AmplitudeSlider
function AmplitudeSliderValueChanging(app, event)
changingValue = event.Value;
app.Amplitude0to1EditField.Value = changingValue;
% Update the app.frequency property
app.amplitude = changingValue;
% guidata() to share variables
end
% Value changed function: Amplitude0to1EditField
function Amplitude0to1EditFieldValueChanged(app, event)
value = app.Amplitude0to1EditField.Value;
app.AmplitudeSlider.Value = value;
app.amplitude = value;
end
end
% Component initialization
methods (Access = private)
% Create UIFigure and components
function createComponents(app)
% Create UIFigure and hide until all components are created
app.UIFigure = uifigure(‘Visible’, ‘off’);
app.UIFigure.Position = [100 100 640 480];
app.UIFigure.Name = ‘MATLAB App’;
% Create RunButton
app.RunButton = uibutton(app.UIFigure, ‘push’);
app.RunButton.ButtonPushedFcn = createCallbackFcn(app, @RunButtonPushed, true);
app.RunButton.FontSize = 24;
app.RunButton.Position = [26 41 568 80];
app.RunButton.Text = ‘Run’;
% Create FrequencyHzEditFieldLabel
app.FrequencyHzEditFieldLabel = uilabel(app.UIFigure);
app.FrequencyHzEditFieldLabel.HorizontalAlignment = ‘right’;
app.FrequencyHzEditFieldLabel.FontSize = 24;
app.FrequencyHzEditFieldLabel.Position = [49 435 170 31];
app.FrequencyHzEditFieldLabel.Text = ‘Frequency (Hz)’;
% Create FrequencyHzEditField
app.FrequencyHzEditField = uieditfield(app.UIFigure, ‘numeric’);
app.FrequencyHzEditField.ValueChangedFcn = createCallbackFcn(app, @FrequencyHzEditFieldValueChanged, true);
app.FrequencyHzEditField.FontSize = 24;
app.FrequencyHzEditField.Position = [234 434 100 32];
app.FrequencyHzEditField.Value = 20;
% Create Amplitude0to1EditFieldLabel
app.Amplitude0to1EditFieldLabel = uilabel(app.UIFigure);
app.Amplitude0to1EditFieldLabel.HorizontalAlignment = ‘right’;
app.Amplitude0to1EditFieldLabel.FontSize = 24;
app.Amplitude0to1EditFieldLabel.Position = [38 252 195 31];
app.Amplitude0to1EditFieldLabel.Text = ‘Amplitude (0 to 1)’;
% Create Amplitude0to1EditField
app.Amplitude0to1EditField = uieditfield(app.UIFigure, ‘numeric’);
app.Amplitude0to1EditField.ValueChangedFcn = createCallbackFcn(app, @Amplitude0to1EditFieldValueChanged, true);
app.Amplitude0to1EditField.FontSize = 24;
app.Amplitude0to1EditField.Position = [248 251 100 32];
app.Amplitude0to1EditField.Value = 0.5;
% Create FrequencySlider
app.FrequencySlider = uislider(app.UIFigure);
app.FrequencySlider.Limits = [10 40];
app.FrequencySlider.ValueChangingFcn = createCallbackFcn(app, @FrequencySliderValueChanging, true);
app.FrequencySlider.FontSize = 24;
app.FrequencySlider.Position = [26 418 473 3];
app.FrequencySlider.Value = 20;
% Create AmplitudeSlider
app.AmplitudeSlider = uislider(app.UIFigure);
app.AmplitudeSlider.Limits = [0 1];
app.AmplitudeSlider.MajorTicks = [0 0.125 0.25 0.375 0.5 0.625 0.75 0.875 1];
app.AmplitudeSlider.ValueChangingFcn = createCallbackFcn(app, @AmplitudeSliderValueChanging, true);
app.AmplitudeSlider.FontSize = 18;
app.AmplitudeSlider.Position = [20 207 479 3];
app.AmplitudeSlider.Value = 0.5;
% Show the figure after all components are created
app.UIFigure.Visible = ‘on’;
end
end
% App creation and deletion
methods (Access = public)
% Construct app
function app = PotVibrantUI
% Create UIFigure and components
createComponents(app)
% Register the app with App Designer
registerApp(app, app.UIFigure)
if nargout == 0
clear app
end
end
% Code that executes before app deletion
function delete(app)
% Delete UIFigure when app is deleted
delete(app.UIFigure)
end
end
end usb drive management MATLAB Answers — New Questions
I would like to save each Thex array created in each loop as its own array. How can i create a variable that has its name adjusted with each loop and saves each loop result?
Post Content Post Content for loops, arrays, results MATLAB Answers — New Questions
CAN YOU VISIT MY UNIT CONVERTER TOOL? and SUGGEST ME HOW CAN
CAN you visit my Converter TOOL? and suggest me that how can i create bulk pages thourgh Pseo??
I want to create bulk pages for all posiible unit conversion
CAN you visit my Converter TOOL? and suggest me that how can i create bulk pages thourgh Pseo??I want to create bulk pages for all posiible unit conversion Read More