Month: August 2024
Communication between MATLAB and Crazyflie
I want to send commands from MATLAB/Simulink to Crazyflieb 2.0. How can I do it?I want to send commands from MATLAB/Simulink to Crazyflieb 2.0. How can I do it? I want to send commands from MATLAB/Simulink to Crazyflieb 2.0. How can I do it? crazyflie, matlab, simulink, communication MATLAB Answers — New Questions
delaunay function on raspberry pi?
Hello all,
I am trying to convert my code so it can run on a raspberry pi. However, part of my code is a map generator which uses the delaunay function to create a triangulation as follows:
(…)
x = x(:);
y = y(:);
z = z(:);
faces = delaunay(x, y);
randomMap = triangulation(faces, x, y, z);
end
Matlab Coder says it cannot convert the delaunay function. Is there any other function I can use to port this? I have already tried using ‘delaunayTriangulation’ or ‘alphashape’ instead, and tried to directly call ‘qhull’, but neither of these work. And since the delaunay function is built-in, I cannot look at the source code to fix this issue either and I do not know enough about the implementation to implement it from scratch.
Any help is appreciated!Hello all,
I am trying to convert my code so it can run on a raspberry pi. However, part of my code is a map generator which uses the delaunay function to create a triangulation as follows:
(…)
x = x(:);
y = y(:);
z = z(:);
faces = delaunay(x, y);
randomMap = triangulation(faces, x, y, z);
end
Matlab Coder says it cannot convert the delaunay function. Is there any other function I can use to port this? I have already tried using ‘delaunayTriangulation’ or ‘alphashape’ instead, and tried to directly call ‘qhull’, but neither of these work. And since the delaunay function is built-in, I cannot look at the source code to fix this issue either and I do not know enough about the implementation to implement it from scratch.
Any help is appreciated! Hello all,
I am trying to convert my code so it can run on a raspberry pi. However, part of my code is a map generator which uses the delaunay function to create a triangulation as follows:
(…)
x = x(:);
y = y(:);
z = z(:);
faces = delaunay(x, y);
randomMap = triangulation(faces, x, y, z);
end
Matlab Coder says it cannot convert the delaunay function. Is there any other function I can use to port this? I have already tried using ‘delaunayTriangulation’ or ‘alphashape’ instead, and tried to directly call ‘qhull’, but neither of these work. And since the delaunay function is built-in, I cannot look at the source code to fix this issue either and I do not know enough about the implementation to implement it from scratch.
Any help is appreciated! matlab coder, raspberry pi, delaunay, mesh, triangulation MATLAB Answers — New Questions
Drive Properties Access Denied | BitLocker Access Denied
Hello Everyone. Please Refer Below and help me :
Hello Everyone. Please Refer Below and help me : Read More
Saving image with high resolution
Hi,
I use this line of code to save my figure as .png : print(name,’-dpng’,’-r0′),
but i get a bad resolution picture bespite that the figure in matlab is good. I tried print(name,’-dpng’,’-r500′), but nothing changed.
How can i save figure as .png but with the same quality as the matlab figure?
Thank youHi,
I use this line of code to save my figure as .png : print(name,’-dpng’,’-r0′),
but i get a bad resolution picture bespite that the figure in matlab is good. I tried print(name,’-dpng’,’-r500′), but nothing changed.
How can i save figure as .png but with the same quality as the matlab figure?
Thank you Hi,
I use this line of code to save my figure as .png : print(name,’-dpng’,’-r0′),
but i get a bad resolution picture bespite that the figure in matlab is good. I tried print(name,’-dpng’,’-r500′), but nothing changed.
How can i save figure as .png but with the same quality as the matlab figure?
Thank you save figure, resolution MATLAB Answers — New Questions
Try to set a date on my cell and an data validation error appears
I’ve been trying to re-make a very simple Task Tracker that I had made on Google Sheets to Excel, and most fuctions work except the one to insert the Due Date of the Assigment. It opens the calendar and the rest of the Assigments that I imported seem to be working well, but when I try to add a new date, this error appears. I don’t understand why, since the Data Validation formulas are only supposed to work on the Course and Type columns. Please help me, I just wanted to be a responsible student.
I’ve been trying to re-make a very simple Task Tracker that I had made on Google Sheets to Excel, and most fuctions work except the one to insert the Due Date of the Assigment. It opens the calendar and the rest of the Assigments that I imported seem to be working well, but when I try to add a new date, this error appears. I don’t understand why, since the Data Validation formulas are only supposed to work on the Course and Type columns. Please help me, I just wanted to be a responsible student. Read More
How to check color image linear or nonlinear?
I have 24 bit RGB image. I want to check whether it is linear or nonlinear. How to check it.I have 24 bit RGB image. I want to check whether it is linear or nonlinear. How to check it. I have 24 bit RGB image. I want to check whether it is linear or nonlinear. How to check it. linear, nonlinear, color image MATLAB Answers — New Questions
Troubleshooting ESP32-WROOM/ESP32WROVER Setup Error in Simulink Support Package for Arduino Hardware
When attempting to set up the ESP32-WROOM/ESP32-WROVER board in Simulink using the ‘Setup Hardware’ option, I encounter an error during the final verification step. Specifically, when clicking on ‘Test Connection,’ the download status fails. It is worth noting that the driver for the ESP32 is correctly installed. How can I resolve this issue?When attempting to set up the ESP32-WROOM/ESP32-WROVER board in Simulink using the ‘Setup Hardware’ option, I encounter an error during the final verification step. Specifically, when clicking on ‘Test Connection,’ the download status fails. It is worth noting that the driver for the ESP32 is correctly installed. How can I resolve this issue? When attempting to set up the ESP32-WROOM/ESP32-WROVER board in Simulink using the ‘Setup Hardware’ option, I encounter an error during the final verification step. Specifically, when clicking on ‘Test Connection,’ the download status fails. It is worth noting that the driver for the ESP32 is correctly installed. How can I resolve this issue? esp32, esp32wroom, esp32wrover, arduino, hardwaresetup, setup MATLAB Answers — New Questions
Create Excel Chart with multiple series each with 2 data points
Hello,
I’m trying to create a chart in Excel with several straight lines composed with 2 data points each.
Each costumer has a sell date and sell value, and a purchase date and purchase value. Dates are in the X axis.
I just want that for each customer there is a straight line between sell and purchase value, on their respective dates, for each of the customers.
Is it possible?
I’ve attached an example file here.
Thanks in advance.
Hello, I’m trying to create a chart in Excel with several straight lines composed with 2 data points each. Each costumer has a sell date and sell value, and a purchase date and purchase value. Dates are in the X axis. I just want that for each customer there is a straight line between sell and purchase value, on their respective dates, for each of the customers. Is it possible? I’ve attached an example file here. Thanks in advance. Read More
Reduce Outlook mailbox size while keeping email messages and attachments (and access)
My work email is “Microsoft 365 Apps for business” account, and I’m getting a warning “Your mailbox is almost full”.
I’ve read I basically have four options:
Enable Online Archive.
Increase the mailbox size.
Move messages to a PST.
Third-party email archive solutions.
I would like to manually create a local PST backup. I found this page here: Archive items manually (Outlook for Microsoft 365 Outlook 2021 Outlook 2019 Outlook 2016)
I completed the listed steps… now what? I don’t see any change in the Mailbox size. I didn’t see Outlook “do anything”.
My work email is “Microsoft 365 Apps for business” account, and I’m getting a warning “Your mailbox is almost full”. I’ve read I basically have four options: Enable Online Archive. Increase the mailbox size. Move messages to a PST.Third-party email archive solutions. I would like to manually create a local PST backup. I found this page here: Archive items manually (Outlook for Microsoft 365 Outlook 2021 Outlook 2019 Outlook 2016) I completed the listed steps… now what? I don’t see any change in the Mailbox size. I didn’t see Outlook “do anything”. Read More
How i can add a car image to yellow boxes and at y coordinate 4,5,6 a road image? (Sorry i have low vocabulary of English).
close all;
clc;
loop = 200;
r = 9;
c = 20;
carOccuranceMidWay = 0.05; %0-1
carMoveMidWay = 0.4; %0-1
carMoveFastWay = 0.7; %0-1
carMoveSlowWay = 0.2; %0-1
% define grid
x = zeros(r, c);
figure;
% x(5,1) = 1;
%
for i = 1:loop
for j = 1:c – 1
if(rand <= carOccuranceMidWay && x(5,1) == 0)
x(5,1) = 1;
end
% car exit from highway
if(x(5,c – 1) == 1) %For centerline
x(5,c – 1) = 0;
end
if(x(4,c – 1) == 1) %For FastLane
x(4,c – 1) = 0;
end
if(x(6,c – 1) == 1) %For SlowLane
x(6,c – 1) = 0;
end
% car move
if(x(5, j) == 1 && x(5, j + 1) == 0) % transition rules #1 for centerlane movement
if(rand <= carMoveMidWay)
x(5, j ) = 0;
x(5, j + 1) = 1;
end
end
if(x(5, j) == 1 && x(5, j + 1) == 1 && x(4,j)== 0) % transition rules #2 for transition to FastLane
if(rand <= carMoveMidWay)
x(5, j ) = 0;
x(4, j ) = 1;
end
end
if(x(5, j) == 1 && x(5, j + 1) == 1 && x(6,j)== 0) % transition rules #3 for transition to SlowLane
if(rand <= carMoveMidWay)
x(5, j ) = 0;
x(6, j ) = 1;
end
end
if(x(6, j) == 1 && x(6, j + 1) == 0) % transition rules #4 for SlowLane movement
if(rand <= carMoveSlowWay)
x(6, j ) = 0;
x(6, j + 1) = 1;
end
end
if(x(4, j) == 1 && x(4, j + 1) == 0) % transition rules #5 for FastLane movement
if(rand <= carMoveFastWay)
x(4, j ) = 0;
x(4, j + 1) = 1;
end
end
% Animate
clf; % Clear figure
imagesc(x);
% Display grid
pause(0.01);
end % Pause for 0.01 s
endclose all;
clc;
loop = 200;
r = 9;
c = 20;
carOccuranceMidWay = 0.05; %0-1
carMoveMidWay = 0.4; %0-1
carMoveFastWay = 0.7; %0-1
carMoveSlowWay = 0.2; %0-1
% define grid
x = zeros(r, c);
figure;
% x(5,1) = 1;
%
for i = 1:loop
for j = 1:c – 1
if(rand <= carOccuranceMidWay && x(5,1) == 0)
x(5,1) = 1;
end
% car exit from highway
if(x(5,c – 1) == 1) %For centerline
x(5,c – 1) = 0;
end
if(x(4,c – 1) == 1) %For FastLane
x(4,c – 1) = 0;
end
if(x(6,c – 1) == 1) %For SlowLane
x(6,c – 1) = 0;
end
% car move
if(x(5, j) == 1 && x(5, j + 1) == 0) % transition rules #1 for centerlane movement
if(rand <= carMoveMidWay)
x(5, j ) = 0;
x(5, j + 1) = 1;
end
end
if(x(5, j) == 1 && x(5, j + 1) == 1 && x(4,j)== 0) % transition rules #2 for transition to FastLane
if(rand <= carMoveMidWay)
x(5, j ) = 0;
x(4, j ) = 1;
end
end
if(x(5, j) == 1 && x(5, j + 1) == 1 && x(6,j)== 0) % transition rules #3 for transition to SlowLane
if(rand <= carMoveMidWay)
x(5, j ) = 0;
x(6, j ) = 1;
end
end
if(x(6, j) == 1 && x(6, j + 1) == 0) % transition rules #4 for SlowLane movement
if(rand <= carMoveSlowWay)
x(6, j ) = 0;
x(6, j + 1) = 1;
end
end
if(x(4, j) == 1 && x(4, j + 1) == 0) % transition rules #5 for FastLane movement
if(rand <= carMoveFastWay)
x(4, j ) = 0;
x(4, j + 1) = 1;
end
end
% Animate
clf; % Clear figure
imagesc(x);
% Display grid
pause(0.01);
end % Pause for 0.01 s
end close all;
clc;
loop = 200;
r = 9;
c = 20;
carOccuranceMidWay = 0.05; %0-1
carMoveMidWay = 0.4; %0-1
carMoveFastWay = 0.7; %0-1
carMoveSlowWay = 0.2; %0-1
% define grid
x = zeros(r, c);
figure;
% x(5,1) = 1;
%
for i = 1:loop
for j = 1:c – 1
if(rand <= carOccuranceMidWay && x(5,1) == 0)
x(5,1) = 1;
end
% car exit from highway
if(x(5,c – 1) == 1) %For centerline
x(5,c – 1) = 0;
end
if(x(4,c – 1) == 1) %For FastLane
x(4,c – 1) = 0;
end
if(x(6,c – 1) == 1) %For SlowLane
x(6,c – 1) = 0;
end
% car move
if(x(5, j) == 1 && x(5, j + 1) == 0) % transition rules #1 for centerlane movement
if(rand <= carMoveMidWay)
x(5, j ) = 0;
x(5, j + 1) = 1;
end
end
if(x(5, j) == 1 && x(5, j + 1) == 1 && x(4,j)== 0) % transition rules #2 for transition to FastLane
if(rand <= carMoveMidWay)
x(5, j ) = 0;
x(4, j ) = 1;
end
end
if(x(5, j) == 1 && x(5, j + 1) == 1 && x(6,j)== 0) % transition rules #3 for transition to SlowLane
if(rand <= carMoveMidWay)
x(5, j ) = 0;
x(6, j ) = 1;
end
end
if(x(6, j) == 1 && x(6, j + 1) == 0) % transition rules #4 for SlowLane movement
if(rand <= carMoveSlowWay)
x(6, j ) = 0;
x(6, j + 1) = 1;
end
end
if(x(4, j) == 1 && x(4, j + 1) == 0) % transition rules #5 for FastLane movement
if(rand <= carMoveFastWay)
x(4, j ) = 0;
x(4, j + 1) = 1;
end
end
% Animate
clf; % Clear figure
imagesc(x);
% Display grid
pause(0.01);
end % Pause for 0.01 s
end highway simulation, how to add a car to a box, how to add a car image to a moving plot in matlab, matlab car code MATLAB Answers — New Questions
how to plot contour of 3D variable
HI
I have issue with my data
I have salinity data with dimension (time,Lat,Lon) and I want to plot a filled 3-D contour
I want to plot salinity at specific
timestep 1:13
for example the size of variable
Lat=24*25;
Lon=24*25;
Salinty=744*24*25;
I am getting error becouse the X ,Y and Salinity had different size
I try for loop but it didn’t worke
for i=1:12;
Sal(i,:,:)=Salinity(i,:,:);
figure
contourf(X,Y,Sal(i,:,:);
end
Can someone help?HI
I have issue with my data
I have salinity data with dimension (time,Lat,Lon) and I want to plot a filled 3-D contour
I want to plot salinity at specific
timestep 1:13
for example the size of variable
Lat=24*25;
Lon=24*25;
Salinty=744*24*25;
I am getting error becouse the X ,Y and Salinity had different size
I try for loop but it didn’t worke
for i=1:12;
Sal(i,:,:)=Salinity(i,:,:);
figure
contourf(X,Y,Sal(i,:,:);
end
Can someone help? HI
I have issue with my data
I have salinity data with dimension (time,Lat,Lon) and I want to plot a filled 3-D contour
I want to plot salinity at specific
timestep 1:13
for example the size of variable
Lat=24*25;
Lon=24*25;
Salinty=744*24*25;
I am getting error becouse the X ,Y and Salinity had different size
I try for loop but it didn’t worke
for i=1:12;
Sal(i,:,:)=Salinity(i,:,:);
figure
contourf(X,Y,Sal(i,:,:);
end
Can someone help? contour MATLAB Answers — New Questions
shape has NaN vertices when adding new shapes to the aggregate shape encloses a void; error assigning shape to antenna
I am creating a PCB antenna pattern adding together copper Polygons and rectangles to make the PCB trace pattern. The copper traces short back on themself forming a region with voids in it.
I have used shape.Rectangle() and shape.Polygon() to create the elements and added them together.
When I show the copper it looks right (needs a little cleanup, but OK).
When I show or mesh the antenna it throws a triangulation error.
Adding the last rectangle that closes the shape causes an NaN. This error was NOT happening in another pattern (make a shape, remove a notch from an edge, bridge the notch with a rectangle…).
…
copper = shape.Polygon(‘Vertices’, 0.001*[MinX MinY 0; MinX MaxY 0; MaxX MaxY 0; MaxX MinY 0]);
stem = shape.Rectangle ("Center", 0.001*[StemX MaxY+StemLen/2], ‘Length’, 0.001*StemWid, ‘Width’, 0.001*StemLen);
copper = copper + stem;
… add rectangles till a closed loop is formed. feed point in stem and loading reactance at far end…
…
show(copper); % looks OK other than jagged corners, see below
Ant = customAntenna (‘Shape’, copper, ‘Load’, Load);
show(Ant); % –> error. If commented, mesh(Ant, …) throws similar error (same error, different call back path)
createFeed (Ant, FeedPoint, 1);
meshconfig (Ant, ‘manual’);
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005);
show(Ant) –> error
Error using triangulation
The coordinates of the input points must be finite values; Inf and NaN are not permitted.
Error in customAntenna/createGeometry (line 235)
tri = triangulation(tt.ConnectivityList,vert);
Error in em.MeshGeometry/protectedshow
Error in em.MeshGeometryAnalysis/show (line 31)
protectedshow(obj,varargin{:});
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005); –> error
Error using triangulation
The coordinates of the input points must be finite values; Inf and NaN are not permitted.
Error in customAntenna/createGeometry (line 235)
tri = triangulation(tt.ConnectivityList,vert);
Error in customAntenna/meshGenerator (line 306)
createGeometry(obj);
Error in em.MeshGeometry/updateMesh
Error in em.MeshGeometry/protectedmesh
Error in em.MeshGeometryAnalysis/mesh (line 66)
protectedmesh(obj,varargin{:});
Error in patchNotch (line 89)
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005);I am creating a PCB antenna pattern adding together copper Polygons and rectangles to make the PCB trace pattern. The copper traces short back on themself forming a region with voids in it.
I have used shape.Rectangle() and shape.Polygon() to create the elements and added them together.
When I show the copper it looks right (needs a little cleanup, but OK).
When I show or mesh the antenna it throws a triangulation error.
Adding the last rectangle that closes the shape causes an NaN. This error was NOT happening in another pattern (make a shape, remove a notch from an edge, bridge the notch with a rectangle…).
…
copper = shape.Polygon(‘Vertices’, 0.001*[MinX MinY 0; MinX MaxY 0; MaxX MaxY 0; MaxX MinY 0]);
stem = shape.Rectangle ("Center", 0.001*[StemX MaxY+StemLen/2], ‘Length’, 0.001*StemWid, ‘Width’, 0.001*StemLen);
copper = copper + stem;
… add rectangles till a closed loop is formed. feed point in stem and loading reactance at far end…
…
show(copper); % looks OK other than jagged corners, see below
Ant = customAntenna (‘Shape’, copper, ‘Load’, Load);
show(Ant); % –> error. If commented, mesh(Ant, …) throws similar error (same error, different call back path)
createFeed (Ant, FeedPoint, 1);
meshconfig (Ant, ‘manual’);
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005);
show(Ant) –> error
Error using triangulation
The coordinates of the input points must be finite values; Inf and NaN are not permitted.
Error in customAntenna/createGeometry (line 235)
tri = triangulation(tt.ConnectivityList,vert);
Error in em.MeshGeometry/protectedshow
Error in em.MeshGeometryAnalysis/show (line 31)
protectedshow(obj,varargin{:});
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005); –> error
Error using triangulation
The coordinates of the input points must be finite values; Inf and NaN are not permitted.
Error in customAntenna/createGeometry (line 235)
tri = triangulation(tt.ConnectivityList,vert);
Error in customAntenna/meshGenerator (line 306)
createGeometry(obj);
Error in em.MeshGeometry/updateMesh
Error in em.MeshGeometry/protectedmesh
Error in em.MeshGeometryAnalysis/mesh (line 66)
protectedmesh(obj,varargin{:});
Error in patchNotch (line 89)
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005); I am creating a PCB antenna pattern adding together copper Polygons and rectangles to make the PCB trace pattern. The copper traces short back on themself forming a region with voids in it.
I have used shape.Rectangle() and shape.Polygon() to create the elements and added them together.
When I show the copper it looks right (needs a little cleanup, but OK).
When I show or mesh the antenna it throws a triangulation error.
Adding the last rectangle that closes the shape causes an NaN. This error was NOT happening in another pattern (make a shape, remove a notch from an edge, bridge the notch with a rectangle…).
…
copper = shape.Polygon(‘Vertices’, 0.001*[MinX MinY 0; MinX MaxY 0; MaxX MaxY 0; MaxX MinY 0]);
stem = shape.Rectangle ("Center", 0.001*[StemX MaxY+StemLen/2], ‘Length’, 0.001*StemWid, ‘Width’, 0.001*StemLen);
copper = copper + stem;
… add rectangles till a closed loop is formed. feed point in stem and loading reactance at far end…
…
show(copper); % looks OK other than jagged corners, see below
Ant = customAntenna (‘Shape’, copper, ‘Load’, Load);
show(Ant); % –> error. If commented, mesh(Ant, …) throws similar error (same error, different call back path)
createFeed (Ant, FeedPoint, 1);
meshconfig (Ant, ‘manual’);
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005);
show(Ant) –> error
Error using triangulation
The coordinates of the input points must be finite values; Inf and NaN are not permitted.
Error in customAntenna/createGeometry (line 235)
tri = triangulation(tt.ConnectivityList,vert);
Error in em.MeshGeometry/protectedshow
Error in em.MeshGeometryAnalysis/show (line 31)
protectedshow(obj,varargin{:});
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005); –> error
Error using triangulation
The coordinates of the input points must be finite values; Inf and NaN are not permitted.
Error in customAntenna/createGeometry (line 235)
tri = triangulation(tt.ConnectivityList,vert);
Error in customAntenna/meshGenerator (line 306)
createGeometry(obj);
Error in em.MeshGeometry/updateMesh
Error in em.MeshGeometry/protectedmesh
Error in em.MeshGeometryAnalysis/mesh (line 66)
protectedmesh(obj,varargin{:});
Error in patchNotch (line 89)
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005); customantenna, shape, triangulation error, nan MATLAB Answers — New Questions
Intune scope tags
Hello All,
I am just playing around with my Intune test tenant and experiencing some issues on Scope tag.
Created scope tag 1 which is assigned to admin1 (role – can read and write compliance policies, read and delete devices) (No other roles assigned)
Created scope tag 2 not assigned to any admin
Created compliance policy and removed the default scope tag and added scope tag2. My issue is, still admin 1 was able to read and write this compliance policy. Why this is happening and Am I doing something wrong?
Hello All, I am just playing around with my Intune test tenant and experiencing some issues on Scope tag. Created scope tag 1 which is assigned to admin1 (role – can read and write compliance policies, read and delete devices) (No other roles assigned)Created scope tag 2 not assigned to any admin Created compliance policy and removed the default scope tag and added scope tag2. My issue is, still admin 1 was able to read and write this compliance policy. Why this is happening and Am I doing something wrong? Read More
i have proble applying for developer
i recently tried to apply for the microsoft developer program but microsoft blocks the application althought i put the correct info so is there anything i can do
i recently tried to apply for the microsoft developer program but microsoft blocks the application althought i put the correct info so is there anything i can do Read More
New Windows 11 Pro install won’t let me login via RDP
I have an existing Windows 10 Pro PC that I can remote desktop to from any other Windows PC without any issues.
I just built a new Windows 11 Pro PC and have enabled remote desktop and I can connect and get to a login but the login always fails no matter what I’ve tried.
Both PCs are on the same network. Both are logged with the same account and as far as I can tell, they are configured the same way, but the Windows 11 PC always says the login is incorrect.
What am I missing to get this working it’s pretty important that I can remove into my PC’s as I travel a lot and use them a lot remotely.
I have an existing Windows 10 Pro PC that I can remote desktop to from any other Windows PC without any issues.I just built a new Windows 11 Pro PC and have enabled remote desktop and I can connect and get to a login but the login always fails no matter what I’ve tried.Both PCs are on the same network. Both are logged with the same account and as far as I can tell, they are configured the same way, but the Windows 11 PC always says the login is incorrect.What am I missing to get this working it’s pretty important that I can remove into my PC’s as I travel a lot and use them a lot remotely. Read More
Why i am getting this error when trying to open a simulink test file?
Hi Mathworks Community, I am getting the below error when opening .mldatx simulink test file in matlab:
When opening the file in another account online it works fine, but in my primary account i get this error. Any idea how to resolve this error?Hi Mathworks Community, I am getting the below error when opening .mldatx simulink test file in matlab:
When opening the file in another account online it works fine, but in my primary account i get this error. Any idea how to resolve this error? Hi Mathworks Community, I am getting the below error when opening .mldatx simulink test file in matlab:
When opening the file in another account online it works fine, but in my primary account i get this error. Any idea how to resolve this error? simulink, simulink test, test manager MATLAB Answers — New Questions
Maybe Complex! Dynamic Array Query
I have an input sheet with staff salaries – and starting dates etc to pull in monthly salary costs for forecasting. But also want a ‘profile’ to enable a user to input a revised amount (Usually upward) during the course of the next 2 years from the start of current year. These will be used to override the default amount on the calc sheet
Calc sheet has all the breakdowns of everything. But I am trying now to incorporate the profile from the Input sheet into my basic monthly salary amounts. Looking for something like this. Ignore the combining with default values as this is straightforward. But I need the array of override values as below
I thought this would be quite easy but it seems not. As the periods will change from monthly to 3 monthly, one needs to sum based on dates. I have the start and end of period at the top so can do that. But the array of periods on the calc sheet does not match that on the input sheet which will just allow for 2 years of overrides, after which, simple inflation will kick in. Can’t really forecast salary increases going out more than 2 year and for new starts the default value (not shown here) will be used with a starting date. So this will only be used for changes during the immediate forecast period.
A simple sumifs does actually work for a single row but I want to create a full 2D array.
=SUMIFS(Inputs!$N$72:$AJ$72,Inputs!$N$71#,”>=”&L3#,Inputs!$N$71#,”<“& L4#)
Tried sumproduct also and used MAP function to map the starting ending dates of the periods
=MAP(L3#,L4#,LAMBDA(x,y,SUMPRODUCT(Inputs!$N$72:$AJ$72,(Inputs!$N$71#>=x)*(Inputs!$N$71#<y))))
L3 has the array of period start dates and L4 has the period end dates (Calc sheet). $N72:$AJ$72 holds the range of salaries for the profile and N71 has the header dates for the profile (Inputs sheet). This works fine as does a simpler Sumifs without the need to MAP. BUT. If I change the range of $N72:$AJ$72 to contain more than one row, I get a calc error. So fine on a row by row but can’t get it all in a single 2D array.
I tried ByRow in conjunction but that fails. Seems I can’t combine ByRow with another lambda function say from MAP or such. I also tried using a Reduce with VSTACK. One problem I see is that the array of dates on the profile is not the same as that on the Calc sheet period start & end dates and I can’t see how to align these in a clever way. Its not as easy as just mapping as the profile dates will always be in months but the Calc sheet is dynamic and the current year and forecast years can be set to 1,3,6 or 12 months. I even tried creating a THUNK for one of the lambda functions. But always get the calc error Because only sumifs actually seems to work with 2 dynamic ranges of different sizes, but I can’t use an input array with Sumifs (only a range – but it also deoesnt seem to work with BYROW) and Sumproduct needs me to use a MAP function (or similar) to match the date criteria in one range (actually in 2) to the criteria range of the profile, I can’t see how to avoid double nested lambdas. I was surprised that the ByRow didn’t work as a wrapper around the map and sumproduct (Or sumifs)
Anyhow, I know there are so many super smart people out there, it is probably not that hard but for me, I’ve run out of options to try. I even considered a matrix multiplication but couldn’t get my head around that either!! I’m sure there is a solution using that.
PS. My attached sheet doesn’t use the same refs as described above. I put it together to illustrate the issues. Just took a camera pic and laid it roughly on top of the cells so that the refs – starting ones on some do actually reflect the above.
I have an input sheet with staff salaries – and starting dates etc to pull in monthly salary costs for forecasting. But also want a ‘profile’ to enable a user to input a revised amount (Usually upward) during the course of the next 2 years from the start of current year. These will be used to override the default amount on the calc sheetCalc sheet has all the breakdowns of everything. But I am trying now to incorporate the profile from the Input sheet into my basic monthly salary amounts. Looking for something like this. Ignore the combining with default values as this is straightforward. But I need the array of override values as belowI thought this would be quite easy but it seems not. As the periods will change from monthly to 3 monthly, one needs to sum based on dates. I have the start and end of period at the top so can do that. But the array of periods on the calc sheet does not match that on the input sheet which will just allow for 2 years of overrides, after which, simple inflation will kick in. Can’t really forecast salary increases going out more than 2 year and for new starts the default value (not shown here) will be used with a starting date. So this will only be used for changes during the immediate forecast period.A simple sumifs does actually work for a single row but I want to create a full 2D array.=SUMIFS(Inputs!$N$72:$AJ$72,Inputs!$N$71#,”>=”&L3#,Inputs!$N$71#,”<“& L4#)Tried sumproduct also and used MAP function to map the starting ending dates of the periods=MAP(L3#,L4#,LAMBDA(x,y,SUMPRODUCT(Inputs!$N$72:$AJ$72,(Inputs!$N$71#>=x)*(Inputs!$N$71#<y))))L3 has the array of period start dates and L4 has the period end dates (Calc sheet). $N72:$AJ$72 holds the range of salaries for the profile and N71 has the header dates for the profile (Inputs sheet). This works fine as does a simpler Sumifs without the need to MAP. BUT. If I change the range of $N72:$AJ$72 to contain more than one row, I get a calc error. So fine on a row by row but can’t get it all in a single 2D array. I tried ByRow in conjunction but that fails. Seems I can’t combine ByRow with another lambda function say from MAP or such. I also tried using a Reduce with VSTACK. One problem I see is that the array of dates on the profile is not the same as that on the Calc sheet period start & end dates and I can’t see how to align these in a clever way. Its not as easy as just mapping as the profile dates will always be in months but the Calc sheet is dynamic and the current year and forecast years can be set to 1,3,6 or 12 months. I even tried creating a THUNK for one of the lambda functions. But always get the calc error Because only sumifs actually seems to work with 2 dynamic ranges of different sizes, but I can’t use an input array with Sumifs (only a range – but it also deoesnt seem to work with BYROW) and Sumproduct needs me to use a MAP function (or similar) to match the date criteria in one range (actually in 2) to the criteria range of the profile, I can’t see how to avoid double nested lambdas. I was surprised that the ByRow didn’t work as a wrapper around the map and sumproduct (Or sumifs) Anyhow, I know there are so many super smart people out there, it is probably not that hard but for me, I’ve run out of options to try. I even considered a matrix multiplication but couldn’t get my head around that either!! I’m sure there is a solution using that. PS. My attached sheet doesn’t use the same refs as described above. I put it together to illustrate the issues. Just took a camera pic and laid it roughly on top of the cells so that the refs – starting ones on some do actually reflect the above. Read More
My region is India my funds will be credited to bank account how many days please request you sayin
My funds will be Indian bank account transfer to the bank account how many days please request you saying contact email Id.
My funds will be Indian bank account transfer to the bank account how many days please request you saying contact email Id. Read More
Another, hopefully quick, Dynamic Array question
With a 2D array I wanted to replace any blank values on a row with the previous value. I found this which sort of worked. =SCAN(0, N72:AJ74, LAMBDA(a,v, IF(v=””,a,v)))
However, the accumulator value is carried forward to the next row so if there is a value at the end of the previous row, it is carried forward to the next row as SCAN just works its way through the array. I want to treat each row independently so that there is nothing carried forward to the next row.
I tried with ByRow but this caused a calc error. Couldn’t find a way to ‘get’ the row number or to determine the row had changed and thus be able to set a to 0. Or, to get ByRow to work which would have been the easiest.
This could apply to the MAP function too as getting the row and column index could help determine a new column or row
With a 2D array I wanted to replace any blank values on a row with the previous value. I found this which sort of worked. =SCAN(0, N72:AJ74, LAMBDA(a,v, IF(v=””,a,v)))However, the accumulator value is carried forward to the next row so if there is a value at the end of the previous row, it is carried forward to the next row as SCAN just works its way through the array. I want to treat each row independently so that there is nothing carried forward to the next row.I tried with ByRow but this caused a calc error. Couldn’t find a way to ‘get’ the row number or to determine the row had changed and thus be able to set a to 0. Or, to get ByRow to work which would have been the easiest. This could apply to the MAP function too as getting the row and column index could help determine a new column or row Read More
Azure portal having issue with Latest Edge Beta Build.
Hi. So azure portal giving me errors in console when trying to create a resource. it just keep failing. already reported this issue via feedback, not sure it got fixed or not.
Azure working fine in firefox and Stable edge browser.
Hi. So azure portal giving me errors in console when trying to create a resource. it just keep failing. already reported this issue via feedback, not sure it got fixed or not. Azure working fine in firefox and Stable edge browser. Read More