Month: September 2024
How can I distribute my standalone application with a minimal MATLAB Runtime installation?
I’ve developed a MATLAB application and aim to compile it with MATLAB Compiler and then distribute it as compactly as possible. Is there a way to avoid installing the full MATLAB Runtime if my compiled application only requires a few specific toolboxes?I’ve developed a MATLAB application and aim to compile it with MATLAB Compiler and then distribute it as compactly as possible. Is there a way to avoid installing the full MATLAB Runtime if my compiled application only requires a few specific toolboxes? I’ve developed a MATLAB application and aim to compile it with MATLAB Compiler and then distribute it as compactly as possible. Is there a way to avoid installing the full MATLAB Runtime if my compiled application only requires a few specific toolboxes? requiredmcrproducts.txt, slim, matlab, runtime, reduced, partial, subset, monolithic, selective, installation, mcr, deploytool MATLAB Answers — New Questions
Can you have Two outllook emails on one account
With a single Microsoft account, can you setup more than one outlook.com email?
One for the primary stuff and a second to use for other stuff??
Haven’t read anywhere how to do this.
Help please.
With a single Microsoft account, can you setup more than one outlook.com email?One for the primary stuff and a second to use for other stuff??Haven’t read anywhere how to do this.Help please. Read More
How can I generate C code for my MATLAB code that has a separate H and C file for each MATLAB function?
I have written several MATLAB functions for my application that call each other. These MATLAB functions are in separate files.
I would like to preserve this file structure when I generate C code, I want to generate one header and a source file for each MATLAB function.
How can I do this?I have written several MATLAB functions for my application that call each other. These MATLAB functions are in separate files.
I would like to preserve this file structure when I generate C code, I want to generate one header and a source file for each MATLAB function.
How can I do this? I have written several MATLAB functions for my application that call each other. These MATLAB functions are in separate files.
I would like to preserve this file structure when I generate C code, I want to generate one header and a source file for each MATLAB function.
How can I do this? c, embeddedcoder, filestructure MATLAB Answers — New Questions
Implementation of the analytical expression for the magnetic field of a circular current loop and interpretation/representation of the results
I want to analytically approximate the magnetic field of a few coil arrangements. For this purpose i found a very helpful paper: 20140002333.pdf (nasa.gov). On page 8 of the PDF document are the analytic expressions for the field components of the magnetic field in spherical coordinates:
This is my implementation:
function [B_r,B_theta] = magneticField_circularCoil(I,N,a,r,theta)
%MAGNETICFIELDCOMPONENTS Calculates the magnetic field components B_r and
%B_theta (spherical coordinates)
% B_r: B component in r direction
% B_theta: B component in theta direction
% I: current through conductor
% N: number of coil windings
% a: radius of the coil
% r: distance from the origin (spherical coordinates)
% theta: angle to z-axis (spherical coordinates) IN DEGREES
%
% Source for used analytic formula:
% https://ntrs.nasa.gov/api/citations/20140002333/downloads/20140002333.pdf
mu0 = 4.*pi.*1e-7;
alpha2 = a.^2 + r.^2 – 2.*a.*r.*sind(theta);
beta2 = a.^2 + r.^2 + 2.*a.*r.*sind(theta);
k2 = 1 – alpha2./beta2;
C = mu0 * I./pi;
[K_k2,E_k2] = ellipke(k2);
B_r = N.*(C.*a.^2.*cosd(theta))./(alpha2.*sqrt(beta2)) .* E_k2;
B_theta = N.*C./(2.*alpha2.*sqrt(beta2).*sind(theta)) .* ((r.^2+a.^2.*cosd(2.*theta)).*E_k2 – alpha2.*K_k2);
B_phi = 0;
end
To test the function, I wrote the following code:
%% Analytical calculation of the magnetic field of the Helmholtz coil arrangement %%
% Approximation: The coil diameter is neglected. All windings "in one
% place"
% approximation: The magnetic table top is assumed to act as a perfect
% magnetic "mirror" is assumed.
%
format compact;
% Radius of the Coil in meters:
a = 0.2;
% Current through Coil in amperes:
I = 5.0;
% Number of Coil windings:
N = 154; % source: datasheet Helmholtz coils
r_test = sqrt(0.2.^2+0.2.^2);
[B_r1,B_theta1] = magneticField_circularCoil(I,N,a,r_test,45.0)
[B_r2,B_theta2] = magneticField_circularCoil(I,N,a,r_test,135.0)
This leads to the following expected results (the magnitude of the resulting field is the same but it’s in different directions):
>> Magnetfeld_Helmholtzspule_analytisch
B_r1 =
5.2273e-04
B_theta1 =
-4.2355e-06
B_r2 =
-5.2273e-04
B_theta2 =
-4.2355e-06
Is my implementation of the field components correct?
And how could I represent the superimposed field of two (or more) coils? I would appreciate any ideas!I want to analytically approximate the magnetic field of a few coil arrangements. For this purpose i found a very helpful paper: 20140002333.pdf (nasa.gov). On page 8 of the PDF document are the analytic expressions for the field components of the magnetic field in spherical coordinates:
This is my implementation:
function [B_r,B_theta] = magneticField_circularCoil(I,N,a,r,theta)
%MAGNETICFIELDCOMPONENTS Calculates the magnetic field components B_r and
%B_theta (spherical coordinates)
% B_r: B component in r direction
% B_theta: B component in theta direction
% I: current through conductor
% N: number of coil windings
% a: radius of the coil
% r: distance from the origin (spherical coordinates)
% theta: angle to z-axis (spherical coordinates) IN DEGREES
%
% Source for used analytic formula:
% https://ntrs.nasa.gov/api/citations/20140002333/downloads/20140002333.pdf
mu0 = 4.*pi.*1e-7;
alpha2 = a.^2 + r.^2 – 2.*a.*r.*sind(theta);
beta2 = a.^2 + r.^2 + 2.*a.*r.*sind(theta);
k2 = 1 – alpha2./beta2;
C = mu0 * I./pi;
[K_k2,E_k2] = ellipke(k2);
B_r = N.*(C.*a.^2.*cosd(theta))./(alpha2.*sqrt(beta2)) .* E_k2;
B_theta = N.*C./(2.*alpha2.*sqrt(beta2).*sind(theta)) .* ((r.^2+a.^2.*cosd(2.*theta)).*E_k2 – alpha2.*K_k2);
B_phi = 0;
end
To test the function, I wrote the following code:
%% Analytical calculation of the magnetic field of the Helmholtz coil arrangement %%
% Approximation: The coil diameter is neglected. All windings "in one
% place"
% approximation: The magnetic table top is assumed to act as a perfect
% magnetic "mirror" is assumed.
%
format compact;
% Radius of the Coil in meters:
a = 0.2;
% Current through Coil in amperes:
I = 5.0;
% Number of Coil windings:
N = 154; % source: datasheet Helmholtz coils
r_test = sqrt(0.2.^2+0.2.^2);
[B_r1,B_theta1] = magneticField_circularCoil(I,N,a,r_test,45.0)
[B_r2,B_theta2] = magneticField_circularCoil(I,N,a,r_test,135.0)
This leads to the following expected results (the magnitude of the resulting field is the same but it’s in different directions):
>> Magnetfeld_Helmholtzspule_analytisch
B_r1 =
5.2273e-04
B_theta1 =
-4.2355e-06
B_r2 =
-5.2273e-04
B_theta2 =
-4.2355e-06
Is my implementation of the field components correct?
And how could I represent the superimposed field of two (or more) coils? I would appreciate any ideas! I want to analytically approximate the magnetic field of a few coil arrangements. For this purpose i found a very helpful paper: 20140002333.pdf (nasa.gov). On page 8 of the PDF document are the analytic expressions for the field components of the magnetic field in spherical coordinates:
This is my implementation:
function [B_r,B_theta] = magneticField_circularCoil(I,N,a,r,theta)
%MAGNETICFIELDCOMPONENTS Calculates the magnetic field components B_r and
%B_theta (spherical coordinates)
% B_r: B component in r direction
% B_theta: B component in theta direction
% I: current through conductor
% N: number of coil windings
% a: radius of the coil
% r: distance from the origin (spherical coordinates)
% theta: angle to z-axis (spherical coordinates) IN DEGREES
%
% Source for used analytic formula:
% https://ntrs.nasa.gov/api/citations/20140002333/downloads/20140002333.pdf
mu0 = 4.*pi.*1e-7;
alpha2 = a.^2 + r.^2 – 2.*a.*r.*sind(theta);
beta2 = a.^2 + r.^2 + 2.*a.*r.*sind(theta);
k2 = 1 – alpha2./beta2;
C = mu0 * I./pi;
[K_k2,E_k2] = ellipke(k2);
B_r = N.*(C.*a.^2.*cosd(theta))./(alpha2.*sqrt(beta2)) .* E_k2;
B_theta = N.*C./(2.*alpha2.*sqrt(beta2).*sind(theta)) .* ((r.^2+a.^2.*cosd(2.*theta)).*E_k2 – alpha2.*K_k2);
B_phi = 0;
end
To test the function, I wrote the following code:
%% Analytical calculation of the magnetic field of the Helmholtz coil arrangement %%
% Approximation: The coil diameter is neglected. All windings "in one
% place"
% approximation: The magnetic table top is assumed to act as a perfect
% magnetic "mirror" is assumed.
%
format compact;
% Radius of the Coil in meters:
a = 0.2;
% Current through Coil in amperes:
I = 5.0;
% Number of Coil windings:
N = 154; % source: datasheet Helmholtz coils
r_test = sqrt(0.2.^2+0.2.^2);
[B_r1,B_theta1] = magneticField_circularCoil(I,N,a,r_test,45.0)
[B_r2,B_theta2] = magneticField_circularCoil(I,N,a,r_test,135.0)
This leads to the following expected results (the magnitude of the resulting field is the same but it’s in different directions):
>> Magnetfeld_Helmholtzspule_analytisch
B_r1 =
5.2273e-04
B_theta1 =
-4.2355e-06
B_r2 =
-5.2273e-04
B_theta2 =
-4.2355e-06
Is my implementation of the field components correct?
And how could I represent the superimposed field of two (or more) coils? I would appreciate any ideas! electromagnetism, magnetic field, coil MATLAB Answers — New Questions
How to convert gyroscopic data and parameters for “factorIMU” usage?
I am using Factor Graph based workflow, as described in the following documentation:
https://www.mathworks.com/help/nav/ug/factor-graph-based-pedestrian-localization-imu-gps.html
How can I prepare my raw data from the IMU sensor for this workflow? Secondly, how do I determine and populate the various input variables to "factorIMU" object, such as "AccelerometerNoise", "GyroscopeNoise", "AccelerometerBiasNoise", "GyroscopeBiasNoise"?I am using Factor Graph based workflow, as described in the following documentation:
https://www.mathworks.com/help/nav/ug/factor-graph-based-pedestrian-localization-imu-gps.html
How can I prepare my raw data from the IMU sensor for this workflow? Secondly, how do I determine and populate the various input variables to "factorIMU" object, such as "AccelerometerNoise", "GyroscopeNoise", "AccelerometerBiasNoise", "GyroscopeBiasNoise"? I am using Factor Graph based workflow, as described in the following documentation:
https://www.mathworks.com/help/nav/ug/factor-graph-based-pedestrian-localization-imu-gps.html
How can I prepare my raw data from the IMU sensor for this workflow? Secondly, how do I determine and populate the various input variables to "factorIMU" object, such as "AccelerometerNoise", "GyroscopeNoise", "AccelerometerBiasNoise", "GyroscopeBiasNoise"? factorimu, imu, factorgraph, sensordatainterpretation MATLAB Answers — New Questions
Folder Labels in Inbox
The old outlook would keep the folder label on email chain if someone replied to it and the new email was in your inbox. The new outlook only shows you the folder label when you search for an email. Is there away to get Outlook to show the folder label for emails that have been replied to? For example, someone emails be to pay an invoice. I pay the invoice, reply back that it is paid, and then move the email to my “Paid” folder. That person then replies to the email saying thank you. The new email is in my inbox but there is no folder label on it any more to show that the email chain had been filed already in the “Paid” folder. I have to look through the email chain, see that it has been paid, and then move it again to the “Paid” folder.
When I search for an email, the folder label is there. I want the label to stay with an email chain even when there is a new email added and it is pulled into my inbox so I don’t have to figure out again which folder that email chain should be filed in.
The old outlook would keep the folder label on email chain if someone replied to it and the new email was in your inbox. The new outlook only shows you the folder label when you search for an email. Is there away to get Outlook to show the folder label for emails that have been replied to? For example, someone emails be to pay an invoice. I pay the invoice, reply back that it is paid, and then move the email to my “Paid” folder. That person then replies to the email saying thank you. The new email is in my inbox but there is no folder label on it any more to show that the email chain had been filed already in the “Paid” folder. I have to look through the email chain, see that it has been paid, and then move it again to the “Paid” folder. When I search for an email, the folder label is there. I want the label to stay with an email chain even when there is a new email added and it is pulled into my inbox so I don’t have to figure out again which folder that email chain should be filed in. Read More
Cannot open database requested by the login – “Error Number:4060,State:1,Class:11”
I have an ASP.NET app, and when I launch the app and try to list items from a table by accessing the corresponding route, I get this error:
SqlException: Cannot open database “appointments” requested by the login. The login failed. Login failed for user ‘DESKTOP-KRBN07Gjuan_’.
The database exists, and so do all the tables. I can connect to the database from SSMS and the ‘Server Explorer’ view in Visual Studio. I am using the connection string provided by the Server Explorer in Visual Studio. I also did a clean installation of Windows, Visual Studio, SQL Server, and SSMS. Currently, I have only one DB server and one database.
The error:
My VS and connection string:
Please help me; this error is driving me mad. If you need any extra info, please let me know.
I have an ASP.NET app, and when I launch the app and try to list items from a table by accessing the corresponding route, I get this error: SqlException: Cannot open database “appointments” requested by the login. The login failed. Login failed for user ‘DESKTOP-KRBN07Gjuan_’. The database exists, and so do all the tables. I can connect to the database from SSMS and the ‘Server Explorer’ view in Visual Studio. I am using the connection string provided by the Server Explorer in Visual Studio. I also did a clean installation of Windows, Visual Studio, SQL Server, and SSMS. Currently, I have only one DB server and one database.The error: My VS and connection string: Please help me; this error is driving me mad. If you need any extra info, please let me know. Read More
Teams Phone – Voicemail Issue
So, I’ve been trying to troubleshoot an issue for a new Teams Phone deployment – where Teams phone ties into an on-prem exchange server via an MS365 Connector (which delivers the voicemails to their Email Security gateway, and then to the on-prem Exchange Server).
The issue was that transcripts for calls (and voicemails in general) weren’t showing up in the Voicemail tab for call history and voicemail notifications weren’t being received on their Yealink phones.
After diving into it I found that the content type of the Voicemail messages, at least on the Security Gateway side, was CA-Voice, and there had been some chatter online of the required Content-Type being something else.
I then tested with my work Teams account – since I noticed that I wasn’t actually seeing voicemail transcripts since August 1st, and it looks like the same issue is occuring. Office and Teams are up to date and the issue occurs on both Desktop and web-based Office.
I’m thinking that this is just a case of Microsoft breaking something in an update but if anyone has any further insight, I’d appreciate that.
– JB
So, I’ve been trying to troubleshoot an issue for a new Teams Phone deployment – where Teams phone ties into an on-prem exchange server via an MS365 Connector (which delivers the voicemails to their Email Security gateway, and then to the on-prem Exchange Server). The issue was that transcripts for calls (and voicemails in general) weren’t showing up in the Voicemail tab for call history and voicemail notifications weren’t being received on their Yealink phones. After diving into it I found that the content type of the Voicemail messages, at least on the Security Gateway side, was CA-Voice, and there had been some chatter online of the required Content-Type being something else. I then tested with my work Teams account – since I noticed that I wasn’t actually seeing voicemail transcripts since August 1st, and it looks like the same issue is occuring. Office and Teams are up to date and the issue occurs on both Desktop and web-based Office. I’m thinking that this is just a case of Microsoft breaking something in an update but if anyone has any further insight, I’d appreciate that. – JB Read More
HOW TO: Get help and contact support in Partner Center
Please review the below link on how to contact support available and choose the topic that most closely resembles the issue you are experiencing.
Get help and contact support in Partner Center – Partner Center | Microsoft Learn
Please review the below link on how to contact support available and choose the topic that most closely resembles the issue you are experiencing.
Get help and contact support in Partner Center – Partner Center | Microsoft Learn Read More
How to fix this Error? __ No constructor ‘handle.listener’ with matching signature found.
I have been getting the following error:
No constructor ‘handle.listener’ with matching
signature found.
Error in ut_subplot>ut_createListeners (line
427)
handle.listener(axlisth,findprop(axlisth(1),’OuterPosition’),
…
Error in ut_subplot>ut_addAxesToGrid (line 464)
ut_createListeners(p,handle(list));
Error in ut_subplot (line 398)
ut_addAxesToGrid(ax,nrows,ncols,row,col,inset);
Error in meo_plot (line 43)
ut_subplot(1,2,1);
Error in meofis_optimize (line 198)
meo_plot(new_pop, meo);
Error in meofis_batch (line 103)
meofis_optimize();
I am using MATLAB 2019a. The code isn’t mine and is supposed to be from 2007. The code stops in the middle of drawing a graph in a gui.
The whole line where is stops — including line 427 — is:
list = […
handle.listener(axlisth,findprop(axlisth(1),’OuterPosition’), …
‘PropertyPostSet’,@ut_axesMoved); % <<—- PROBLEM LINE
handle.listener(axlisth,findprop(axlisth(1),’ActivePositionProperty’), …
‘PropertyPreSet’,@ut_axesMoved);
handle.listener(axlisth,findprop(axlisth(1),’Parent’), …
‘PropertyPreSet’,@ut_axesMoved);
handle.listener(axlisth,’AxisInvalidEvent’,{@subplotlayoutInvalid,p});
handle.listener(handle(fig),’FigureUpdateEvent’,{@subplotlayout,p})];
I did try the brute force solution of just commenting out the problem line, but the same type of error just showed up with the line right after it. Any help would be most welcome.
I have found this Ask/Answer here, but either I ddin’t understant it or it isn’t quite the same problem; I tried changing the names of the functions I was using in case they were the same as some that MATLAB uses, but I still got the same error.
https://www.mathworks.com/matlabcentral/answers/165049-subplot-error-no-constructor-handle-listener-with-matching-signature-found-matlab-2014b?s_tid=srchtitle
Sadly, this question for a very similar error didn’t get a reply:
https://www.mathworks.com/matlabcentral/answers/1723870-no-constructor-handle-listener-with-matching-signature-found?s_tid=srchtitleI have been getting the following error:
No constructor ‘handle.listener’ with matching
signature found.
Error in ut_subplot>ut_createListeners (line
427)
handle.listener(axlisth,findprop(axlisth(1),’OuterPosition’),
…
Error in ut_subplot>ut_addAxesToGrid (line 464)
ut_createListeners(p,handle(list));
Error in ut_subplot (line 398)
ut_addAxesToGrid(ax,nrows,ncols,row,col,inset);
Error in meo_plot (line 43)
ut_subplot(1,2,1);
Error in meofis_optimize (line 198)
meo_plot(new_pop, meo);
Error in meofis_batch (line 103)
meofis_optimize();
I am using MATLAB 2019a. The code isn’t mine and is supposed to be from 2007. The code stops in the middle of drawing a graph in a gui.
The whole line where is stops — including line 427 — is:
list = […
handle.listener(axlisth,findprop(axlisth(1),’OuterPosition’), …
‘PropertyPostSet’,@ut_axesMoved); % <<—- PROBLEM LINE
handle.listener(axlisth,findprop(axlisth(1),’ActivePositionProperty’), …
‘PropertyPreSet’,@ut_axesMoved);
handle.listener(axlisth,findprop(axlisth(1),’Parent’), …
‘PropertyPreSet’,@ut_axesMoved);
handle.listener(axlisth,’AxisInvalidEvent’,{@subplotlayoutInvalid,p});
handle.listener(handle(fig),’FigureUpdateEvent’,{@subplotlayout,p})];
I did try the brute force solution of just commenting out the problem line, but the same type of error just showed up with the line right after it. Any help would be most welcome.
I have found this Ask/Answer here, but either I ddin’t understant it or it isn’t quite the same problem; I tried changing the names of the functions I was using in case they were the same as some that MATLAB uses, but I still got the same error.
https://www.mathworks.com/matlabcentral/answers/165049-subplot-error-no-constructor-handle-listener-with-matching-signature-found-matlab-2014b?s_tid=srchtitle
Sadly, this question for a very similar error didn’t get a reply:
https://www.mathworks.com/matlabcentral/answers/1723870-no-constructor-handle-listener-with-matching-signature-found?s_tid=srchtitle I have been getting the following error:
No constructor ‘handle.listener’ with matching
signature found.
Error in ut_subplot>ut_createListeners (line
427)
handle.listener(axlisth,findprop(axlisth(1),’OuterPosition’),
…
Error in ut_subplot>ut_addAxesToGrid (line 464)
ut_createListeners(p,handle(list));
Error in ut_subplot (line 398)
ut_addAxesToGrid(ax,nrows,ncols,row,col,inset);
Error in meo_plot (line 43)
ut_subplot(1,2,1);
Error in meofis_optimize (line 198)
meo_plot(new_pop, meo);
Error in meofis_batch (line 103)
meofis_optimize();
I am using MATLAB 2019a. The code isn’t mine and is supposed to be from 2007. The code stops in the middle of drawing a graph in a gui.
The whole line where is stops — including line 427 — is:
list = […
handle.listener(axlisth,findprop(axlisth(1),’OuterPosition’), …
‘PropertyPostSet’,@ut_axesMoved); % <<—- PROBLEM LINE
handle.listener(axlisth,findprop(axlisth(1),’ActivePositionProperty’), …
‘PropertyPreSet’,@ut_axesMoved);
handle.listener(axlisth,findprop(axlisth(1),’Parent’), …
‘PropertyPreSet’,@ut_axesMoved);
handle.listener(axlisth,’AxisInvalidEvent’,{@subplotlayoutInvalid,p});
handle.listener(handle(fig),’FigureUpdateEvent’,{@subplotlayout,p})];
I did try the brute force solution of just commenting out the problem line, but the same type of error just showed up with the line right after it. Any help would be most welcome.
I have found this Ask/Answer here, but either I ddin’t understant it or it isn’t quite the same problem; I tried changing the names of the functions I was using in case they were the same as some that MATLAB uses, but I still got the same error.
https://www.mathworks.com/matlabcentral/answers/165049-subplot-error-no-constructor-handle-listener-with-matching-signature-found-matlab-2014b?s_tid=srchtitle
Sadly, this question for a very similar error didn’t get a reply:
https://www.mathworks.com/matlabcentral/answers/1723870-no-constructor-handle-listener-with-matching-signature-found?s_tid=srchtitle constructor, handle.listener, signature, matching signature MATLAB Answers — New Questions
convert gifti to nifti files
Dear all,
I’m using CAT12 to mesure cortical thickness : as results i have gifti files (.gii) but i don’t know how to convert them in to nifti files: is anyone has a Matlab script for this?
Thank you so much,Dear all,
I’m using CAT12 to mesure cortical thickness : as results i have gifti files (.gii) but i don’t know how to convert them in to nifti files: is anyone has a Matlab script for this?
Thank you so much, Dear all,
I’m using CAT12 to mesure cortical thickness : as results i have gifti files (.gii) but i don’t know how to convert them in to nifti files: is anyone has a Matlab script for this?
Thank you so much, gifti nifti MATLAB Answers — New Questions
How do I print a % character into a file
I am creating an app in App Designer, creating an output file that will be an .m file for another user to run later.
I’d like to put a comment header at the start of this file but I can’t double excape the % character
app.SessionFile = fopen(app.SessionFileName,’at’);
str = sprintf("%% Parameters: %c%u…",v1,v2…); % Put required string into str – works
str is now "% Paramters: …." but it won’t go out to the file with
fprintf(app.SessionFile,str); % Nothing gets printed, comment gets stripped out!
(0 chars printed)
Also not working
str = sprintf("%%% Parameters:
str = sprintf(" %% Parameters:
Seems like if I have a string I want to put in a text file MatLab shouldn’t mess with it.
Also: is ‘at’ the same as ‘wt’ ? seems like it always appends anyway with fprint.I am creating an app in App Designer, creating an output file that will be an .m file for another user to run later.
I’d like to put a comment header at the start of this file but I can’t double excape the % character
app.SessionFile = fopen(app.SessionFileName,’at’);
str = sprintf("%% Parameters: %c%u…",v1,v2…); % Put required string into str – works
str is now "% Paramters: …." but it won’t go out to the file with
fprintf(app.SessionFile,str); % Nothing gets printed, comment gets stripped out!
(0 chars printed)
Also not working
str = sprintf("%%% Parameters:
str = sprintf(" %% Parameters:
Seems like if I have a string I want to put in a text file MatLab shouldn’t mess with it.
Also: is ‘at’ the same as ‘wt’ ? seems like it always appends anyway with fprint. I am creating an app in App Designer, creating an output file that will be an .m file for another user to run later.
I’d like to put a comment header at the start of this file but I can’t double excape the % character
app.SessionFile = fopen(app.SessionFileName,’at’);
str = sprintf("%% Parameters: %c%u…",v1,v2…); % Put required string into str – works
str is now "% Paramters: …." but it won’t go out to the file with
fprintf(app.SessionFile,str); % Nothing gets printed, comment gets stripped out!
(0 chars printed)
Also not working
str = sprintf("%%% Parameters:
str = sprintf(" %% Parameters:
Seems like if I have a string I want to put in a text file MatLab shouldn’t mess with it.
Also: is ‘at’ the same as ‘wt’ ? seems like it always appends anyway with fprint. printing % to a file %% not working MATLAB Answers — New Questions
How to fix error in matlab code for the assignment of path?
I am using following lines of matlab code;
baseSNAP = "C:Program Filesesa-snapbingpt.exe";
cmd = [baseSNAP, aoFlag, out, oType, granule];
system(cmd);
it is giving the following error
Unrecognized function or variable ‘baseSNAP’.
I request to please suggest me how to fix this error.
Kuldeep TomarI am using following lines of matlab code;
baseSNAP = "C:Program Filesesa-snapbingpt.exe";
cmd = [baseSNAP, aoFlag, out, oType, granule];
system(cmd);
it is giving the following error
Unrecognized function or variable ‘baseSNAP’.
I request to please suggest me how to fix this error.
Kuldeep Tomar I am using following lines of matlab code;
baseSNAP = "C:Program Filesesa-snapbingpt.exe";
cmd = [baseSNAP, aoFlag, out, oType, granule];
system(cmd);
it is giving the following error
Unrecognized function or variable ‘baseSNAP’.
I request to please suggest me how to fix this error.
Kuldeep Tomar how to fix error for the assignment of path? MATLAB Answers — New Questions
Export .mpp to .xml, modify and re-import
I have a web app that imports a ms project .xml. Users of the web app can then change the following properties: Notes, Physical Percent Complete and Finish Date. The project .xml can then be exported with only the mentioned altered. When the updated xml is imported back into ms Project the 3 properties: Percentage Complete, Notes and Finish Date update fine, however the duration remains the same and thus the start date alters to accommodate. How can I lock the start date during the import and force the duration to dynamically change? Because I am altering only the Finish Date and nothing else time related, I was surprised that the import didn’t error in the first place (since there would be conflicts in my xml). I need to learn how importing an xml works, what are the limits.. how to change certain properties whilst maintaining others and letting ms Project do it magic where necessary.
I have a web app that imports a ms project .xml. Users of the web app can then change the following properties: Notes, Physical Percent Complete and Finish Date. The project .xml can then be exported with only the mentioned altered. When the updated xml is imported back into ms Project the 3 properties: Percentage Complete, Notes and Finish Date update fine, however the duration remains the same and thus the start date alters to accommodate. How can I lock the start date during the import and force the duration to dynamically change? Because I am altering only the Finish Date and nothing else time related, I was surprised that the import didn’t error in the first place (since there would be conflicts in my xml). I need to learn how importing an xml works, what are the limits.. how to change certain properties whilst maintaining others and letting ms Project do it magic where necessary. Read More
Modern Authentication Method
How can I tell if I am now set up with the new Outlook app so that I will not have issues with hotmail or gmail going forward?
Thanks
How can I tell if I am now set up with the new Outlook app so that I will not have issues with hotmail or gmail going forward? Thanks Read More
Problem running the Windows Feature Update Device Readiness Intune Report
I have a custom Intune role for our support staff. I want them to be able to run the Feature Update Device Readiness report. When they click on the Select target OS link, it shows “No data to display”, instead of the OS list. They are able to click on Select scope tag and see a list of scope tags.
Is there a permission they need that I’m missing? Here is what I have assigned for the custom role.
Audit dataReadCorporate device identifiers
Create
Delete
Read
Update
Device compliance policies
Read
View Reports
Device Configurations
Read
View Reports
Endpoint AnalyticsReadEndpoint protection reportsReadEnrollment programs
Create device
Delete device
Read device
Sync device
Assign Profile
Read Profile
Managed appsReadManaged devices
Delete
Read
Set Primary user
Update
View reports
Organizations
Read
Remote tasks
Clean PC
Collect diagnostics
Enable Windows IntuneAgent
Get Filevault key
Manage shared device users
Reboot now
Reset passcode
Retire
Set device name
Sync devices
Wipe
RolesRead
I have a custom Intune role for our support staff. I want them to be able to run the Feature Update Device Readiness report. When they click on the Select target OS link, it shows “No data to display”, instead of the OS list. They are able to click on Select scope tag and see a list of scope tags. Is there a permission they need that I’m missing? Here is what I have assigned for the custom role.Audit dataReadCorporate device identifiersCreateDeleteReadUpdateDevice compliance policiesReadView ReportsDevice ConfigurationsReadView ReportsEndpoint AnalyticsReadEndpoint protection reportsReadEnrollment programsCreate deviceDelete deviceRead deviceSync deviceAssign ProfileRead ProfileManaged appsReadManaged devicesDeleteReadSet Primary userUpdateView reportsOrganizationsReadRemote tasksClean PCCollect diagnosticsEnable Windows IntuneAgentGet Filevault keyManage shared device usersReboot nowReset passcodeRetireSet device nameSync devicesWipeRolesRead Read More
Please help- deleting rows containing a specific value from a large set of data
Hi, I’m doing a project for a class at my university and need to clean up some data. For this data, any missing data is put in as “-9999”. I need to delete all rows that contain -9999, but can’t figure out how to do it. It’s an insane amount of data, there’s over 100,000 rows and the columns go up to HE, so it’s not reasonable to do manually. Is there a function that can help me do this?
Hi, I’m doing a project for a class at my university and need to clean up some data. For this data, any missing data is put in as “-9999”. I need to delete all rows that contain -9999, but can’t figure out how to do it. It’s an insane amount of data, there’s over 100,000 rows and the columns go up to HE, so it’s not reasonable to do manually. Is there a function that can help me do this? Read More
Copilot for Microsoft 365: The Ultimate Skilling Guide
Designed for business leaders, IT pros, and end users – this eBook covers insights on how to become an AI-powered organization by fully leveraging the capabilities of Copilot for Microsoft 365. Learn the art and science of prompting – along with a library of 300+ prompts.
Featured in this Ultimate Skilling Guide:
Introduction: Your AI Assistant for WorkEmbracing the Era of AI: The Generative AI RevolutionThe Business Imperative: Becoming an AI-powered OrganizationUnlocking AI Value with Copilot: Empowering every department & job roleA High-Level Overview: How does Copilot for Microsoft 365 workUtilizing the power of AI: The Art & Science of PromptingPrompting Best Practices & TipsThe secret to Copilot adoption: Building new work habitsRealize the value of CopilotCopilot Prompts Library:
– Copilot for Microsoft 365
– Copilot in Teams
– Copilot in Outlook
– Copilot in Word
– Copilot in Excel
– Copilot in PowerPoint
– Copilot in OneNote
– Copilot in SharePoint
– Copilot in OneDrive
– Copilot in Loop
– Copilot in Stream
– Copilot in Forms
– Copilot in Planner
– Copilot in Viva Engage
– Copilot in WhiteboardCopilot for Microsoft 365 Training Catalog
Designed for business leaders, IT pros, and end users – this eBook covers insights on how to become an AI-powered organization by fully leveraging the capabilities of Copilot for Microsoft 365. Learn the art and science of prompting – along with a library of 300+ prompts.Featured in this Ultimate Skilling Guide: Introduction: Your AI Assistant for WorkEmbracing the Era of AI: The Generative AI RevolutionThe Business Imperative: Becoming an AI-powered OrganizationUnlocking AI Value with Copilot: Empowering every department & job roleA High-Level Overview: How does Copilot for Microsoft 365 workUtilizing the power of AI: The Art & Science of PromptingPrompting Best Practices & TipsThe secret to Copilot adoption: Building new work habitsRealize the value of CopilotCopilot Prompts Library:- Copilot for Microsoft 365- Copilot in Teams- Copilot in Outlook- Copilot in Word- Copilot in Excel- Copilot in PowerPoint- Copilot in OneNote- Copilot in SharePoint- Copilot in OneDrive- Copilot in Loop- Copilot in Stream- Copilot in Forms- Copilot in Planner- Copilot in Viva Engage- Copilot in WhiteboardCopilot for Microsoft 365 Training Catalog Read More
Sharepoint online DLP alerts
Hello All
I have created the DLP policy with a very simple condition and action.
If content content U.S. Social security number 1- ANY
AND
content is shared from M365 – with people outside organization.
Action
Block only people outside organization.
User notifications with Policy tips
Allowed the user overrides
===============
Whenever I am sharing the content outside the organization I am able to see the policy with override option. After overriding the policy , it is allowing to share content. However it is not generating alert in the dashboard. I am able to see the DLP undo rule but not the alert.
Please advise if it is by design or am I missing something important.
Hello All I have created the DLP policy with a very simple condition and action. If content content U.S. Social security number 1- ANYANDcontent is shared from M365 – with people outside organization. Action Block only people outside organization. User notifications with Policy tips Allowed the user overrides =============== Whenever I am sharing the content outside the organization I am able to see the policy with override option. After overriding the policy , it is allowing to share content. However it is not generating alert in the dashboard. I am able to see the DLP undo rule but not the alert. Please advise if it is by design or am I missing something important. Read More
How to Become a Professional Video Editor?
If you’ve ever watched a video and thought, “I want to make something like that,” you’re already halfway there! Becoming a professional video editor isn’t just about learning software; it’s about turning your creativity and passion into something real. First, dive into the basics. Learn tools like Adobe Premiere Pro or Final Cut Pro. At first, it might feel overwhelming, but trust me, with practice, it clicks. Next, edit everything you can! The more you practice, the better you’ll get. Start with small projects, build a portfolio, and watch your skills grow. Finally, don’t forget to put yourself out there. Network, share your work, and say yes to opportunities. It can be nerve-wracking at first, but every project will build your confidence and get you closer to your dream career!
If you’ve ever watched a video and thought, “I want to make something like that,” you’re already halfway there! Becoming a professional video editor isn’t just about learning software; it’s about turning your creativity and passion into something real. First, dive into the basics. Learn tools like Adobe Premiere Pro or Final Cut Pro. At first, it might feel overwhelming, but trust me, with practice, it clicks. Next, edit everything you can! The more you practice, the better you’ll get. Start with small projects, build a portfolio, and watch your skills grow. Finally, don’t forget to put yourself out there. Network, share your work, and say yes to opportunities. It can be nerve-wracking at first, but every project will build your confidence and get you closer to your dream career! Read More