Month: June 2024
Phased Array antenna design
Hello all,
I am designing one phased array antenna design for one of our product.
Currently I am designing array antenna with 12×8 array struture and subarray with 3×1 structure. So, we will be having 4 sub array on one row. That is 4 subarray with 3 elements i.e.total 12 vertical elements on one row and 8 horizontal elements.
I would like to perform array simulation with amplitude tapering and phase excitation with both dolph chebyshev and taylor window for one complete vertical elements i.e N= 12, with required side lobe level (SLL) as around 25dB
If we could get the amplitude tapering and phase excitation values , is it possible to optimize the tapering with proer ratio for each subarray because i need to design the power divider with 3X1 elements, however, the power ratio should be similar for all other sub arrays? Is it possible in the MATLAB?
Could you please help me to work with some examples specifically on the amplitude tapering and phase exitaions?
Is there any custumized Matlab scripted tool to design phased array antenna design with vertical and horizonatal steering?
Could you please give me the valuable support on this?Hello all,
I am designing one phased array antenna design for one of our product.
Currently I am designing array antenna with 12×8 array struture and subarray with 3×1 structure. So, we will be having 4 sub array on one row. That is 4 subarray with 3 elements i.e.total 12 vertical elements on one row and 8 horizontal elements.
I would like to perform array simulation with amplitude tapering and phase excitation with both dolph chebyshev and taylor window for one complete vertical elements i.e N= 12, with required side lobe level (SLL) as around 25dB
If we could get the amplitude tapering and phase excitation values , is it possible to optimize the tapering with proer ratio for each subarray because i need to design the power divider with 3X1 elements, however, the power ratio should be similar for all other sub arrays? Is it possible in the MATLAB?
Could you please help me to work with some examples specifically on the amplitude tapering and phase exitaions?
Is there any custumized Matlab scripted tool to design phased array antenna design with vertical and horizonatal steering?
Could you please give me the valuable support on this? Hello all,
I am designing one phased array antenna design for one of our product.
Currently I am designing array antenna with 12×8 array struture and subarray with 3×1 structure. So, we will be having 4 sub array on one row. That is 4 subarray with 3 elements i.e.total 12 vertical elements on one row and 8 horizontal elements.
I would like to perform array simulation with amplitude tapering and phase excitation with both dolph chebyshev and taylor window for one complete vertical elements i.e N= 12, with required side lobe level (SLL) as around 25dB
If we could get the amplitude tapering and phase excitation values , is it possible to optimize the tapering with proer ratio for each subarray because i need to design the power divider with 3X1 elements, however, the power ratio should be similar for all other sub arrays? Is it possible in the MATLAB?
Could you please help me to work with some examples specifically on the amplitude tapering and phase exitaions?
Is there any custumized Matlab scripted tool to design phased array antenna design with vertical and horizonatal steering?
Could you please give me the valuable support on this? phased array antenna, amplitude tapering for sub array, phase excitation MATLAB Answers — New Questions
Integrator does not accept input
Hello, I’m trying make a model in simulink of an inverted pendulum and I can’t simulate the space state. It’s still telling me about that the integrator does not accept the input. Does anyone know what do to in this situation?
The formula that I’m trying to simulate:
Simulation:
The error:
Matlab code:
%%Parameters
Mp = 0.272;
dM = 0.071;
g = 9.81;
J = 0.002;
Jw = 3.941*10^-5;
b_theta = 0.82*10^-3;
b_altha_kmke_Ra = 1.202*10^-4;
km_Ra = 1.837*10^-4;
%%Matrice
A = [0 1 0 0;
(Mp*dM*g)/J -(b_theta)/J 0 1/J*b_altha_kmke_Ra;
0 0 0 1;
-(Mp*g*dM)/J b_theta/J 0 -(J+Jw)/(J*Jw)*b_altha_kmke_Ra];
B = [0 0;
-1/J*km_Ra 1/J;
0 0;
(J+Jw)/(J*Jw)*km_Ra -1/J]
C = [1 0 0 0;
0 1 0 0;
0 0 1 0;
0 0 0 0];
D = [0 0; 0 0;0 0;0 0];
%%Build system
sys = ss(A,B,C,D);
x0 = [5*pi/180;0;0;0]; %initial condition for the integratorHello, I’m trying make a model in simulink of an inverted pendulum and I can’t simulate the space state. It’s still telling me about that the integrator does not accept the input. Does anyone know what do to in this situation?
The formula that I’m trying to simulate:
Simulation:
The error:
Matlab code:
%%Parameters
Mp = 0.272;
dM = 0.071;
g = 9.81;
J = 0.002;
Jw = 3.941*10^-5;
b_theta = 0.82*10^-3;
b_altha_kmke_Ra = 1.202*10^-4;
km_Ra = 1.837*10^-4;
%%Matrice
A = [0 1 0 0;
(Mp*dM*g)/J -(b_theta)/J 0 1/J*b_altha_kmke_Ra;
0 0 0 1;
-(Mp*g*dM)/J b_theta/J 0 -(J+Jw)/(J*Jw)*b_altha_kmke_Ra];
B = [0 0;
-1/J*km_Ra 1/J;
0 0;
(J+Jw)/(J*Jw)*km_Ra -1/J]
C = [1 0 0 0;
0 1 0 0;
0 0 1 0;
0 0 0 0];
D = [0 0; 0 0;0 0;0 0];
%%Build system
sys = ss(A,B,C,D);
x0 = [5*pi/180;0;0;0]; %initial condition for the integrator Hello, I’m trying make a model in simulink of an inverted pendulum and I can’t simulate the space state. It’s still telling me about that the integrator does not accept the input. Does anyone know what do to in this situation?
The formula that I’m trying to simulate:
Simulation:
The error:
Matlab code:
%%Parameters
Mp = 0.272;
dM = 0.071;
g = 9.81;
J = 0.002;
Jw = 3.941*10^-5;
b_theta = 0.82*10^-3;
b_altha_kmke_Ra = 1.202*10^-4;
km_Ra = 1.837*10^-4;
%%Matrice
A = [0 1 0 0;
(Mp*dM*g)/J -(b_theta)/J 0 1/J*b_altha_kmke_Ra;
0 0 0 1;
-(Mp*g*dM)/J b_theta/J 0 -(J+Jw)/(J*Jw)*b_altha_kmke_Ra];
B = [0 0;
-1/J*km_Ra 1/J;
0 0;
(J+Jw)/(J*Jw)*km_Ra -1/J]
C = [1 0 0 0;
0 1 0 0;
0 0 1 0;
0 0 0 0];
D = [0 0; 0 0;0 0;0 0];
%%Build system
sys = ss(A,B,C,D);
x0 = [5*pi/180;0;0;0]; %initial condition for the integrator simulink, equation MATLAB Answers — New Questions
Dotnet core Oracle 23c SSL connection not working on Linux environment and works on Windows
Our data direct ADO.NET oracle driver is having an issue with SSL connection on Linux platform and the same connection is working on windows environment with Oracle23c server.
Are there any known limitations with dotnet core on linux environment with SSL/TLS connections.
Trace :
InnerException: System.IO.IOException
Message: Unable to read data from the transport connection: Connection reset by peer.
Source: System.Net.Sockets
Stack Trace
at System.Net.Sockets.NetworkStream.Read(Span`1 buffer)
at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter)
at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory`1 buffer)
at System.Net.Security.SslStream.Read(Byte[] buffer, Int32 offset, Int32 count)
The same application works on Windows environment.
Our data direct ADO.NET oracle driver is having an issue with SSL connection on Linux platform and the same connection is working on windows environment with Oracle23c server. Are there any known limitations with dotnet core on linux environment with SSL/TLS connections. Trace : InnerException: System.IO.IOExceptionMessage: Unable to read data from the transport connection: Connection reset by peer.Source: System.Net.SocketsStack Traceat System.Net.Sockets.NetworkStream.Read(Span`1 buffer)at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter)at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory`1 buffer)at System.Net.Security.SslStream.Read(Byte[] buffer, Int32 offset, Int32 count) The same application works on Windows environment. Read More
Azure OpenAI Quota
Hi all,
I have a question about the Azure OpenAI deployment quota and hope someone can help me understand.
I understand the quota is shared among deployments in the same region (Japan East) and the same subscription.
If we deploy instances of GPT-4 (Japan East) in separate subscriptions called Tech-dev and Support-dev, would the quota still be shared?
The subscriptions are separate and used by different groups, but they are owned by the same company.
I was wondering if the quotas are shared only when deployments are under the same subscription, or if the quota is shared as long as the subscriptions are owned by the same company.
have an awesome day,
Thank you,
Hi all, I have a question about the Azure OpenAI deployment quota and hope someone can help me understand. I understand the quota is shared among deployments in the same region (Japan East) and the same subscription. If we deploy instances of GPT-4 (Japan East) in separate subscriptions called Tech-dev and Support-dev, would the quota still be shared?The subscriptions are separate and used by different groups, but they are owned by the same company. I was wondering if the quotas are shared only when deployments are under the same subscription, or if the quota is shared as long as the subscriptions are owned by the same company. have an awesome day, Thank you, Read More
Power query: Custom Columns
Hi,
I am trying to use power query to create custom columns with formula.
The file I am using has six power queries.
I have appended the six queries and removed columns and duplicates.
But I want to add custom columns with formula like below image.
There are two formulas for each column (item# and qty#):
item columns:
=IF(IFERROR(SUMIF(INDIRECT(“‘” & J$2 & “‘!J:J”), $E13, INDIRECT(“‘” & J$2 & “‘!R:R”)), 0) = 0,””,IFERROR(SUMIF(INDIRECT(“‘” & J$2 & “‘!J:J”), E13, INDIRECT(“‘” & J$2 & “‘!R:R”)), “Not Found”))
qty coulmns:
=IF(J13=””,””,IFERROR(SUMIF(INDIRECT(“‘” & J$2 & “‘!J:J”), $E13, INDIRECT(“‘” & J$2 & “‘!Q:Q”)), “Not Found”))
The reason of these formula is that user can type sheet name.
Then it will show the corresponding code and supplier and show the item and qty based on the sheet name.
Is this doable in power query? or is it better to do script to accomplish this?
Thank you all in advance.
Hi, I am trying to use power query to create custom columns with formula. The file I am using has six power queries. I have appended the six queries and removed columns and duplicates.But I want to add custom columns with formula like below image. There are two formulas for each column (item# and qty#):item columns: =IF(IFERROR(SUMIF(INDIRECT(“‘” & J$2 & “‘!J:J”), $E13, INDIRECT(“‘” & J$2 & “‘!R:R”)), 0) = 0,””,IFERROR(SUMIF(INDIRECT(“‘” & J$2 & “‘!J:J”), E13, INDIRECT(“‘” & J$2 & “‘!R:R”)), “Not Found”)) qty coulmns: =IF(J13=””,””,IFERROR(SUMIF(INDIRECT(“‘” & J$2 & “‘!J:J”), $E13, INDIRECT(“‘” & J$2 & “‘!Q:Q”)), “Not Found”)) The reason of these formula is that user can type sheet name.Then it will show the corresponding code and supplier and show the item and qty based on the sheet name. Is this doable in power query? or is it better to do script to accomplish this? Thank you all in advance. Read More
How can I use multiple Simulation 3D Ultrasonic Sensor?
I have tried to simulated a parking scenario with Unreal Engine Environment. I want to attach multiple ultrasonic sensors to the vehicle. I attached one at the front bumper, 1 at the left and 1 at the right mirror.
However after the simulation, the ultrasonic sensors readings are always the same. Only the reading of the ultrasonic sensor attached to the right mirror is shown.
How can I get the readings from the other 2 sensors?I have tried to simulated a parking scenario with Unreal Engine Environment. I want to attach multiple ultrasonic sensors to the vehicle. I attached one at the front bumper, 1 at the left and 1 at the right mirror.
However after the simulation, the ultrasonic sensors readings are always the same. Only the reading of the ultrasonic sensor attached to the right mirror is shown.
How can I get the readings from the other 2 sensors? I have tried to simulated a parking scenario with Unreal Engine Environment. I want to attach multiple ultrasonic sensors to the vehicle. I attached one at the front bumper, 1 at the left and 1 at the right mirror.
However after the simulation, the ultrasonic sensors readings are always the same. Only the reading of the ultrasonic sensor attached to the right mirror is shown.
How can I get the readings from the other 2 sensors? automated driving toolbox, simulation 3d ultrasonic sensor MATLAB Answers — New Questions
Type mismatch error using SolidWorks’ API in MATLAB
Hello everyone,
I am experiencing hard time in trying to solve a problem when using the SolidWorks’ API in MATLAB. I want to use SolidWorks as CAD/CAE engine to be called iteratively by a MATLAB function for structural optimization.
I can get the access to the API by using the ‘actxsever’ instruction and use lots of API’s functionalities. However, there are some methods that I cannot use for two main reasons:
Type mismatch
When I try to use methods that require arguments related to errors or warnings. For example, when I want to use the OpenDoc6 method:
% Create a SolidWorks instance
swApp = actxserver(‘SldWorks.Application’);
% Set SolidWorks as visible
invoke(swApp,’Visible’, true);
% Set file path
filePath = "C:Pathtoyourfile.sldprt";
% Set arguments for OpenDoc6
swDocPART = 1;
swOpenDocOptions_Silent = 1;
% Arguments for error and warning
Errors = int32(0);
Warnings = int32(0);
% Open the document
PartDoc = invoke(swApp, ‘OpenDoc6’, filePath, swDocPART, swOpenDocOptions_Silent, ”, Errors, Warnings);
I get the following error:
Error using COM.SldWorks_Application/invoke
Error: Type mismatch, argument 5
Error in prova_opendoc6 (line 19)
PartDoc = invoke(swApp, ‘OpenDoc6’, filePath, swDocPART,swOpenDocOptions_Silent, ”, Errors, Warnings);
Looking on the API help about OpenDoc6 method, specifically the C++ syntax, I can see that Errors and Warnings are actually outputs: https://help.solidworks.com/2023/english/api/sldworksapi/solidworks.interop.sldworks~solidworks.interop.sldworks.isldworks~opendoc6.html
but I don’t understand how to manage this within MATLAB.
NULL or NOTHING
When there is the need of using the MATLAB equivalent of NULL or NOTHING. I tried with empty array [], empty string "", NaN, missing, etc. But none of them seems to work. For example, if I want to select something with SelectByID2:
myModelExt = invoke(myModel,’Extension’);
boolstatus = invoke(myModelExt,’SelectByID2′,"Boss-Extrude1", "SOLIDBODY", 0, 0, 0, true, 0, [], 0);
I get the error:
Error using Interface.SldWorks_Application_31.ActiveDoc.Extension/invoke
Error: Type mismatch, argument 8
for which argument 8 refers to the [ ] brackets. In the API help it is reported https://help.solidworks.com/2023/english/api/sldworksapi/SolidWorks.Interop.sldworks~SolidWorks.Interop.sldworks.IModelDocExtension~SelectByID2.html
but I have no idea how to manage the Callout argument.
I kindly ask you to help me to solve these difficulties. Maybe MATLAB’s possibilities to use the SolidWorks’ API are just limited and it is not possible using all the capabilities of the API, but I would like to hear about you before switching to other approaches.
Thank you very much.Hello everyone,
I am experiencing hard time in trying to solve a problem when using the SolidWorks’ API in MATLAB. I want to use SolidWorks as CAD/CAE engine to be called iteratively by a MATLAB function for structural optimization.
I can get the access to the API by using the ‘actxsever’ instruction and use lots of API’s functionalities. However, there are some methods that I cannot use for two main reasons:
Type mismatch
When I try to use methods that require arguments related to errors or warnings. For example, when I want to use the OpenDoc6 method:
% Create a SolidWorks instance
swApp = actxserver(‘SldWorks.Application’);
% Set SolidWorks as visible
invoke(swApp,’Visible’, true);
% Set file path
filePath = "C:Pathtoyourfile.sldprt";
% Set arguments for OpenDoc6
swDocPART = 1;
swOpenDocOptions_Silent = 1;
% Arguments for error and warning
Errors = int32(0);
Warnings = int32(0);
% Open the document
PartDoc = invoke(swApp, ‘OpenDoc6’, filePath, swDocPART, swOpenDocOptions_Silent, ”, Errors, Warnings);
I get the following error:
Error using COM.SldWorks_Application/invoke
Error: Type mismatch, argument 5
Error in prova_opendoc6 (line 19)
PartDoc = invoke(swApp, ‘OpenDoc6’, filePath, swDocPART,swOpenDocOptions_Silent, ”, Errors, Warnings);
Looking on the API help about OpenDoc6 method, specifically the C++ syntax, I can see that Errors and Warnings are actually outputs: https://help.solidworks.com/2023/english/api/sldworksapi/solidworks.interop.sldworks~solidworks.interop.sldworks.isldworks~opendoc6.html
but I don’t understand how to manage this within MATLAB.
NULL or NOTHING
When there is the need of using the MATLAB equivalent of NULL or NOTHING. I tried with empty array [], empty string "", NaN, missing, etc. But none of them seems to work. For example, if I want to select something with SelectByID2:
myModelExt = invoke(myModel,’Extension’);
boolstatus = invoke(myModelExt,’SelectByID2′,"Boss-Extrude1", "SOLIDBODY", 0, 0, 0, true, 0, [], 0);
I get the error:
Error using Interface.SldWorks_Application_31.ActiveDoc.Extension/invoke
Error: Type mismatch, argument 8
for which argument 8 refers to the [ ] brackets. In the API help it is reported https://help.solidworks.com/2023/english/api/sldworksapi/SolidWorks.Interop.sldworks~SolidWorks.Interop.sldworks.IModelDocExtension~SelectByID2.html
but I have no idea how to manage the Callout argument.
I kindly ask you to help me to solve these difficulties. Maybe MATLAB’s possibilities to use the SolidWorks’ API are just limited and it is not possible using all the capabilities of the API, but I would like to hear about you before switching to other approaches.
Thank you very much. Hello everyone,
I am experiencing hard time in trying to solve a problem when using the SolidWorks’ API in MATLAB. I want to use SolidWorks as CAD/CAE engine to be called iteratively by a MATLAB function for structural optimization.
I can get the access to the API by using the ‘actxsever’ instruction and use lots of API’s functionalities. However, there are some methods that I cannot use for two main reasons:
Type mismatch
When I try to use methods that require arguments related to errors or warnings. For example, when I want to use the OpenDoc6 method:
% Create a SolidWorks instance
swApp = actxserver(‘SldWorks.Application’);
% Set SolidWorks as visible
invoke(swApp,’Visible’, true);
% Set file path
filePath = "C:Pathtoyourfile.sldprt";
% Set arguments for OpenDoc6
swDocPART = 1;
swOpenDocOptions_Silent = 1;
% Arguments for error and warning
Errors = int32(0);
Warnings = int32(0);
% Open the document
PartDoc = invoke(swApp, ‘OpenDoc6’, filePath, swDocPART, swOpenDocOptions_Silent, ”, Errors, Warnings);
I get the following error:
Error using COM.SldWorks_Application/invoke
Error: Type mismatch, argument 5
Error in prova_opendoc6 (line 19)
PartDoc = invoke(swApp, ‘OpenDoc6’, filePath, swDocPART,swOpenDocOptions_Silent, ”, Errors, Warnings);
Looking on the API help about OpenDoc6 method, specifically the C++ syntax, I can see that Errors and Warnings are actually outputs: https://help.solidworks.com/2023/english/api/sldworksapi/solidworks.interop.sldworks~solidworks.interop.sldworks.isldworks~opendoc6.html
but I don’t understand how to manage this within MATLAB.
NULL or NOTHING
When there is the need of using the MATLAB equivalent of NULL or NOTHING. I tried with empty array [], empty string "", NaN, missing, etc. But none of them seems to work. For example, if I want to select something with SelectByID2:
myModelExt = invoke(myModel,’Extension’);
boolstatus = invoke(myModelExt,’SelectByID2′,"Boss-Extrude1", "SOLIDBODY", 0, 0, 0, true, 0, [], 0);
I get the error:
Error using Interface.SldWorks_Application_31.ActiveDoc.Extension/invoke
Error: Type mismatch, argument 8
for which argument 8 refers to the [ ] brackets. In the API help it is reported https://help.solidworks.com/2023/english/api/sldworksapi/SolidWorks.Interop.sldworks~SolidWorks.Interop.sldworks.IModelDocExtension~SelectByID2.html
but I have no idea how to manage the Callout argument.
I kindly ask you to help me to solve these difficulties. Maybe MATLAB’s possibilities to use the SolidWorks’ API are just limited and it is not possible using all the capabilities of the API, but I would like to hear about you before switching to other approaches.
Thank you very much. api, actxserver, com, solidworks MATLAB Answers — New Questions
Schrodinger equation using pdemodeler
Hello! I’m a beginner wondering if it’s possible to plot the solutions of the Schrodinger equation in PDE Modeler. Would somebody kindly guide me on that?Hello! I’m a beginner wondering if it’s possible to plot the solutions of the Schrodinger equation in PDE Modeler. Would somebody kindly guide me on that? Hello! I’m a beginner wondering if it’s possible to plot the solutions of the Schrodinger equation in PDE Modeler. Would somebody kindly guide me on that? pde modeler, quantum mechanics, schrodinger equation, wavefunction MATLAB Answers — New Questions
do stateflow support Vector State Machine Judgment
HI! man&madam:
I’m working on a design for a group of devices that perform the same control strategy based on their terminal voltages, i.e., normal control strategy when the voltage is above a threshold, and fault strategy when the voltage is below a threshold, so I’d like to build a state flow model for control and easy for others to understand, but I’m having trouble outputting the corresponding unit states, and I’ve tried to add state{idx}=0; to make it a vector instead of a state. How do I set the state so that it is a vector instead, I tried to add state{idx}=0; to initialize it but the system says idx cannot be defined.
I uploaded a demo with three elements and his current output is correct, but the state is one-dimensional data.
Thank you for all!HI! man&madam:
I’m working on a design for a group of devices that perform the same control strategy based on their terminal voltages, i.e., normal control strategy when the voltage is above a threshold, and fault strategy when the voltage is below a threshold, so I’d like to build a state flow model for control and easy for others to understand, but I’m having trouble outputting the corresponding unit states, and I’ve tried to add state{idx}=0; to make it a vector instead of a state. How do I set the state so that it is a vector instead, I tried to add state{idx}=0; to initialize it but the system says idx cannot be defined.
I uploaded a demo with three elements and his current output is correct, but the state is one-dimensional data.
Thank you for all! HI! man&madam:
I’m working on a design for a group of devices that perform the same control strategy based on their terminal voltages, i.e., normal control strategy when the voltage is above a threshold, and fault strategy when the voltage is below a threshold, so I’d like to build a state flow model for control and easy for others to understand, but I’m having trouble outputting the corresponding unit states, and I’ve tried to add state{idx}=0; to make it a vector instead of a state. How do I set the state so that it is a vector instead, I tried to add state{idx}=0; to initialize it but the system says idx cannot be defined.
I uploaded a demo with three elements and his current output is correct, but the state is one-dimensional data.
Thank you for all! vector, stateflow, state machine MATLAB Answers — New Questions
Custom TTS Avatar pricing
Hi,
We are looking to generate a custom TTS avatar to use on Azure. Apart from the upfront avatar generation and batch synthesis fees, are there any other costs involved? What is the endpoint hosting fee?
https://azure.microsoft.com/en-us/pricing/details/cognitive-services/speech-services/
Thank You
Hi, We are looking to generate a custom TTS avatar to use on Azure. Apart from the upfront avatar generation and batch synthesis fees, are there any other costs involved? What is the endpoint hosting fee?https://azure.microsoft.com/en-us/pricing/details/cognitive-services/speech-services/ Thank You Read More
unable to generate code with ‘collisionMesh’ function.
Hi.
I am trying to create a .mex file using the coder app. The function I am trying to convert uses the collisionMesh and checkcollision functions.
I have already did it succesfully with another function using the exact same functions, but with a different structure. For some reason, now I am getting an error saying:
‘collisionMesh’ is not supported as an I/O argument to entry point function as it is a handle class
and to be honest I have no idea what that means and why it hapenned, and I’ll be glad for any suggestions.
Thanks!Hi.
I am trying to create a .mex file using the coder app. The function I am trying to convert uses the collisionMesh and checkcollision functions.
I have already did it succesfully with another function using the exact same functions, but with a different structure. For some reason, now I am getting an error saying:
‘collisionMesh’ is not supported as an I/O argument to entry point function as it is a handle class
and to be honest I have no idea what that means and why it hapenned, and I’ll be glad for any suggestions.
Thanks! Hi.
I am trying to create a .mex file using the coder app. The function I am trying to convert uses the collisionMesh and checkcollision functions.
I have already did it succesfully with another function using the exact same functions, but with a different structure. For some reason, now I am getting an error saying:
‘collisionMesh’ is not supported as an I/O argument to entry point function as it is a handle class
and to be honest I have no idea what that means and why it hapenned, and I’ll be glad for any suggestions.
Thanks! matlab coder, i/o argument, collisionmesh MATLAB Answers — New Questions
Improving Precision of Eigenvectors with Large Eigenvalues
Hi all,
This is a bit of a generic question, but I was hoping someone could provide some insight on how I could improve the precision of eigenvectors using "projection techniques", like in this post, where a matrix will have 1 or 2 very large eigenvalues, and the remaining eigenvalues are much smaller (by several orders of magnitude). They have code written in R, which I am not too familiar with, but is the idea generically that I should subtract out the overlap of smaller eigenvectors with those of larger eigenvectors to improve their precision? When I say precision, what I mean is that applying eig to a matrix M will generate a set of eigenvectors, but once I check M*v – *v, the resultant array will deviate from 0, i.e. applying M to the "eigenvector" has resulted in a linear combination of multiple other eigenvectors.
Any guidance is appreciated.Hi all,
This is a bit of a generic question, but I was hoping someone could provide some insight on how I could improve the precision of eigenvectors using "projection techniques", like in this post, where a matrix will have 1 or 2 very large eigenvalues, and the remaining eigenvalues are much smaller (by several orders of magnitude). They have code written in R, which I am not too familiar with, but is the idea generically that I should subtract out the overlap of smaller eigenvectors with those of larger eigenvectors to improve their precision? When I say precision, what I mean is that applying eig to a matrix M will generate a set of eigenvectors, but once I check M*v – *v, the resultant array will deviate from 0, i.e. applying M to the "eigenvector" has resulted in a linear combination of multiple other eigenvectors.
Any guidance is appreciated. Hi all,
This is a bit of a generic question, but I was hoping someone could provide some insight on how I could improve the precision of eigenvectors using "projection techniques", like in this post, where a matrix will have 1 or 2 very large eigenvalues, and the remaining eigenvalues are much smaller (by several orders of magnitude). They have code written in R, which I am not too familiar with, but is the idea generically that I should subtract out the overlap of smaller eigenvectors with those of larger eigenvectors to improve their precision? When I say precision, what I mean is that applying eig to a matrix M will generate a set of eigenvectors, but once I check M*v – *v, the resultant array will deviate from 0, i.e. applying M to the "eigenvector" has resulted in a linear combination of multiple other eigenvectors.
Any guidance is appreciated. eigenvector, eigenvalue, precision MATLAB Answers — New Questions
WAC and S2D: Disks are not populating
Unable to get WAC to show Disks for a Windows server 2022 DC Failover Cluster with S2D
WAC is throwing error: “RemoteException: The variable ‘$clusterDisk’ cannot be retrieved because it has not been set.”
Ran a: Test-Cluster -Node <node1,node2,node3> -Include “Storage Spaces Direct”, “Inventory”, “Network”, “System Configuration”
S2D shows all green.
I’m at a loss. Thanks for any help you can give
Unable to get WAC to show Disks for a Windows server 2022 DC Failover Cluster with S2D WAC is throwing error: “RemoteException: The variable ‘$clusterDisk’ cannot be retrieved because it has not been set.”Ran a: Test-Cluster -Node <node1,node2,node3> -Include “Storage Spaces Direct”, “Inventory”, “Network”, “System Configuration”S2D shows all green. I’m at a loss. Thanks for any help you can give Read More
Scroll between two different excel spreadsheets
Usually (on my personal macbook laptop) if I have two excel spreadsheets open, I can scroll between either as long as my mouse is on the spreadsheet.
At work, on my Asus computer, if I have two excel spreadsheets, I have to click on that spreadsheet to scroll.
For example, say I am doing some data entry and using info from one spreadsheet to put into another – I want to be able to type in one spreadsheet, while scrolling up and down the other to find the information I need. I do not want to have to click on one spreadsheet to scroll, only to then click back into the other to type, if that makes sense.
Is there a way that I can change/fix this?
(Note, both excels are on the desktop, not for web)
Usually (on my personal macbook laptop) if I have two excel spreadsheets open, I can scroll between either as long as my mouse is on the spreadsheet. At work, on my Asus computer, if I have two excel spreadsheets, I have to click on that spreadsheet to scroll. For example, say I am doing some data entry and using info from one spreadsheet to put into another – I want to be able to type in one spreadsheet, while scrolling up and down the other to find the information I need. I do not want to have to click on one spreadsheet to scroll, only to then click back into the other to type, if that makes sense. Is there a way that I can change/fix this? (Note, both excels are on the desktop, not for web) Read More
Matlab plot is drawing an individual line to each data point
So im writing a matlab script that creates a 3 by 100 matrix x and a 1 by 100 matrix n. When I try to plot it, matlab draws an individual line segment from the origin to each data point, rather than just connecting the data points. From what I found online, it’s due to the plot function being inside a for loop, but after I moved it outside the loop it kept doing the same thing. Can somebody help.
Here’s what the plot looks likeSo im writing a matlab script that creates a 3 by 100 matrix x and a 1 by 100 matrix n. When I try to plot it, matlab draws an individual line segment from the origin to each data point, rather than just connecting the data points. From what I found online, it’s due to the plot function being inside a for loop, but after I moved it outside the loop it kept doing the same thing. Can somebody help.
Here’s what the plot looks like So im writing a matlab script that creates a 3 by 100 matrix x and a 1 by 100 matrix n. When I try to plot it, matlab draws an individual line segment from the origin to each data point, rather than just connecting the data points. From what I found online, it’s due to the plot function being inside a for loop, but after I moved it outside the loop it kept doing the same thing. Can somebody help.
Here’s what the plot looks like plotting, data points MATLAB Answers — New Questions
I use the mouse to do some operations on Simulink, can you automatically generate code for these operations? Later, you can run the code directly to complete the previous oper
I use the mouse to do some operations on Simulink, can you automatically generate code for these operations? Later, you can run the code directly to complete the previous operation.I use the mouse to do some operations on Simulink, can you automatically generate code for these operations? Later, you can run the code directly to complete the previous operation. I use the mouse to do some operations on Simulink, can you automatically generate code for these operations? Later, you can run the code directly to complete the previous operation. simulink, .m MATLAB Answers — New Questions
New Tab Page Default Engine
Hello I have reccomendation to make for Microsoft Edge. Given the Google Chrome lawsuit about how Google Search collected searches users data for years. without their consent. Google had to pay 1 billion in damages. I think this is a solid argument for Microsoft Edge Private Mode to be locked only to Microsoft Bing. Whilist the normal Search Engine can still be changed. I think this is tiny overlooked security issue where people can have their privacy betrayed
Hello I have reccomendation to make for Microsoft Edge. Given the Google Chrome lawsuit about how Google Search collected searches users data for years. without their consent. Google had to pay 1 billion in damages. I think this is a solid argument for Microsoft Edge Private Mode to be locked only to Microsoft Bing. Whilist the normal Search Engine can still be changed. I think this is tiny overlooked security issue where people can have their privacy betrayed Read More
Unable to install add-on
First when i tried adding a package(simscape) in MATLAB R2019a, error "unable to access /usr/local/MATLAB/R2019a" came. Then I chmod 777 the folder. Now I can proceed a few steps till the download screen when it downloads upto 40% and fails. This is the error in the terminal.
Exception in thread "Thread-12": java.lang.NullPointerException
at com.teamdev.jxbrowser.chromium.internal.ipc.IPC.c(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.ipc.IPC.b(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.ipc.IPC.a(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.ipc.b.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)First when i tried adding a package(simscape) in MATLAB R2019a, error "unable to access /usr/local/MATLAB/R2019a" came. Then I chmod 777 the folder. Now I can proceed a few steps till the download screen when it downloads upto 40% and fails. This is the error in the terminal.
Exception in thread "Thread-12": java.lang.NullPointerException
at com.teamdev.jxbrowser.chromium.internal.ipc.IPC.c(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.ipc.IPC.b(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.ipc.IPC.a(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.ipc.b.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748) First when i tried adding a package(simscape) in MATLAB R2019a, error "unable to access /usr/local/MATLAB/R2019a" came. Then I chmod 777 the folder. Now I can proceed a few steps till the download screen when it downloads upto 40% and fails. This is the error in the terminal.
Exception in thread "Thread-12": java.lang.NullPointerException
at com.teamdev.jxbrowser.chromium.internal.ipc.IPC.c(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.ipc.IPC.b(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.ipc.IPC.a(Unknown Source)
at com.teamdev.jxbrowser.chromium.internal.ipc.b.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748) add-on MATLAB Answers — New Questions
Automate running of Power Query when new file is uploaded to Sharepoint
I have a SharePoint/OneDrive folder where every week I upload an excel file containing data in a fixed format. I have made power queries to do some transformations on the excel data and output the transformed data within that excel in a separate sheet. I also need to connect the excel data (before transformation) to Power BI to display graphs.
I want something which automatically detects that a new excel file has been uploaded to SharePoint/OneDrive, run the power queries on the data in the excel, and also create a connection to Power BI and display the graphs.
I tried using Power Automate but it has a limitation that it can’t run power queries automatically on the excel file. PLEASE HELP me with a solution that can automate this process, I have been stuck for a week trying to find a way.
I have a SharePoint/OneDrive folder where every week I upload an excel file containing data in a fixed format. I have made power queries to do some transformations on the excel data and output the transformed data within that excel in a separate sheet. I also need to connect the excel data (before transformation) to Power BI to display graphs. I want something which automatically detects that a new excel file has been uploaded to SharePoint/OneDrive, run the power queries on the data in the excel, and also create a connection to Power BI and display the graphs. I tried using Power Automate but it has a limitation that it can’t run power queries automatically on the excel file. PLEASE HELP me with a solution that can automate this process, I have been stuck for a week trying to find a way. Read More
Preservation Hold Reporting on all SharePoint Online Sites within a Tenant
Hello everyone,
I’m trying to find out if there was a way to report on Preservation Holds for all SharePoint Online sites in a tenant. What I want to know is:
How many sites have preservation holdsHow many files/folders are in thereTotal size of preservation hold per site (pref in GB)
any thoughts, help or guidance would be very much appreciated.
Hello everyone, I’m trying to find out if there was a way to report on Preservation Holds for all SharePoint Online sites in a tenant. What I want to know is:How many sites have preservation holdsHow many files/folders are in thereTotal size of preservation hold per site (pref in GB)any thoughts, help or guidance would be very much appreciated. Read More