Month: June 2024
Script to find out if updates are installed on a number of servers
Hello Team,
I found some script which is checking if particular updates have been installed on remote servers. This script might be very helpfull but unfortunatelly it is not working. I’m the beginner and don’t know how to correct it. May I kindly ask you to help me correct it?
$computers=Get-Content .computers.txt
$Kbs=Get-Content .updates.txt
$ErrorActionPreference=“SilentlyContinue”;
ForEach ($computerin$computers) {
add-content“———————— $computer ——————————————————-“-path .hotfixes.txt
ForEach ($Kbin$Kbs) {
$Info=$null
$Info=Get-HotFix-cn$computer-ID“$Kb”
if ($Info-eq$null) {
add-content“$Kb not installed”-path .hotfixes.txt
}
else {
$InstalledDate=$Info.InstalledOn
add-content“$Kb installed $InstalledDate“-path .hotfixes.txt
}
}
}
Thank you in advance.
Hello Team, I found some script which is checking if particular updates have been installed on remote servers. This script might be very helpfull but unfortunatelly it is not working. I’m the beginner and don’t know how to correct it. May I kindly ask you to help me correct it? $computers=Get-Content .computers.txt$Kbs=Get-Content .updates.txt$ErrorActionPreference=“SilentlyContinue”;ForEach ($computerin$computers) {add-content“———————— $computer ——————————————————-“-path .hotfixes.txtForEach ($Kbin$Kbs) {$Info=$null$Info=Get-HotFix-cn$computer-ID“$Kb”if ($Info-eq$null) {add-content“$Kb not installed”-path .hotfixes.txt}else {$InstalledDate=$Info.InstalledOnadd-content“$Kb installed $InstalledDate“-path .hotfixes.txt}}} Thank you in advance. Read More
Error overwriting array when using Simulink
The following error I get when running the model:
An error occurred while running the simulation and the simulation was terminated
Caused by: Size mismatch for MATLAB expression ‘array’. Expected = 1×100 Actual = 1×1
The model includes two functions: (1) adding and (2) deleting elements from the array in a base workspace. Fixed-step solver is set for the model, so a new elements is added (or an existing element is removed) each tick.
Then, both functions use a class with the following methods: declare the array, add/delete an element, refresh the array. In the functions I use a persistent variable for the class.
The functions and class work properly via Command Window. But that error occurs if the functions call from the Simulink model. It happens when the array refresh method is used.
Instead of using the array refresh method, I tried to use a global variable. It also works to me via the Command Window, however other errors happen to Simulink:
Global declaration not resolved to a Data Store Memory block registered via the Ports and Data Manager.The following error I get when running the model:
An error occurred while running the simulation and the simulation was terminated
Caused by: Size mismatch for MATLAB expression ‘array’. Expected = 1×100 Actual = 1×1
The model includes two functions: (1) adding and (2) deleting elements from the array in a base workspace. Fixed-step solver is set for the model, so a new elements is added (or an existing element is removed) each tick.
Then, both functions use a class with the following methods: declare the array, add/delete an element, refresh the array. In the functions I use a persistent variable for the class.
The functions and class work properly via Command Window. But that error occurs if the functions call from the Simulink model. It happens when the array refresh method is used.
Instead of using the array refresh method, I tried to use a global variable. It also works to me via the Command Window, however other errors happen to Simulink:
Global declaration not resolved to a Data Store Memory block registered via the Ports and Data Manager. The following error I get when running the model:
An error occurred while running the simulation and the simulation was terminated
Caused by: Size mismatch for MATLAB expression ‘array’. Expected = 1×100 Actual = 1×1
The model includes two functions: (1) adding and (2) deleting elements from the array in a base workspace. Fixed-step solver is set for the model, so a new elements is added (or an existing element is removed) each tick.
Then, both functions use a class with the following methods: declare the array, add/delete an element, refresh the array. In the functions I use a persistent variable for the class.
The functions and class work properly via Command Window. But that error occurs if the functions call from the Simulink model. It happens when the array refresh method is used.
Instead of using the array refresh method, I tried to use a global variable. It also works to me via the Command Window, however other errors happen to Simulink:
Global declaration not resolved to a Data Store Memory block registered via the Ports and Data Manager. array, simulink, variable, arrays, variables, class MATLAB Answers — New Questions
How can I “connect” the colorbar to my values of a scatter plot?
How can I "connect" the colorbar to my values (between 0 and 1) of a scatter plot?
a = rand(1000,1);
C = 1-[a a a];
scatter(1:length(a),a,60,C,’fill’)
colormap(C);
colorbar;
Here you can see that the colorbar is not gradually changing from 0 to 1.. How to fix it?How can I "connect" the colorbar to my values (between 0 and 1) of a scatter plot?
a = rand(1000,1);
C = 1-[a a a];
scatter(1:length(a),a,60,C,’fill’)
colormap(C);
colorbar;
Here you can see that the colorbar is not gradually changing from 0 to 1.. How to fix it? How can I "connect" the colorbar to my values (between 0 and 1) of a scatter plot?
a = rand(1000,1);
C = 1-[a a a];
scatter(1:length(a),a,60,C,’fill’)
colormap(C);
colorbar;
Here you can see that the colorbar is not gradually changing from 0 to 1.. How to fix it? colorbar, colormap, scatter MATLAB Answers — New Questions
lines between rows and columns
I had to move information from one row to another to keep it in alphabetical order but now some of the rows and columns don’t have lines between them. How do I get the lines back?
I had to move information from one row to another to keep it in alphabetical order but now some of the rows and columns don’t have lines between them. How do I get the lines back? Read More
2FA Requirement Preventing Me Getting Support
Any idea how I can get support to contact me? I’m a member of th eMicrosoft Partner Program and earlier this year I contacted them asking them to not turn on 2FA on my account; we manage our security ourselves etc.
Now, it seems I cannot login to the portal without setting up Authenticator. I can’t contact them because the only way to contact them is by logging in.
Any ideas? I’ve contacted them using the information on this page https://support.microsoft.com/en-au/topic/global-customer-service-phone-numbers-c0389ade-5640-e588-8b0e-28de8afeb3f2 but it’s some useless AI menu that doesn’t allow me to speak to a human. I’ve tried to re-open my previous ticket and they are ignoring me.
Any idea how I can get support to contact me? I’m a member of th eMicrosoft Partner Program and earlier this year I contacted them asking them to not turn on 2FA on my account; we manage our security ourselves etc. Now, it seems I cannot login to the portal without setting up Authenticator. I can’t contact them because the only way to contact them is by logging in. Any ideas? I’ve contacted them using the information on this page https://support.microsoft.com/en-au/topic/global-customer-service-phone-numbers-c0389ade-5640-e588-8b0e-28de8afeb3f2 but it’s some useless AI menu that doesn’t allow me to speak to a human. I’ve tried to re-open my previous ticket and they are ignoring me. Read More
why do I got such a low score when i use bench function in matlab2024a
when I was using MATLAB 2024A, it often got stuck, and then became normal after a few seconds . this was very different from my previous experience, and I feel my progam runs very slowly. So I ran the bench function and found that the score was terrible, and I don’t understand why this is happending ……when I was using MATLAB 2024A, it often got stuck, and then became normal after a few seconds . this was very different from my previous experience, and I feel my progam runs very slowly. So I ran the bench function and found that the score was terrible, and I don’t understand why this is happending …… when I was using MATLAB 2024A, it often got stuck, and then became normal after a few seconds . this was very different from my previous experience, and I feel my progam runs very slowly. So I ran the bench function and found that the score was terrible, and I don’t understand why this is happending …… bench MATLAB Answers — New Questions
Stateflow use custom C code, while generating C++ using Embedded coder
Hi, I’m using Stateflow inside simulink. I used some C functions as custom code using this article, and also I want to generate a C++ code based on my model and chart using Embedded Coder. The code generates fine, but it can not be compiled because of undefined reference linker error.
After some investigation, I found that there is no extern "C" guard for C header related to custom code in the C++ header of the generated code. After I added extern manually, linker error fixed.
My question, is about some configs or checkbox to use and having C custom code, while generating C++ code (embedded coder).
thanksHi, I’m using Stateflow inside simulink. I used some C functions as custom code using this article, and also I want to generate a C++ code based on my model and chart using Embedded Coder. The code generates fine, but it can not be compiled because of undefined reference linker error.
After some investigation, I found that there is no extern "C" guard for C header related to custom code in the C++ header of the generated code. After I added extern manually, linker error fixed.
My question, is about some configs or checkbox to use and having C custom code, while generating C++ code (embedded coder).
thanks Hi, I’m using Stateflow inside simulink. I used some C functions as custom code using this article, and also I want to generate a C++ code based on my model and chart using Embedded Coder. The code generates fine, but it can not be compiled because of undefined reference linker error.
After some investigation, I found that there is no extern "C" guard for C header related to custom code in the C++ header of the generated code. After I added extern manually, linker error fixed.
My question, is about some configs or checkbox to use and having C custom code, while generating C++ code (embedded coder).
thanks custom code, code generation, linker error, c/c++ MATLAB Answers — New Questions
excel calendar add worksheet
I have an excel workbook with several tabs – one per month. I need to add the rest of the year and I can’t see any way.
I have an excel workbook with several tabs – one per month. I need to add the rest of the year and I can’t see any way. Read More
Help with tallying votes
Hello, I am the secretary of a car club. We hold an annual car show. I would like to create an excel spreadsheet that would list cars 1 through 200. each car needs 3 categories attached to it.
Then, either on the same sheet or a second sheet I’d like to be able to collect the paper ballet from the voter and enter, as an example, that the voter choose car number 10 for category 1, car number 80 for category 2, and car number 115 for category 3. Once I enter those values it would automatically tally on the first sheet.
Hello, I am the secretary of a car club. We hold an annual car show. I would like to create an excel spreadsheet that would list cars 1 through 200. each car needs 3 categories attached to it. Then, either on the same sheet or a second sheet I’d like to be able to collect the paper ballet from the voter and enter, as an example, that the voter choose car number 10 for category 1, car number 80 for category 2, and car number 115 for category 3. Once I enter those values it would automatically tally on the first sheet. Read More
Deleting unwanted parts of a line
I have an address list, name, address, phone number. I want to keep just the name. The non-name part of the line begins with a digit. I wish I could find that first digit, and delete the rest of the line.
I appreciate any help.
I have an address list, name, address, phone number. I want to keep just the name. The non-name part of the line begins with a digit. I wish I could find that first digit, and delete the rest of the line. I appreciate any help. Read More
Downloading EEG LAB Plug Ins
I am trying to download EEG LAB plugins and I keep getting an error code that I do not have permission to do this. Has anyone encountered this? How do I fix it?I am trying to download EEG LAB plugins and I keep getting an error code that I do not have permission to do this. Has anyone encountered this? How do I fix it? I am trying to download EEG LAB plugins and I keep getting an error code that I do not have permission to do this. Has anyone encountered this? How do I fix it? eeglab plugins MATLAB Answers — New Questions
Incorrect results of inverse tall array
Hi,
I am using tall array and testing the inverse of A? (pseudo inverse). The system is linear Ax=b. A:245*9, x: 9*1, b:245*1.
However, with the same matrices, the results of gather(A/b) is incorrect, 1st to 7th elements are NaN, 8th is -inf. The last one is the same with non-tall array results.
A_ds = arrayDatastore([C d], "OutputType","same");
At = tall(A_ds);
A = At(:,1:9);
B1 = At(:,10);
X=AB1; % solve X in equation A*X=B1
X_1=gather(X);
Y=Cd; % solve X in non-tall array, benchmark
Any one can help this case?
Thanks in advance.Hi,
I am using tall array and testing the inverse of A? (pseudo inverse). The system is linear Ax=b. A:245*9, x: 9*1, b:245*1.
However, with the same matrices, the results of gather(A/b) is incorrect, 1st to 7th elements are NaN, 8th is -inf. The last one is the same with non-tall array results.
A_ds = arrayDatastore([C d], "OutputType","same");
At = tall(A_ds);
A = At(:,1:9);
B1 = At(:,10);
X=AB1; % solve X in equation A*X=B1
X_1=gather(X);
Y=Cd; % solve X in non-tall array, benchmark
Any one can help this case?
Thanks in advance. Hi,
I am using tall array and testing the inverse of A? (pseudo inverse). The system is linear Ax=b. A:245*9, x: 9*1, b:245*1.
However, with the same matrices, the results of gather(A/b) is incorrect, 1st to 7th elements are NaN, 8th is -inf. The last one is the same with non-tall array results.
A_ds = arrayDatastore([C d], "OutputType","same");
At = tall(A_ds);
A = At(:,1:9);
B1 = At(:,10);
X=AB1; % solve X in equation A*X=B1
X_1=gather(X);
Y=Cd; % solve X in non-tall array, benchmark
Any one can help this case?
Thanks in advance. matlab, matrix, tall array MATLAB Answers — New Questions
Is there any way to speed up the function `changem`?
I am doing some substitutions of the index of triangle mesh. After removing or selecting some points on the mesh, I need to "retrench" the connectivitylist. I always using changem to achieve this. Like below,
function TR1 = simpleTR(TR)
node_idx = unique(TR.ConnectivityList);
node1 = TR.Points(node_idx,:);
node_idx1 = 1:size(node1,1);
face1 = changem(TR.ConnectivityList,node_idx1′,node_idx);
TR1 = triangulation(face1,node1);
end
I found the speed of this is slow when the input TR is big. In profiling, the code in changem below takes the most of time.
B(A == oldval(k)) = newval(k);
Is there any way to accelerate this?
———————-edit for @Cam Salzberger comment———————————————
I would like to clarify my problem in two aspects. One is the bigger picture, which is what I would like to do with the codes. The other is the problem of changem.
1. The goal of my codes is to make a new triangle mesh. The new mesh has fewer vertices(TR.Points) than the original one, after I deleted some vertex of it. The index of the faces (TR.ConnectivityList) should be "retrench", that is, the range of the faces (TR.ConnectivityList) will be smaller. See the example below, which is from matlab page,triangulation
% the original mesh
P = [ 2.5 8.0
6.5 8.0
2.5 5.0
6.5 5.0
1.0 6.5
8.0 6.5];
T = [5 3 1;
3 2 1;
3 4 2;
4 6 2];
TR = triangulation(T,P)
triplot(TR)
Now I delete the 5th vertex. The new mesh should be,
T_new = [ 3 2 1;
3 4 2;
4 6 2];
TR1a = triangulation(T_new,P);% some vertices is not referenced
TR1b = simpleTR(TR1a); % the content is above
%>> TR1b.Points
ans =
2.5 8
6.5 8
2.5 5
6.5 5
8 6.5
%>> TR1b.ConnectivityList
ans =
3 2 1
3 4 2
4 5 2
In the process, I need to replace "6" with "5" with changem. In practise, I have to changem many number for a large mesh.
2. For the problem of changem. In this function, I found it did a loop for "find" and "change value" combination.
B(A == oldval(k)) = newval(k);
I believe it has some chance to improve. Because it seems in every loop, it traverses through all of the elements in the matrix(TR.ConnectivityList). I think this way may be imperfect. It may use some hashtable-like thing to do it., which could be done in one loop.
All of this is my guess. Thank you for any suggestions.I am doing some substitutions of the index of triangle mesh. After removing or selecting some points on the mesh, I need to "retrench" the connectivitylist. I always using changem to achieve this. Like below,
function TR1 = simpleTR(TR)
node_idx = unique(TR.ConnectivityList);
node1 = TR.Points(node_idx,:);
node_idx1 = 1:size(node1,1);
face1 = changem(TR.ConnectivityList,node_idx1′,node_idx);
TR1 = triangulation(face1,node1);
end
I found the speed of this is slow when the input TR is big. In profiling, the code in changem below takes the most of time.
B(A == oldval(k)) = newval(k);
Is there any way to accelerate this?
———————-edit for @Cam Salzberger comment———————————————
I would like to clarify my problem in two aspects. One is the bigger picture, which is what I would like to do with the codes. The other is the problem of changem.
1. The goal of my codes is to make a new triangle mesh. The new mesh has fewer vertices(TR.Points) than the original one, after I deleted some vertex of it. The index of the faces (TR.ConnectivityList) should be "retrench", that is, the range of the faces (TR.ConnectivityList) will be smaller. See the example below, which is from matlab page,triangulation
% the original mesh
P = [ 2.5 8.0
6.5 8.0
2.5 5.0
6.5 5.0
1.0 6.5
8.0 6.5];
T = [5 3 1;
3 2 1;
3 4 2;
4 6 2];
TR = triangulation(T,P)
triplot(TR)
Now I delete the 5th vertex. The new mesh should be,
T_new = [ 3 2 1;
3 4 2;
4 6 2];
TR1a = triangulation(T_new,P);% some vertices is not referenced
TR1b = simpleTR(TR1a); % the content is above
%>> TR1b.Points
ans =
2.5 8
6.5 8
2.5 5
6.5 5
8 6.5
%>> TR1b.ConnectivityList
ans =
3 2 1
3 4 2
4 5 2
In the process, I need to replace "6" with "5" with changem. In practise, I have to changem many number for a large mesh.
2. For the problem of changem. In this function, I found it did a loop for "find" and "change value" combination.
B(A == oldval(k)) = newval(k);
I believe it has some chance to improve. Because it seems in every loop, it traverses through all of the elements in the matrix(TR.ConnectivityList). I think this way may be imperfect. It may use some hashtable-like thing to do it., which could be done in one loop.
All of this is my guess. Thank you for any suggestions. I am doing some substitutions of the index of triangle mesh. After removing or selecting some points on the mesh, I need to "retrench" the connectivitylist. I always using changem to achieve this. Like below,
function TR1 = simpleTR(TR)
node_idx = unique(TR.ConnectivityList);
node1 = TR.Points(node_idx,:);
node_idx1 = 1:size(node1,1);
face1 = changem(TR.ConnectivityList,node_idx1′,node_idx);
TR1 = triangulation(face1,node1);
end
I found the speed of this is slow when the input TR is big. In profiling, the code in changem below takes the most of time.
B(A == oldval(k)) = newval(k);
Is there any way to accelerate this?
———————-edit for @Cam Salzberger comment———————————————
I would like to clarify my problem in two aspects. One is the bigger picture, which is what I would like to do with the codes. The other is the problem of changem.
1. The goal of my codes is to make a new triangle mesh. The new mesh has fewer vertices(TR.Points) than the original one, after I deleted some vertex of it. The index of the faces (TR.ConnectivityList) should be "retrench", that is, the range of the faces (TR.ConnectivityList) will be smaller. See the example below, which is from matlab page,triangulation
% the original mesh
P = [ 2.5 8.0
6.5 8.0
2.5 5.0
6.5 5.0
1.0 6.5
8.0 6.5];
T = [5 3 1;
3 2 1;
3 4 2;
4 6 2];
TR = triangulation(T,P)
triplot(TR)
Now I delete the 5th vertex. The new mesh should be,
T_new = [ 3 2 1;
3 4 2;
4 6 2];
TR1a = triangulation(T_new,P);% some vertices is not referenced
TR1b = simpleTR(TR1a); % the content is above
%>> TR1b.Points
ans =
2.5 8
6.5 8
2.5 5
6.5 5
8 6.5
%>> TR1b.ConnectivityList
ans =
3 2 1
3 4 2
4 5 2
In the process, I need to replace "6" with "5" with changem. In practise, I have to changem many number for a large mesh.
2. For the problem of changem. In this function, I found it did a loop for "find" and "change value" combination.
B(A == oldval(k)) = newval(k);
I believe it has some chance to improve. Because it seems in every loop, it traverses through all of the elements in the matrix(TR.ConnectivityList). I think this way may be imperfect. It may use some hashtable-like thing to do it., which could be done in one loop.
All of this is my guess. Thank you for any suggestions. speed, changem, index MATLAB Answers — New Questions
VSTAMajorVersion – SQL Server x Visual Studio
Hello,
Please, I need some help, on my machine I have installed:
1. SQL Server 2019 RTM- CU16 – GRD / catálogo environment with shared_component_version 15.0.4236.7
2. Visual Studio 2019 ( version 16.11.19) with Visual Studio tools for applications 2019 ( 16.0.3.1110)
When on VS 2019 I import a package from integration catalog (SQL 2019) the VSTAMajorVersion is equal 16.
If I try to open a script task from this package I get error message in Visual Studio 2019:
” XML: Sustem.Exception: The script Task ST_.……… Uses version 16.0 script that IS not supported in this release of Integration Services. To run the package, use the Script Task to create a new VSTA script. In most cases Scripts até converted automatically to use a supported version, when you open a SQL Server Integration Services package in %SQL_Product_Short_Name% Integration Services”.
And script task lost all code and configurations.
If I changed the VSTAMajorVersion to 15 in the code (XML) package before open script task works.
But it’s a problem: changed It all packages all the time after importes :(.
Ps: If I created a new package with script task the VSTAMajorVersion is equal 15 even though the TargetServerVersion property from my integration services project = ” SQL Server 2019″.
Hello, Please, I need some help, on my machine I have installed: 1. SQL Server 2019 RTM- CU16 – GRD / catálogo environment with shared_component_version 15.0.4236.7 2. Visual Studio 2019 ( version 16.11.19) with Visual Studio tools for applications 2019 ( 16.0.3.1110) When on VS 2019 I import a package from integration catalog (SQL 2019) the VSTAMajorVersion is equal 16. If I try to open a script task from this package I get error message in Visual Studio 2019:” XML: Sustem.Exception: The script Task ST_.……… Uses version 16.0 script that IS not supported in this release of Integration Services. To run the package, use the Script Task to create a new VSTA script. In most cases Scripts até converted automatically to use a supported version, when you open a SQL Server Integration Services package in %SQL_Product_Short_Name% Integration Services”. And script task lost all code and configurations. If I changed the VSTAMajorVersion to 15 in the code (XML) package before open script task works. But it’s a problem: changed It all packages all the time after importes :(. Ps: If I created a new package with script task the VSTAMajorVersion is equal 15 even though the TargetServerVersion property from my integration services project = ” SQL Server 2019″. Read More
Files or Folders are missing from SharePoint
Hello
Please i need your help on this issue.
Files or Folders are missing from SharePoint.
I need to recover missing files.
Hello Please i need your help on this issue. Files or Folders are missing from SharePoint. I need to recover missing files. Read More
save (e.g. gif) a rotation of a 3D geometry around to an axis
I would like to rotate the 3D geometry of a cube around two known nodes.
How can I modify the code?
% ======== CUBE
xc=1; yc=1; zc=1; % coordinated of the center
L=10; % cube size (length of an edge)
alpha=0.8; % transparency (max=1=opaque)
X = [0 0 0 0 0 1; 1 0 1 1 1 1; 1 0 1 1 1 1; 0 0 0 0 0 1];
Y = [0 0 0 0 1 0; 0 1 0 0 1 1; 0 1 1 1 1 1; 0 0 1 1 1 0];
Z = [0 0 1 0 0 0; 0 0 1 0 0 0; 1 1 1 0 1 1; 1 1 1 0 1 1];
C=’blue’; % unicolor
X = L*(X-0.5) + xc;
Y = L*(Y-0.5) + yc;
Z = L*(Z-0.5) + zc;
fill3(X,Y,Z,C,’FaceAlpha’,alpha); % draw cube
axis equal
% ======== NODES x ROTATION
axes_2_nodes = [-4,-4,6; -4,-4,-4];
% ======== ROTATION
set(gcf, ‘Color’, [1 1 1])
set(gca, ‘Visible’, ‘off’);
for i=1:5:300
view(i,33)
pause(0.15)
endI would like to rotate the 3D geometry of a cube around two known nodes.
How can I modify the code?
% ======== CUBE
xc=1; yc=1; zc=1; % coordinated of the center
L=10; % cube size (length of an edge)
alpha=0.8; % transparency (max=1=opaque)
X = [0 0 0 0 0 1; 1 0 1 1 1 1; 1 0 1 1 1 1; 0 0 0 0 0 1];
Y = [0 0 0 0 1 0; 0 1 0 0 1 1; 0 1 1 1 1 1; 0 0 1 1 1 0];
Z = [0 0 1 0 0 0; 0 0 1 0 0 0; 1 1 1 0 1 1; 1 1 1 0 1 1];
C=’blue’; % unicolor
X = L*(X-0.5) + xc;
Y = L*(Y-0.5) + yc;
Z = L*(Z-0.5) + zc;
fill3(X,Y,Z,C,’FaceAlpha’,alpha); % draw cube
axis equal
% ======== NODES x ROTATION
axes_2_nodes = [-4,-4,6; -4,-4,-4];
% ======== ROTATION
set(gcf, ‘Color’, [1 1 1])
set(gca, ‘Visible’, ‘off’);
for i=1:5:300
view(i,33)
pause(0.15)
end I would like to rotate the 3D geometry of a cube around two known nodes.
How can I modify the code?
% ======== CUBE
xc=1; yc=1; zc=1; % coordinated of the center
L=10; % cube size (length of an edge)
alpha=0.8; % transparency (max=1=opaque)
X = [0 0 0 0 0 1; 1 0 1 1 1 1; 1 0 1 1 1 1; 0 0 0 0 0 1];
Y = [0 0 0 0 1 0; 0 1 0 0 1 1; 0 1 1 1 1 1; 0 0 1 1 1 0];
Z = [0 0 1 0 0 0; 0 0 1 0 0 0; 1 1 1 0 1 1; 1 1 1 0 1 1];
C=’blue’; % unicolor
X = L*(X-0.5) + xc;
Y = L*(Y-0.5) + yc;
Z = L*(Z-0.5) + zc;
fill3(X,Y,Z,C,’FaceAlpha’,alpha); % draw cube
axis equal
% ======== NODES x ROTATION
axes_2_nodes = [-4,-4,6; -4,-4,-4];
% ======== ROTATION
set(gcf, ‘Color’, [1 1 1])
set(gca, ‘Visible’, ‘off’);
for i=1:5:300
view(i,33)
pause(0.15)
end rotation, 3d, 3d plots MATLAB Answers — New Questions
Error installing Arduino Add on to MATLAB 2019b
Hey,
I am trying to install Arduino add on to MATLAB 2019b. But I am getting following error ‘The serial interface is not supported on board Due/UNO’. I tried the same with Arduino DUW and Arduino UNO as well. How can I correct this error.
Attached is the screenshot of the error window.Hey,
I am trying to install Arduino add on to MATLAB 2019b. But I am getting following error ‘The serial interface is not supported on board Due/UNO’. I tried the same with Arduino DUW and Arduino UNO as well. How can I correct this error.
Attached is the screenshot of the error window. Hey,
I am trying to install Arduino add on to MATLAB 2019b. But I am getting following error ‘The serial interface is not supported on board Due/UNO’. I tried the same with Arduino DUW and Arduino UNO as well. How can I correct this error.
Attached is the screenshot of the error window. matlab 2019b, arduino uno MATLAB Answers — New Questions
New Sharepoint List form width issue
Hi, I have a Sharepoint list and I have customized the Sharepoint list form header and body with Json code. Recently due to change the Microsoft sharepoint forms it’s showing a small form in the middle without being connected to the page. Any way to go back to large form with width ? Any solution will be highly appreciated.
Hi, I have a Sharepoint list and I have customized the Sharepoint list form header and body with Json code. Recently due to change the Microsoft sharepoint forms it’s showing a small form in the middle without being connected to the page. Any way to go back to large form with width ? Any solution will be highly appreciated. Read More
excell logical functions based on cell fill color
I would like to use the countif function with a criteria based on the cell’s fill color.
I would like to use the countif function with a criteria based on the cell’s fill color. Read More
Hidden Size in autoencoder
Hi everyone,
I am looking for a formula to determine the maximum allowable hidden size in an Autoencoder. I came across the following heuristic:
hiddenSize=round(n×numFeatures)
However, I haven’t been able to find a specific reference to cite for this formula.
I would appreciate any guidance or references that could help me adjust the hidden size in an Autoencoder effectively.
Thanks in advance for your assistance.Hi everyone,
I am looking for a formula to determine the maximum allowable hidden size in an Autoencoder. I came across the following heuristic:
hiddenSize=round(n×numFeatures)
However, I haven’t been able to find a specific reference to cite for this formula.
I would appreciate any guidance or references that could help me adjust the hidden size in an Autoencoder effectively.
Thanks in advance for your assistance. Hi everyone,
I am looking for a formula to determine the maximum allowable hidden size in an Autoencoder. I came across the following heuristic:
hiddenSize=round(n×numFeatures)
However, I haven’t been able to find a specific reference to cite for this formula.
I would appreciate any guidance or references that could help me adjust the hidden size in an Autoencoder effectively.
Thanks in advance for your assistance. autoencoder MATLAB Answers — New Questions