Category: News
Synchronous Machine pu fundamental rotor alignment in Park transfromation
Hi
I am using the power systems blocks, specifically the synchronous machine pu fundamental. My question is which axis is aligned with the a axis: d or q. When I plot the d and q currents from the measurement port, d=0, and according to the matlab documentation that means the d-axis is aligned with the a-axis.
To confirm this hypothesis, I connected the block "abc to dq0" to the voltage source to transform directly the currents with the position of the motor. The configuration is "aligned with phase A axis". Unfortunately, now the q=0 and d>1. Then, I changed the configuration to "90 degrees behind phase A axis" and the behaviour is the same, d=0, but the plots are mirrored.
Summary:
The synchronous machine pu fundamental aligns the d-axis with the a-axis during the Park transformation?
Why the currents are mirrored (multiplied by -1)?Hi
I am using the power systems blocks, specifically the synchronous machine pu fundamental. My question is which axis is aligned with the a axis: d or q. When I plot the d and q currents from the measurement port, d=0, and according to the matlab documentation that means the d-axis is aligned with the a-axis.
To confirm this hypothesis, I connected the block "abc to dq0" to the voltage source to transform directly the currents with the position of the motor. The configuration is "aligned with phase A axis". Unfortunately, now the q=0 and d>1. Then, I changed the configuration to "90 degrees behind phase A axis" and the behaviour is the same, d=0, but the plots are mirrored.
Summary:
The synchronous machine pu fundamental aligns the d-axis with the a-axis during the Park transformation?
Why the currents are mirrored (multiplied by -1)? Hi
I am using the power systems blocks, specifically the synchronous machine pu fundamental. My question is which axis is aligned with the a axis: d or q. When I plot the d and q currents from the measurement port, d=0, and according to the matlab documentation that means the d-axis is aligned with the a-axis.
To confirm this hypothesis, I connected the block "abc to dq0" to the voltage source to transform directly the currents with the position of the motor. The configuration is "aligned with phase A axis". Unfortunately, now the q=0 and d>1. Then, I changed the configuration to "90 degrees behind phase A axis" and the behaviour is the same, d=0, but the plots are mirrored.
Summary:
The synchronous machine pu fundamental aligns the d-axis with the a-axis during the Park transformation?
Why the currents are mirrored (multiplied by -1)? power_conversion_control, electric_motor_control, power_electronics_control MATLAB Answers — New Questions
Function matchpairs does not work in MATLAB R2023a when I use a sparse cost matrix. Please help me out ASAP!
You can run this simple code and see my problem. Am I doing something wrong?
% testing matchpairs —————————————————————-
clear;clc
% — using matrix in usual form (not sparse) — WORKS
M = 99*ones(16,16);
M(1,1) = 2;
M(2,1) = 1;
M(1,2) = 1;
M(3,2) = 2;
M(2,3) = 2;
M(4,3) = 1;
M(6,3) = 4;
M(3,4) = 1;
M(4,4) = 2;
M(7,4) = 4;
M(6,5) = 2;
M(8,5) = 1;
M(3,6) = 4;
M(5,6) = 2;
M(7,6) = 1;
M(4,7) = 4;
M(6,7) = 1;
M(10,7) = 2;
M(5,8) = 1;
M(9,8) = 2;
M(8,9) = 2;
M(12,9) = 1;
M(7,10) = 2;
M(11,10) = 1;
M(13,10) = 4;
M(10,11) = 1;
M(12,11) = 2;
M(14,11) = 4;
M(9,12) = 1;
M(11,12) = 2;
M(10,13) = 4;
M(13,13) = 2;
M(14,13) = 1;
M(11,14) = 4;
M(13,14) = 1;
M(15,14) = 2;
M(14,15) = 2;
M(16,15) = 1;
M(15,16) = 1;
M(16,16) = 2;
[matchings, unassignedRows, unassignedCols] = matchpairs(M,12345)
OUTPUT IS CORRECT:
% — using sparse matrix — DOES NOT WORK
Ms = sparse(16,16);
Ms(1,1) = 2;
Ms(2,1) = 1;
Ms(1,2) = 1;
Ms(3,2) = 2;
Ms(2,3) = 2;
Ms(4,3) = 1;
Ms(6,3) = 4;
Ms(3,4) = 1;
Ms(4,4) = 2;
Ms(7,4) = 4;
Ms(6,5) = 2;
Ms(8,5) = 1;
Ms(3,6) = 4;
Ms(5,6) = 2;
Ms(7,6) = 1;
Ms(4,7) = 4;
Ms(6,7) = 1;
Ms(10,7) = 2;
Ms(5,8) = 1;
Ms(9,8) = 2;
Ms(8,9) = 2;
Ms(12,9) = 1;
Ms(7,10) = 2;
Ms(11,10) = 1;
Ms(13,10) = 4;
Ms(10,11) = 1;
Ms(12,11) = 2;
Ms(14,11) = 4;
Ms(9,12) = 1;
Ms(11,12) = 2;
Ms(10,13) = 4;
Ms(13,13) = 2;
Ms(14,13) = 1;
Ms(11,14) = 4;
Ms(13,14) = 1;
Ms(15,14) = 2;
Ms(14,15) = 2;
Ms(16,15) = 1;
Ms(15,16) = 1;
Ms(16,16) = 2;
[matchings, unassignedRows, unassignedCols] = matchpairs(Ms,-1)You can run this simple code and see my problem. Am I doing something wrong?
% testing matchpairs —————————————————————-
clear;clc
% — using matrix in usual form (not sparse) — WORKS
M = 99*ones(16,16);
M(1,1) = 2;
M(2,1) = 1;
M(1,2) = 1;
M(3,2) = 2;
M(2,3) = 2;
M(4,3) = 1;
M(6,3) = 4;
M(3,4) = 1;
M(4,4) = 2;
M(7,4) = 4;
M(6,5) = 2;
M(8,5) = 1;
M(3,6) = 4;
M(5,6) = 2;
M(7,6) = 1;
M(4,7) = 4;
M(6,7) = 1;
M(10,7) = 2;
M(5,8) = 1;
M(9,8) = 2;
M(8,9) = 2;
M(12,9) = 1;
M(7,10) = 2;
M(11,10) = 1;
M(13,10) = 4;
M(10,11) = 1;
M(12,11) = 2;
M(14,11) = 4;
M(9,12) = 1;
M(11,12) = 2;
M(10,13) = 4;
M(13,13) = 2;
M(14,13) = 1;
M(11,14) = 4;
M(13,14) = 1;
M(15,14) = 2;
M(14,15) = 2;
M(16,15) = 1;
M(15,16) = 1;
M(16,16) = 2;
[matchings, unassignedRows, unassignedCols] = matchpairs(M,12345)
OUTPUT IS CORRECT:
% — using sparse matrix — DOES NOT WORK
Ms = sparse(16,16);
Ms(1,1) = 2;
Ms(2,1) = 1;
Ms(1,2) = 1;
Ms(3,2) = 2;
Ms(2,3) = 2;
Ms(4,3) = 1;
Ms(6,3) = 4;
Ms(3,4) = 1;
Ms(4,4) = 2;
Ms(7,4) = 4;
Ms(6,5) = 2;
Ms(8,5) = 1;
Ms(3,6) = 4;
Ms(5,6) = 2;
Ms(7,6) = 1;
Ms(4,7) = 4;
Ms(6,7) = 1;
Ms(10,7) = 2;
Ms(5,8) = 1;
Ms(9,8) = 2;
Ms(8,9) = 2;
Ms(12,9) = 1;
Ms(7,10) = 2;
Ms(11,10) = 1;
Ms(13,10) = 4;
Ms(10,11) = 1;
Ms(12,11) = 2;
Ms(14,11) = 4;
Ms(9,12) = 1;
Ms(11,12) = 2;
Ms(10,13) = 4;
Ms(13,13) = 2;
Ms(14,13) = 1;
Ms(11,14) = 4;
Ms(13,14) = 1;
Ms(15,14) = 2;
Ms(14,15) = 2;
Ms(16,15) = 1;
Ms(15,16) = 1;
Ms(16,16) = 2;
[matchings, unassignedRows, unassignedCols] = matchpairs(Ms,-1) You can run this simple code and see my problem. Am I doing something wrong?
% testing matchpairs —————————————————————-
clear;clc
% — using matrix in usual form (not sparse) — WORKS
M = 99*ones(16,16);
M(1,1) = 2;
M(2,1) = 1;
M(1,2) = 1;
M(3,2) = 2;
M(2,3) = 2;
M(4,3) = 1;
M(6,3) = 4;
M(3,4) = 1;
M(4,4) = 2;
M(7,4) = 4;
M(6,5) = 2;
M(8,5) = 1;
M(3,6) = 4;
M(5,6) = 2;
M(7,6) = 1;
M(4,7) = 4;
M(6,7) = 1;
M(10,7) = 2;
M(5,8) = 1;
M(9,8) = 2;
M(8,9) = 2;
M(12,9) = 1;
M(7,10) = 2;
M(11,10) = 1;
M(13,10) = 4;
M(10,11) = 1;
M(12,11) = 2;
M(14,11) = 4;
M(9,12) = 1;
M(11,12) = 2;
M(10,13) = 4;
M(13,13) = 2;
M(14,13) = 1;
M(11,14) = 4;
M(13,14) = 1;
M(15,14) = 2;
M(14,15) = 2;
M(16,15) = 1;
M(15,16) = 1;
M(16,16) = 2;
[matchings, unassignedRows, unassignedCols] = matchpairs(M,12345)
OUTPUT IS CORRECT:
% — using sparse matrix — DOES NOT WORK
Ms = sparse(16,16);
Ms(1,1) = 2;
Ms(2,1) = 1;
Ms(1,2) = 1;
Ms(3,2) = 2;
Ms(2,3) = 2;
Ms(4,3) = 1;
Ms(6,3) = 4;
Ms(3,4) = 1;
Ms(4,4) = 2;
Ms(7,4) = 4;
Ms(6,5) = 2;
Ms(8,5) = 1;
Ms(3,6) = 4;
Ms(5,6) = 2;
Ms(7,6) = 1;
Ms(4,7) = 4;
Ms(6,7) = 1;
Ms(10,7) = 2;
Ms(5,8) = 1;
Ms(9,8) = 2;
Ms(8,9) = 2;
Ms(12,9) = 1;
Ms(7,10) = 2;
Ms(11,10) = 1;
Ms(13,10) = 4;
Ms(10,11) = 1;
Ms(12,11) = 2;
Ms(14,11) = 4;
Ms(9,12) = 1;
Ms(11,12) = 2;
Ms(10,13) = 4;
Ms(13,13) = 2;
Ms(14,13) = 1;
Ms(11,14) = 4;
Ms(13,14) = 1;
Ms(15,14) = 2;
Ms(14,15) = 2;
Ms(16,15) = 1;
Ms(15,16) = 1;
Ms(16,16) = 2;
[matchings, unassignedRows, unassignedCols] = matchpairs(Ms,-1) matchpairs linear assignment problem MATLAB Answers — New Questions
Why the time has not been synchronized between ros2 and simulink
I am subscribing to ros2 topic which has a message type ”ackermann_msgs/AckermannDriveStamped". I checked the topic in ros2 environment and it has 30Hz frequency. Now when I subscribe in simulink and extract the ‘sec’ I don’t get the time duration same as in ros2.
For example: The sample of header.stamp.sec in ros2 looks like this
[t(1)….t(30),t(31)….t(60)]= [1715612265….1715612265, 1715612266….1715612266]
And the sample of the same topic when been subscribed in simulink and been saved in worksapce looks like this:
[t(1)….t(215), t(216)….t(875)]= [1715612265….1715612265, 1715612266….1715612266]
I have tried the ‘Simulation pacing’, changed the sample time of the subscriber block, changed the fixed step size; still getting the same random time interval.
I am attaching the simple example with all the setting that I am using in Simulink. Please let me know if some setting in simulink is the fault or something else.I am subscribing to ros2 topic which has a message type ”ackermann_msgs/AckermannDriveStamped". I checked the topic in ros2 environment and it has 30Hz frequency. Now when I subscribe in simulink and extract the ‘sec’ I don’t get the time duration same as in ros2.
For example: The sample of header.stamp.sec in ros2 looks like this
[t(1)….t(30),t(31)….t(60)]= [1715612265….1715612265, 1715612266….1715612266]
And the sample of the same topic when been subscribed in simulink and been saved in worksapce looks like this:
[t(1)….t(215), t(216)….t(875)]= [1715612265….1715612265, 1715612266….1715612266]
I have tried the ‘Simulation pacing’, changed the sample time of the subscriber block, changed the fixed step size; still getting the same random time interval.
I am attaching the simple example with all the setting that I am using in Simulink. Please let me know if some setting in simulink is the fault or something else. I am subscribing to ros2 topic which has a message type ”ackermann_msgs/AckermannDriveStamped". I checked the topic in ros2 environment and it has 30Hz frequency. Now when I subscribe in simulink and extract the ‘sec’ I don’t get the time duration same as in ros2.
For example: The sample of header.stamp.sec in ros2 looks like this
[t(1)….t(30),t(31)….t(60)]= [1715612265….1715612265, 1715612266….1715612266]
And the sample of the same topic when been subscribed in simulink and been saved in worksapce looks like this:
[t(1)….t(215), t(216)….t(875)]= [1715612265….1715612265, 1715612266….1715612266]
I have tried the ‘Simulation pacing’, changed the sample time of the subscriber block, changed the fixed step size; still getting the same random time interval.
I am attaching the simple example with all the setting that I am using in Simulink. Please let me know if some setting in simulink is the fault or something else. ros2, ros2 time, simulink pacing, subscriber, simulink, to workspace MATLAB Answers — New Questions
Simulink considers that an output matrix has variable size when the size is always constant
Hi! I’m running a code in simulink (in one of the matlab function blocks) and I keep getting errors regarding the size of the output matrix. My code is the following one, where phi_1 is a ramp input that goes from 0 to 2*pi, and all the values in perm are constants:
function Ga = G(phi_1,perm)
G_amax=perm(1);
n=perm(2);
ns=perm(5);
nr=perm(6);
gamma=perm(3);
gammap=perm(4);
Ga=zeros(nr,ns);
%define angles between rotor (rows) and stator (columns) teeth
phi=zeros(nr,ns);
phi(1,1)=phi_1;
phi(2,1)=phi(1,1) + 2*pi/nr;
for j=2:ns
phi(1,j)=phi(1,j-1) – 2*pi/ns;
phi(2,j)=phi(1,j) + 2*pi/nr;
end
%make sure that the angle is in the first fifth (it’s periodic every 1/5th
%of a turn)
for j=1:nr
for k=1:ns
while phi(j,k)<0
phi(j,k)=phi(j,k)+2*pi;
end
while phi(j,k)>2*pi/5
phi(j,k)=phi(j,k)-2*pi/5;
end
%permeances as a function of the angle
if 0<=phi(k,j) && phi(k,j)<gammap || 2*pi/n – gammap<=phi(k,j) && phi(k,j)<=2*pi/n
Ga(k,j)=G_amax;
elseif gammap<=phi(k,j) && phi(k,j)<=gamma
Ga(k,j)=G_amax/2 * (1+cos(pi*(phi(k,j)-gammap)/(gamma-gammap)));
elseif 2*pi/n – gamma<=phi(k,j) && phi(k,j)<=2*pi/n – gammap
Ga(k,j)=G_amax/2 * (1+cos(pi*(phi(k,j)-2*pi/n+gammap)/(gamma-gammap)));
else
Ga(k,j)=0;
end
end
end
When I run the simulation, I get the following error:
Error:A signal of unbounded array type is not supported on ‘Input Port 1’ of block ‘air_gap/Scope2’. For a list of supported data types, see the block documentation page.
If I try setting the size of the matrix Ga to the one that it’s supposed to have ([2,3]) in the explore section instead of the predetermined -1, I get this error:
Error:The signal at ‘Output Port 1’ of ‘air_gap/MATLAB Function2’ is a variable-size signal with a nondiscrete sample time. The sample time for any variable-size signal must be discrete.
However, I want to be able to use continuous signals instead of discrete ones. Is there a way to do so? And if not, how do I switch it to discrete?
Thanks!Hi! I’m running a code in simulink (in one of the matlab function blocks) and I keep getting errors regarding the size of the output matrix. My code is the following one, where phi_1 is a ramp input that goes from 0 to 2*pi, and all the values in perm are constants:
function Ga = G(phi_1,perm)
G_amax=perm(1);
n=perm(2);
ns=perm(5);
nr=perm(6);
gamma=perm(3);
gammap=perm(4);
Ga=zeros(nr,ns);
%define angles between rotor (rows) and stator (columns) teeth
phi=zeros(nr,ns);
phi(1,1)=phi_1;
phi(2,1)=phi(1,1) + 2*pi/nr;
for j=2:ns
phi(1,j)=phi(1,j-1) – 2*pi/ns;
phi(2,j)=phi(1,j) + 2*pi/nr;
end
%make sure that the angle is in the first fifth (it’s periodic every 1/5th
%of a turn)
for j=1:nr
for k=1:ns
while phi(j,k)<0
phi(j,k)=phi(j,k)+2*pi;
end
while phi(j,k)>2*pi/5
phi(j,k)=phi(j,k)-2*pi/5;
end
%permeances as a function of the angle
if 0<=phi(k,j) && phi(k,j)<gammap || 2*pi/n – gammap<=phi(k,j) && phi(k,j)<=2*pi/n
Ga(k,j)=G_amax;
elseif gammap<=phi(k,j) && phi(k,j)<=gamma
Ga(k,j)=G_amax/2 * (1+cos(pi*(phi(k,j)-gammap)/(gamma-gammap)));
elseif 2*pi/n – gamma<=phi(k,j) && phi(k,j)<=2*pi/n – gammap
Ga(k,j)=G_amax/2 * (1+cos(pi*(phi(k,j)-2*pi/n+gammap)/(gamma-gammap)));
else
Ga(k,j)=0;
end
end
end
When I run the simulation, I get the following error:
Error:A signal of unbounded array type is not supported on ‘Input Port 1’ of block ‘air_gap/Scope2’. For a list of supported data types, see the block documentation page.
If I try setting the size of the matrix Ga to the one that it’s supposed to have ([2,3]) in the explore section instead of the predetermined -1, I get this error:
Error:The signal at ‘Output Port 1’ of ‘air_gap/MATLAB Function2’ is a variable-size signal with a nondiscrete sample time. The sample time for any variable-size signal must be discrete.
However, I want to be able to use continuous signals instead of discrete ones. Is there a way to do so? And if not, how do I switch it to discrete?
Thanks! Hi! I’m running a code in simulink (in one of the matlab function blocks) and I keep getting errors regarding the size of the output matrix. My code is the following one, where phi_1 is a ramp input that goes from 0 to 2*pi, and all the values in perm are constants:
function Ga = G(phi_1,perm)
G_amax=perm(1);
n=perm(2);
ns=perm(5);
nr=perm(6);
gamma=perm(3);
gammap=perm(4);
Ga=zeros(nr,ns);
%define angles between rotor (rows) and stator (columns) teeth
phi=zeros(nr,ns);
phi(1,1)=phi_1;
phi(2,1)=phi(1,1) + 2*pi/nr;
for j=2:ns
phi(1,j)=phi(1,j-1) – 2*pi/ns;
phi(2,j)=phi(1,j) + 2*pi/nr;
end
%make sure that the angle is in the first fifth (it’s periodic every 1/5th
%of a turn)
for j=1:nr
for k=1:ns
while phi(j,k)<0
phi(j,k)=phi(j,k)+2*pi;
end
while phi(j,k)>2*pi/5
phi(j,k)=phi(j,k)-2*pi/5;
end
%permeances as a function of the angle
if 0<=phi(k,j) && phi(k,j)<gammap || 2*pi/n – gammap<=phi(k,j) && phi(k,j)<=2*pi/n
Ga(k,j)=G_amax;
elseif gammap<=phi(k,j) && phi(k,j)<=gamma
Ga(k,j)=G_amax/2 * (1+cos(pi*(phi(k,j)-gammap)/(gamma-gammap)));
elseif 2*pi/n – gamma<=phi(k,j) && phi(k,j)<=2*pi/n – gammap
Ga(k,j)=G_amax/2 * (1+cos(pi*(phi(k,j)-2*pi/n+gammap)/(gamma-gammap)));
else
Ga(k,j)=0;
end
end
end
When I run the simulation, I get the following error:
Error:A signal of unbounded array type is not supported on ‘Input Port 1’ of block ‘air_gap/Scope2’. For a list of supported data types, see the block documentation page.
If I try setting the size of the matrix Ga to the one that it’s supposed to have ([2,3]) in the explore section instead of the predetermined -1, I get this error:
Error:The signal at ‘Output Port 1’ of ‘air_gap/MATLAB Function2’ is a variable-size signal with a nondiscrete sample time. The sample time for any variable-size signal must be discrete.
However, I want to be able to use continuous signals instead of discrete ones. Is there a way to do so? And if not, how do I switch it to discrete?
Thanks! simulink, variable-size, signal size, simulation, error, workspace MATLAB Answers — New Questions
Looking to transition from Outlook 2007, BUT…
I’ve been stubbornly holding out with Outlook 2007 all these years for one simple feature that Microsoft seems to have completely left out of each of these newer versions. I’ve tried desperately to find a work-around to it, but keep coming up empty. This is a key feature for me, and I’m hoping someone here can give me a suitable workaround. Drag-and-drop email copying/linking into file folders on my hard drive – not to elsewhere within the contained boundaries of Outlook.
I operate a business with many clients, for each of which I have multiple independent projects. I’ve got separate folders (on my hard drive) for each project, broken down also by year – so it’s not enough to categorize email by client only. My preferred method of keeping easily referenced tabs on all of those correspondences is to drag-and-drop all those email into those project folders. Outlook 2007 lets me do exactly that. I’m told Outlook 2010 also works that way. But all subsequent versions (including this most recent update) do not.
Is there a reasonable workaround to filing copies (or at least active links) on my hard drive with the newest Outlook? I am willing to look at alternative methods of keeping track of my client emails, but it MUST let me pool them (broken down by project and client) all together – as opposed to simply doing a ‘search’ from within Outlook every time I need to see old correspondence.
BTW, I am not a Microsoft 365 subscriber. If 365 allows the drag-and-drop capability I may have to consider going against my nature and pay eternally for something that I previously had unlimited access to after a single purchase.
Thanks in advance for your suggestions.
I’ve been stubbornly holding out with Outlook 2007 all these years for one simple feature that Microsoft seems to have completely left out of each of these newer versions. I’ve tried desperately to find a work-around to it, but keep coming up empty. This is a key feature for me, and I’m hoping someone here can give me a suitable workaround. Drag-and-drop email copying/linking into file folders on my hard drive – not to elsewhere within the contained boundaries of Outlook. I operate a business with many clients, for each of which I have multiple independent projects. I’ve got separate folders (on my hard drive) for each project, broken down also by year – so it’s not enough to categorize email by client only. My preferred method of keeping easily referenced tabs on all of those correspondences is to drag-and-drop all those email into those project folders. Outlook 2007 lets me do exactly that. I’m told Outlook 2010 also works that way. But all subsequent versions (including this most recent update) do not. Is there a reasonable workaround to filing copies (or at least active links) on my hard drive with the newest Outlook? I am willing to look at alternative methods of keeping track of my client emails, but it MUST let me pool them (broken down by project and client) all together – as opposed to simply doing a ‘search’ from within Outlook every time I need to see old correspondence. BTW, I am not a Microsoft 365 subscriber. If 365 allows the drag-and-drop capability I may have to consider going against my nature and pay eternally for something that I previously had unlimited access to after a single purchase. Thanks in advance for your suggestions. Read More
Email new internal users with Entra id account info
Is there a way to emailinvite new internal users, when their user id and password get created?
i think external get emails already from the invite, I want to bulk create internal users and have an email sent to each user with an invite.
Is there a way to emailinvite new internal users, when their user id and password get created? i think external get emails already from the invite, I want to bulk create internal users and have an email sent to each user with an invite. Read More
automatically update the single cell value of one sheet when I drag down column of other sheet
Dear experts:
I wish when I drag down the column Q at the sheet 1, the value of the single cell B5 at sheet 2 (sheet name:c_calculated) will be automatically updated to the repsected row value from the column N at shee 1.
For example, if I have drag down to row 7 of column Q at the sheet 1, the value at cell B5 of sheet 2 will be shifted to the value from row 7 of column N at the sheet 1.
If I have drag down to row 19 of column Q at the sheet 1, the value at cell B5 of sheet 2 will be shifted to the value from row 19 of column N at the sheet 1.
Could our friends give me guideline on this?
My file can be downloaded throughed the following link, after it is guided to the link page, just click file->download->microsoft excel (located at the top left corner of the page)
Kind Regards
Dear experts: I wish when I drag down the column Q at the sheet 1, the value of the single cell B5 at sheet 2 (sheet name:c_calculated) will be automatically updated to the repsected row value from the column N at shee 1. For example, if I have drag down to row 7 of column Q at the sheet 1, the value at cell B5 of sheet 2 will be shifted to the value from row 7 of column N at the sheet 1. If I have drag down to row 19 of column Q at the sheet 1, the value at cell B5 of sheet 2 will be shifted to the value from row 19 of column N at the sheet 1. Could our friends give me guideline on this? My file can be downloaded throughed the following link, after it is guided to the link page, just click file->download->microsoft excel (located at the top left corner of the page)https://docs.google.com/spreadsheets/d/1elsI_WsGmeaJ-JRJgzjnNBgekgPGYAZA/edit?usp=sharing&ouid=104482621481585823648&rtpof=true&sd=true Kind Regards Read More
Reg. AZ-305 solution architect certification
I am planning to schedule az-305 solution architect exam, but while scheduling it online the exam name coming as Exam AZ-305: Designing Microsoft Azure Infrastructure Solutions. Are these both exams same ? I already did pass prerequisite exam needed for this AZ-104 azure administrator. Could anyone clarify me here Is AZ-305 solution architect exam is same as AZ-305 Designing Microsoft Azure Infrastructure Solutions ? Thanks in advance
I am planning to schedule az-305 solution architect exam, but while scheduling it online the exam name coming as Exam AZ-305: Designing Microsoft Azure Infrastructure Solutions. Are these both exams same ? I already did pass prerequisite exam needed for this AZ-104 azure administrator. Could anyone clarify me here Is AZ-305 solution architect exam is same as AZ-305 Designing Microsoft Azure Infrastructure Solutions ? Thanks in advance Read More
Outdated version of the MDE Sense agent
How do you update the MSSense.exe to latest product version. I have two endpoints (Windows 10) that are still on 10.8471 after offboarding an onboarding. Also, nothing from manual update KB5005292
For what I have researched, It should update via windows update but a off/onboard should update to 10.8700. Is there a way to install the latest MSSense.exe?
How do you update the MSSense.exe to latest product version. I have two endpoints (Windows 10) that are still on 10.8471 after offboarding an onboarding. Also, nothing from manual update KB5005292For what I have researched, It should update via windows update but a off/onboard should update to 10.8700. Is there a way to install the latest MSSense.exe? Read More
Display only tasks assigned
I have 33 employees who are assigned one to 4 tasks daily from a list of 90+ tasks. I would like to display all of the tasks for a specific employee and insert a blank row every time an employee name changes. Would also like the display to reflect a different color to make it easier for employees to read. I currently have the Excel worksheet in place, just need assistance in the how to display. Thanks.
I have 33 employees who are assigned one to 4 tasks daily from a list of 90+ tasks. I would like to display all of the tasks for a specific employee and insert a blank row every time an employee name changes. Would also like the display to reflect a different color to make it easier for employees to read. I currently have the Excel worksheet in place, just need assistance in the how to display. Thanks. Read More
How Do I Fix QuickBooks Error 80070057 When The Parameter is Incorrect
QuickBooks is an essential tool for managing finances and streamlining accounting tasks for businesses of all sizes. However, encountering errors like QuickBooks Error 80070057 can disrupt workflow and cause frustration. In this article, we’ll delve into what this error is, its symptoms, common causes, and practical solutions, all presented with a human touch to assist you in resolving the issue efficiently.
What is QuickBooks Error 80070057?
QuickBooks Error 80070057 typically occurs when you attempt to open a company file in QuickBooks. It indicates that the file cannot be opened due to incorrect file type, corruption, or damaged file extension.
Symptoms of QuickBooks Error Code 80070057:
Recognizing the symptoms of QuickBooks Error 80070057 is crucial for timely resolution. These symptoms may include:
Inability to open the company file.Error message: “80070057: the parameter is incorrect.”QuickBooks freezes or crashes when attempting to open the file.Issues while accessing the company file over a network.Inability to save transactions.
What are the Causes of QuickBooks Error 80070057?
Understanding the underlying causes of QuickBooks Error 80070057 can help in implementing targeted solutions. Some common causes include:
Incorrect QuickBooks file extension: This error may occur if the QuickBooks file extension is incorrect or if the file is named incorrectly.Firewall or security software blocking QuickBooks: Security software or firewall settings may prevent QuickBooks from accessing the company file.Corrupted QuickBooks installation: A corrupted QuickBooks installation can lead to various errors, including Error 80070057.Multiple users accessing the company file simultaneously: If multiple users are accessing the company file simultaneously over a network, it can trigger this error.Damaged company file: A damaged or corrupted company file can result in Error 80070057 when attempting to open it in QuickBooks.
Solutions to QuickBooks Error 80070057 When The Parameter is Incorrect:
Verify and correct the file extension:
Ensure that the file extension of your company file is correct (e.g., .qbw for QuickBooks company file).Rename the file with the correct extension if necessary.
Check firewall and security settings:
Configure firewall and security software to allow QuickBooks access to the company file.Add QuickBooks to the list of trusted applications in your firewall settings.
Update QuickBooks:
Ensure that QuickBooks is updated to the latest version to resolve any known issues or bugs.
Open the company file locally:
Copy the company file to your local drive and attempt to open it from there.If successful, it may indicate a network-related issue.
Use QuickBooks File Doctor:
QuickBooks File Doctor is a diagnostic tool provided by Intuit to fix common QuickBooks file and network issues.Download and run QuickBooks File Doctor to scan and repair the company file.
Re-create damaged company file:
If the company file is damaged beyond repair, create a new company file and re-enter the data manually or restore a backup.
Seek professional assistance:
If the above solutions do not resolve the issue, consider seeking assistance from a QuickBooks expert or Intuit support.
Conclusion:
QuickBooks Error 80070057 can disrupt your workflow and cause frustration, but with the right approach, it can be resolved effectively. By understanding the causes and symptoms of the error and implementing the solutions provided in this article, you can get back to managing your finances smoothly. Remember to approach the resolution process with patience and diligence, and don’t hesitate to seek professional assistance if needed.
QuickBooks is an essential tool for managing finances and streamlining accounting tasks for businesses of all sizes. However, encountering errors like QuickBooks Error 80070057 can disrupt workflow and cause frustration. In this article, we’ll delve into what this error is, its symptoms, common causes, and practical solutions, all presented with a human touch to assist you in resolving the issue efficiently. What is QuickBooks Error 80070057? QuickBooks Error 80070057 typically occurs when you attempt to open a company file in QuickBooks. It indicates that the file cannot be opened due to incorrect file type, corruption, or damaged file extension. Symptoms of QuickBooks Error Code 80070057: Recognizing the symptoms of QuickBooks Error 80070057 is crucial for timely resolution. These symptoms may include:Inability to open the company file.Error message: “80070057: the parameter is incorrect.”QuickBooks freezes or crashes when attempting to open the file.Issues while accessing the company file over a network.Inability to save transactions.What are the Causes of QuickBooks Error 80070057? Understanding the underlying causes of QuickBooks Error 80070057 can help in implementing targeted solutions. Some common causes include:Incorrect QuickBooks file extension: This error may occur if the QuickBooks file extension is incorrect or if the file is named incorrectly.Firewall or security software blocking QuickBooks: Security software or firewall settings may prevent QuickBooks from accessing the company file.Corrupted QuickBooks installation: A corrupted QuickBooks installation can lead to various errors, including Error 80070057.Multiple users accessing the company file simultaneously: If multiple users are accessing the company file simultaneously over a network, it can trigger this error.Damaged company file: A damaged or corrupted company file can result in Error 80070057 when attempting to open it in QuickBooks.Solutions to QuickBooks Error 80070057 When The Parameter is Incorrect: Verify and correct the file extension:Ensure that the file extension of your company file is correct (e.g., .qbw for QuickBooks company file).Rename the file with the correct extension if necessary.Check firewall and security settings:Configure firewall and security software to allow QuickBooks access to the company file.Add QuickBooks to the list of trusted applications in your firewall settings.Update QuickBooks:Ensure that QuickBooks is updated to the latest version to resolve any known issues or bugs.Open the company file locally:Copy the company file to your local drive and attempt to open it from there.If successful, it may indicate a network-related issue.Use QuickBooks File Doctor:QuickBooks File Doctor is a diagnostic tool provided by Intuit to fix common QuickBooks file and network issues.Download and run QuickBooks File Doctor to scan and repair the company file.Re-create damaged company file:If the company file is damaged beyond repair, create a new company file and re-enter the data manually or restore a backup.Seek professional assistance:If the above solutions do not resolve the issue, consider seeking assistance from a QuickBooks expert or Intuit support.Conclusion: QuickBooks Error 80070057 can disrupt your workflow and cause frustration, but with the right approach, it can be resolved effectively. By understanding the causes and symptoms of the error and implementing the solutions provided in this article, you can get back to managing your finances smoothly. Remember to approach the resolution process with patience and diligence, and don’t hesitate to seek professional assistance if needed. Read More
Teams (new) No Call Banner or Notification from Inbound Calls
Hello,
I have a user with the New Teams Desktop client, and he does not receive any call notifications when someone calls him, only thing he receives is a missed call notification once the caller ends the call. Web and mobile functions just fine and he receive call notifications there.
I’ve uninstalled and reinstalled Teams. Cleared the Teams cache within %appdata%, deleted Teams install folder within “C:Program FilesWindowsAppsMSTeams_24091.214.2846.1452_x64__8wekyb3d8bbwe” and then reinstalling Teams, but issue is still happening.
When using Classic Teams, he’s receiving the call notifications but of course is being forced to use New Teams as discontinue of Classic Teams is in 2 months. We also tried logging into a different user and the issue is the same. Has anyone had this issue before? Thanks in advance.
Hello, I have a user with the New Teams Desktop client, and he does not receive any call notifications when someone calls him, only thing he receives is a missed call notification once the caller ends the call. Web and mobile functions just fine and he receive call notifications there. I’ve uninstalled and reinstalled Teams. Cleared the Teams cache within %appdata%, deleted Teams install folder within “C:Program FilesWindowsAppsMSTeams_24091.214.2846.1452_x64__8wekyb3d8bbwe” and then reinstalling Teams, but issue is still happening. When using Classic Teams, he’s receiving the call notifications but of course is being forced to use New Teams as discontinue of Classic Teams is in 2 months. We also tried logging into a different user and the issue is the same. Has anyone had this issue before? Thanks in advance. Read More
Bluetooth not working
Insider version: BETA
Issue: Bluetooth keeps on missing. Already updated driver as well as installed driver via Asus website. It comes back but then goes missing after a min.
Insider version: BETA Issue: Bluetooth keeps on missing. Already updated driver as well as installed driver via Asus website. It comes back but then goes missing after a min. Read More
Hello guys
I have a problem with creating a specific query.
You have three tables: one for student information including name, class (ranging from 1 to 5), and nationality (either your a national or a foreigner). The second table shows the tuition fees and registration fee for nationals across the five classes, and the third table does the same for foreigners.
I would like someone to help me on how I can go about with this on accesss, so as to retrieve the appropriate fee information based on a student’s nationality and class, whether they are a national or a foreigner. So, if you input “national class 3,” Access should display the fee for a national student in class 3, including registration and fee. Similarly, if you input “foreigner class 4,” Access should show the fees for a foreign student in class 4. Thanks for the help in advance
I have a problem with creating a specific query.You have three tables: one for student information including name, class (ranging from 1 to 5), and nationality (either your a national or a foreigner). The second table shows the tuition fees and registration fee for nationals across the five classes, and the third table does the same for foreigners.I would like someone to help me on how I can go about with this on accesss, so as to retrieve the appropriate fee information based on a student’s nationality and class, whether they are a national or a foreigner. So, if you input “national class 3,” Access should display the fee for a national student in class 3, including registration and fee. Similarly, if you input “foreigner class 4,” Access should show the fees for a foreign student in class 4. Thanks for the help in advance Read More
Output array from Python called function
I call a MATLAB function from my python script, where the output of the MATLAB function is a 6×801 matrix. When I call the function in python however, I only get the first column (6×1 vector) as my output in python.
Inside python I call:
eng.matlab.engine.start_matlab()
X_exact = eng.testplot(randalt,nargout=1)
Where testplot is the function being called, randalt is a float input parameter to the function.I call a MATLAB function from my python script, where the output of the MATLAB function is a 6×801 matrix. When I call the function in python however, I only get the first column (6×1 vector) as my output in python.
Inside python I call:
eng.matlab.engine.start_matlab()
X_exact = eng.testplot(randalt,nargout=1)
Where testplot is the function being called, randalt is a float input parameter to the function. I call a MATLAB function from my python script, where the output of the MATLAB function is a 6×801 matrix. When I call the function in python however, I only get the first column (6×1 vector) as my output in python.
Inside python I call:
eng.matlab.engine.start_matlab()
X_exact = eng.testplot(randalt,nargout=1)
Where testplot is the function being called, randalt is a float input parameter to the function. matlab, python MATLAB Answers — New Questions
How to run selected matlab code?
Hi,
How can I execute highlighted code?
I do not want to run code of a particular sector but the code that I just highilght. That is, particular lines
MatlabR2022a.
BestHi,
How can I execute highlighted code?
I do not want to run code of a particular sector but the code that I just highilght. That is, particular lines
MatlabR2022a.
Best Hi,
How can I execute highlighted code?
I do not want to run code of a particular sector but the code that I just highilght. That is, particular lines
MatlabR2022a.
Best code, execute MATLAB Answers — New Questions
Mean shift clustering – issue with finding the center of my clusters
Hi all, as you can see from the attached image, I cannot detect the center of my dots (in blu) by using the mean shift clustering. I will report the code below and I want to point out that I got the same result also chaining the bandwidht with any kind of number. Thanks a lot for helping me.
my code:
%%
% Import the data
% Prompt the user to choose a file
[filename, filepath] = uigetfile(‘*.txt’, ‘Select a text file’);
file_name = filename;
remove = ‘.txt’;
file_name_clean = strrep(file_name, remove, ”);
%%
% Plotting
plot_name = [‘Intensity_’ file_name_clean ‘.svg’];
% Import data from text file
opts = delimitedTextImportOptions("NumVariables", 28);
opts.DataLines = [2, Inf];
opts.Delimiter = "t";
opts.VariableNames = ["channel_name", "x", "y", "x_c", "y_c"];
opts.SelectedVariableNames = ["x", "y"]; % Only select the x and y columns
opts.VariableTypes = ["string", "double", "double", "double", "double"];
opts.ExtraColumnsRule = "ignore";
opts.EmptyLineRule = "read";
% Construct the full file path
file_path = fullfile(filepath, file_name);
data = readmatrix(file_path, opts);
% Perform Mean Shift clustering
bandwidth = 50; % bandwidth parameter for Mean Shift
[cluster_centers, data2cluster, cluster2dataCell] = MeanShiftCluster(data, bandwidth);
% Plotting the data with logarithmic x-axis and error bars for averages and standard deviations
figure;
plot(data(:,2), data(:,1), ‘.’, ‘MarkerSize’, 10, ‘DisplayName’, ‘XY coordinates’);
hold on;
% Set x-axis limit starting from 0
xlim([0, max(data(:,2))]);
% Set y-axis limit starting from 0
ylim([0, max(data(:,1))]);
% Plot cluster centers
hold on;
plot(cluster_centers(:,2), cluster_centers(:,1), ‘kx’, ‘MarkerSize’, 15, ‘LineWidth’, 3, ‘DisplayName’, ‘Cluster Centers’);
hold off;
xlabel(‘X’);
ylabel(‘Y’);
title(‘Mean Shift Clustering’);
legend(‘XY coordinates’, ‘Cluster Centers’);Hi all, as you can see from the attached image, I cannot detect the center of my dots (in blu) by using the mean shift clustering. I will report the code below and I want to point out that I got the same result also chaining the bandwidht with any kind of number. Thanks a lot for helping me.
my code:
%%
% Import the data
% Prompt the user to choose a file
[filename, filepath] = uigetfile(‘*.txt’, ‘Select a text file’);
file_name = filename;
remove = ‘.txt’;
file_name_clean = strrep(file_name, remove, ”);
%%
% Plotting
plot_name = [‘Intensity_’ file_name_clean ‘.svg’];
% Import data from text file
opts = delimitedTextImportOptions("NumVariables", 28);
opts.DataLines = [2, Inf];
opts.Delimiter = "t";
opts.VariableNames = ["channel_name", "x", "y", "x_c", "y_c"];
opts.SelectedVariableNames = ["x", "y"]; % Only select the x and y columns
opts.VariableTypes = ["string", "double", "double", "double", "double"];
opts.ExtraColumnsRule = "ignore";
opts.EmptyLineRule = "read";
% Construct the full file path
file_path = fullfile(filepath, file_name);
data = readmatrix(file_path, opts);
% Perform Mean Shift clustering
bandwidth = 50; % bandwidth parameter for Mean Shift
[cluster_centers, data2cluster, cluster2dataCell] = MeanShiftCluster(data, bandwidth);
% Plotting the data with logarithmic x-axis and error bars for averages and standard deviations
figure;
plot(data(:,2), data(:,1), ‘.’, ‘MarkerSize’, 10, ‘DisplayName’, ‘XY coordinates’);
hold on;
% Set x-axis limit starting from 0
xlim([0, max(data(:,2))]);
% Set y-axis limit starting from 0
ylim([0, max(data(:,1))]);
% Plot cluster centers
hold on;
plot(cluster_centers(:,2), cluster_centers(:,1), ‘kx’, ‘MarkerSize’, 15, ‘LineWidth’, 3, ‘DisplayName’, ‘Cluster Centers’);
hold off;
xlabel(‘X’);
ylabel(‘Y’);
title(‘Mean Shift Clustering’);
legend(‘XY coordinates’, ‘Cluster Centers’); Hi all, as you can see from the attached image, I cannot detect the center of my dots (in blu) by using the mean shift clustering. I will report the code below and I want to point out that I got the same result also chaining the bandwidht with any kind of number. Thanks a lot for helping me.
my code:
%%
% Import the data
% Prompt the user to choose a file
[filename, filepath] = uigetfile(‘*.txt’, ‘Select a text file’);
file_name = filename;
remove = ‘.txt’;
file_name_clean = strrep(file_name, remove, ”);
%%
% Plotting
plot_name = [‘Intensity_’ file_name_clean ‘.svg’];
% Import data from text file
opts = delimitedTextImportOptions("NumVariables", 28);
opts.DataLines = [2, Inf];
opts.Delimiter = "t";
opts.VariableNames = ["channel_name", "x", "y", "x_c", "y_c"];
opts.SelectedVariableNames = ["x", "y"]; % Only select the x and y columns
opts.VariableTypes = ["string", "double", "double", "double", "double"];
opts.ExtraColumnsRule = "ignore";
opts.EmptyLineRule = "read";
% Construct the full file path
file_path = fullfile(filepath, file_name);
data = readmatrix(file_path, opts);
% Perform Mean Shift clustering
bandwidth = 50; % bandwidth parameter for Mean Shift
[cluster_centers, data2cluster, cluster2dataCell] = MeanShiftCluster(data, bandwidth);
% Plotting the data with logarithmic x-axis and error bars for averages and standard deviations
figure;
plot(data(:,2), data(:,1), ‘.’, ‘MarkerSize’, 10, ‘DisplayName’, ‘XY coordinates’);
hold on;
% Set x-axis limit starting from 0
xlim([0, max(data(:,2))]);
% Set y-axis limit starting from 0
ylim([0, max(data(:,1))]);
% Plot cluster centers
hold on;
plot(cluster_centers(:,2), cluster_centers(:,1), ‘kx’, ‘MarkerSize’, 15, ‘LineWidth’, 3, ‘DisplayName’, ‘Cluster Centers’);
hold off;
xlabel(‘X’);
ylabel(‘Y’);
title(‘Mean Shift Clustering’);
legend(‘XY coordinates’, ‘Cluster Centers’); mean shift clustering MATLAB Answers — New Questions
MATLAB Report Generator – Edit PDF page margins in sections.
Hi,
I built a pdf report using mlreportgen.report.Report() function. I want to edit heading format e.g. margin size around the pages. I found examples but the function Document() is used and I’d rather keep Report() function. I also found example using Report() but I can only edit title page and table of content format. I can’t modify what’s inside a section for instance.
From what I read, I should edit the pdf template to achieve that. But I can’t find an easy way to edit *.pdftx files. I unzipped it and played with docpart_templates.html and root.html but I’m really not a html expert. Is there a tool to edit the template easily or is there a way to modify properties of chapter, section, paragraph, etc. using code in my script?
Here’s my code. The template ‘Default_PDF_Template.pdftx’ is a copy of the built-in template "Default PDF Template" I took in Report Explorer. I assume the template can be edited in Report Explorer but I can figure out how.
Thanks in advance!
import mlreportgen.report.*
import mlreportgen.dom.*
% Create report
rpt = Report(‘MyReport’, ‘pdf’,’Default_PDF_Template.pdftx’);
open(rpt);
% Add a title page
append(rpt, TitlePage(Title=’My Report’));
% Add table of content
toc = TableOfContents;
append(rpt, toc);
% Create all sections
sect_1 = Section(Title=’Simulation Results’);
sect_1_1 = Section(Title=’Signal Description’);
sect_2 = Section(Title=’Parameters’);
% Append sections
append(sect_1, sect_1_1);
append(rpt, sect_1);
append(rpt, sect_2);
% Close and show report
close(rpt);
rptview(rpt);Hi,
I built a pdf report using mlreportgen.report.Report() function. I want to edit heading format e.g. margin size around the pages. I found examples but the function Document() is used and I’d rather keep Report() function. I also found example using Report() but I can only edit title page and table of content format. I can’t modify what’s inside a section for instance.
From what I read, I should edit the pdf template to achieve that. But I can’t find an easy way to edit *.pdftx files. I unzipped it and played with docpart_templates.html and root.html but I’m really not a html expert. Is there a tool to edit the template easily or is there a way to modify properties of chapter, section, paragraph, etc. using code in my script?
Here’s my code. The template ‘Default_PDF_Template.pdftx’ is a copy of the built-in template "Default PDF Template" I took in Report Explorer. I assume the template can be edited in Report Explorer but I can figure out how.
Thanks in advance!
import mlreportgen.report.*
import mlreportgen.dom.*
% Create report
rpt = Report(‘MyReport’, ‘pdf’,’Default_PDF_Template.pdftx’);
open(rpt);
% Add a title page
append(rpt, TitlePage(Title=’My Report’));
% Add table of content
toc = TableOfContents;
append(rpt, toc);
% Create all sections
sect_1 = Section(Title=’Simulation Results’);
sect_1_1 = Section(Title=’Signal Description’);
sect_2 = Section(Title=’Parameters’);
% Append sections
append(sect_1, sect_1_1);
append(rpt, sect_1);
append(rpt, sect_2);
% Close and show report
close(rpt);
rptview(rpt); Hi,
I built a pdf report using mlreportgen.report.Report() function. I want to edit heading format e.g. margin size around the pages. I found examples but the function Document() is used and I’d rather keep Report() function. I also found example using Report() but I can only edit title page and table of content format. I can’t modify what’s inside a section for instance.
From what I read, I should edit the pdf template to achieve that. But I can’t find an easy way to edit *.pdftx files. I unzipped it and played with docpart_templates.html and root.html but I’m really not a html expert. Is there a tool to edit the template easily or is there a way to modify properties of chapter, section, paragraph, etc. using code in my script?
Here’s my code. The template ‘Default_PDF_Template.pdftx’ is a copy of the built-in template "Default PDF Template" I took in Report Explorer. I assume the template can be edited in Report Explorer but I can figure out how.
Thanks in advance!
import mlreportgen.report.*
import mlreportgen.dom.*
% Create report
rpt = Report(‘MyReport’, ‘pdf’,’Default_PDF_Template.pdftx’);
open(rpt);
% Add a title page
append(rpt, TitlePage(Title=’My Report’));
% Add table of content
toc = TableOfContents;
append(rpt, toc);
% Create all sections
sect_1 = Section(Title=’Simulation Results’);
sect_1_1 = Section(Title=’Signal Description’);
sect_2 = Section(Title=’Parameters’);
% Append sections
append(sect_1, sect_1_1);
append(rpt, sect_1);
append(rpt, sect_2);
% Close and show report
close(rpt);
rptview(rpt); report generator, pdf template, pdf report MATLAB Answers — New Questions
Why does the tiledlayout keep the space between tiles?
dear community,
i have a tiledlayout with TileSpacing set to ‘tight’, but the upper row keeps space below it, altough there is noting to keep space for. there is also no whitespace title in row 2 or something like that. Any idea? I am on 2022a.
fig=openfig(‘spaceBetweenTilesNotClosing.fig’);
annotation("rectangle",’Position’,[0.0563,0.629,0.9115,0.09708],’Color’,’g’);
tl=findall(fig,’type’,’tiledlayout’);
tldear community,
i have a tiledlayout with TileSpacing set to ‘tight’, but the upper row keeps space below it, altough there is noting to keep space for. there is also no whitespace title in row 2 or something like that. Any idea? I am on 2022a.
fig=openfig(‘spaceBetweenTilesNotClosing.fig’);
annotation("rectangle",’Position’,[0.0563,0.629,0.9115,0.09708],’Color’,’g’);
tl=findall(fig,’type’,’tiledlayout’);
tl dear community,
i have a tiledlayout with TileSpacing set to ‘tight’, but the upper row keeps space below it, altough there is noting to keep space for. there is also no whitespace title in row 2 or something like that. Any idea? I am on 2022a.
fig=openfig(‘spaceBetweenTilesNotClosing.fig’);
annotation("rectangle",’Position’,[0.0563,0.629,0.9115,0.09708],’Color’,’g’);
tl=findall(fig,’type’,’tiledlayout’);
tl tiledlayout, spacing, whitespace MATLAB Answers — New Questions
How to issue and execute commands in the Command Window of another MATLAB instance
I would like to have two instances of MATLAB running on my computer with some interaction between the two instances.
I am running MATLAB (R2024a) Update 2 on a Windows 10 computer.
Specifically I would like to:
Open a first instance of MATLAB in the usual way from the Window desktop
From the first instance of MATLAB open a second instance of MATLAB (ideally without another user interface opening up)
From the first instance of MATLAB tell the second instance of MATLAB to run a .m file
Run some code on the first instance of MATLAB
From the first instance of MATLAB tell the second instance of MATLABt to run another .m file
From the first instance of MATLAB close the second instance of MATLAB e.g. run the quit command
I have seen in other posts that this could be done using either a com server or .Net. I looked into the com server approach, but will have difficulties with that, because in our corporate installation, it is difficult to obtain needed administrative privileges.I am therefore most interested in the .Net approach. Also, I do not have the Parallel Processing Toolbox, so I can not use approaches that use that.
Following from some other related postings, e.g. ( https://www.mathworks.com/matlabcentral/answers/586706-how-to-redirect-standard-input-and-standard-output-using-net-system-diagnostics-process?s_tid=prof_contriblnk) I tried doing running this Hello World example from the first instance of MATLAB
NET.addAssembly(‘System’)
matlabProcess = System.Diagnostics.Process()
matlabProcess.StartInfo.FileName = ‘matlab’
matlabProcess.StartInfo.Arguments = ‘-nosplash’
matlabProcess.StartInfo.UseShellExecute = false;
matlabProcess.StartInfo.RedirectStandardInput = true;
matlabProcess.StartInfo.RedirectStandardOutput = true;
matlabProcess.Start();
matlabProcess.StandardInput.WriteLine("disp(‘Hello from MATLAB’)")
This sucessfully opens the second MATLAB instance, but no commands (e.g. disp(‘Hello from MATLAB’) appear in the command window of the second instance.
I know that there are simpler ways to launch a second instance of MATLAB and have it run just one command, however I need to start some processes running on the second instance, use the results of these in the first instance, and then thave the second instance run some code to gracefully stop some processes and shut down.
I posted an earlier version of this inquiry as a comment to the related question https://www.mathworks.com/matlabcentral/answers/1435767-how-to-opening-1-instance-of-matlab-from-matlab-but-accessing-it-multiple-times, but am now posting it here as its own question, along with some specific code that I tried, so it will reach others that might not be following that older question.
Thanks for any suggestions you can provide.
Best Wishes,
JonI would like to have two instances of MATLAB running on my computer with some interaction between the two instances.
I am running MATLAB (R2024a) Update 2 on a Windows 10 computer.
Specifically I would like to:
Open a first instance of MATLAB in the usual way from the Window desktop
From the first instance of MATLAB open a second instance of MATLAB (ideally without another user interface opening up)
From the first instance of MATLAB tell the second instance of MATLAB to run a .m file
Run some code on the first instance of MATLAB
From the first instance of MATLAB tell the second instance of MATLABt to run another .m file
From the first instance of MATLAB close the second instance of MATLAB e.g. run the quit command
I have seen in other posts that this could be done using either a com server or .Net. I looked into the com server approach, but will have difficulties with that, because in our corporate installation, it is difficult to obtain needed administrative privileges.I am therefore most interested in the .Net approach. Also, I do not have the Parallel Processing Toolbox, so I can not use approaches that use that.
Following from some other related postings, e.g. ( https://www.mathworks.com/matlabcentral/answers/586706-how-to-redirect-standard-input-and-standard-output-using-net-system-diagnostics-process?s_tid=prof_contriblnk) I tried doing running this Hello World example from the first instance of MATLAB
NET.addAssembly(‘System’)
matlabProcess = System.Diagnostics.Process()
matlabProcess.StartInfo.FileName = ‘matlab’
matlabProcess.StartInfo.Arguments = ‘-nosplash’
matlabProcess.StartInfo.UseShellExecute = false;
matlabProcess.StartInfo.RedirectStandardInput = true;
matlabProcess.StartInfo.RedirectStandardOutput = true;
matlabProcess.Start();
matlabProcess.StandardInput.WriteLine("disp(‘Hello from MATLAB’)")
This sucessfully opens the second MATLAB instance, but no commands (e.g. disp(‘Hello from MATLAB’) appear in the command window of the second instance.
I know that there are simpler ways to launch a second instance of MATLAB and have it run just one command, however I need to start some processes running on the second instance, use the results of these in the first instance, and then thave the second instance run some code to gracefully stop some processes and shut down.
I posted an earlier version of this inquiry as a comment to the related question https://www.mathworks.com/matlabcentral/answers/1435767-how-to-opening-1-instance-of-matlab-from-matlab-but-accessing-it-multiple-times, but am now posting it here as its own question, along with some specific code that I tried, so it will reach others that might not be following that older question.
Thanks for any suggestions you can provide.
Best Wishes,
Jon I would like to have two instances of MATLAB running on my computer with some interaction between the two instances.
I am running MATLAB (R2024a) Update 2 on a Windows 10 computer.
Specifically I would like to:
Open a first instance of MATLAB in the usual way from the Window desktop
From the first instance of MATLAB open a second instance of MATLAB (ideally without another user interface opening up)
From the first instance of MATLAB tell the second instance of MATLAB to run a .m file
Run some code on the first instance of MATLAB
From the first instance of MATLAB tell the second instance of MATLABt to run another .m file
From the first instance of MATLAB close the second instance of MATLAB e.g. run the quit command
I have seen in other posts that this could be done using either a com server or .Net. I looked into the com server approach, but will have difficulties with that, because in our corporate installation, it is difficult to obtain needed administrative privileges.I am therefore most interested in the .Net approach. Also, I do not have the Parallel Processing Toolbox, so I can not use approaches that use that.
Following from some other related postings, e.g. ( https://www.mathworks.com/matlabcentral/answers/586706-how-to-redirect-standard-input-and-standard-output-using-net-system-diagnostics-process?s_tid=prof_contriblnk) I tried doing running this Hello World example from the first instance of MATLAB
NET.addAssembly(‘System’)
matlabProcess = System.Diagnostics.Process()
matlabProcess.StartInfo.FileName = ‘matlab’
matlabProcess.StartInfo.Arguments = ‘-nosplash’
matlabProcess.StartInfo.UseShellExecute = false;
matlabProcess.StartInfo.RedirectStandardInput = true;
matlabProcess.StartInfo.RedirectStandardOutput = true;
matlabProcess.Start();
matlabProcess.StandardInput.WriteLine("disp(‘Hello from MATLAB’)")
This sucessfully opens the second MATLAB instance, but no commands (e.g. disp(‘Hello from MATLAB’) appear in the command window of the second instance.
I know that there are simpler ways to launch a second instance of MATLAB and have it run just one command, however I need to start some processes running on the second instance, use the results of these in the first instance, and then thave the second instance run some code to gracefully stop some processes and shut down.
I posted an earlier version of this inquiry as a comment to the related question https://www.mathworks.com/matlabcentral/answers/1435767-how-to-opening-1-instance-of-matlab-from-matlab-but-accessing-it-multiple-times, but am now posting it here as its own question, along with some specific code that I tried, so it will reach others that might not be following that older question.
Thanks for any suggestions you can provide.
Best Wishes,
Jon multiple instances MATLAB Answers — New Questions