Month: July 2024
How to import ‘kfoldPredict’ for old version matlab (2023a)
I want to use kfold with decision tree model. But kfoldpredict is for matlab 2024a.
Is there a possible way to import such function/ packages to matlab 2023?
I try save the class after open ‘kfoldpredict’ function, but it seems does not work.
Thank you for possible solutions.I want to use kfold with decision tree model. But kfoldpredict is for matlab 2024a.
Is there a possible way to import such function/ packages to matlab 2023?
I try save the class after open ‘kfoldpredict’ function, but it seems does not work.
Thank you for possible solutions. I want to use kfold with decision tree model. But kfoldpredict is for matlab 2024a.
Is there a possible way to import such function/ packages to matlab 2023?
I try save the class after open ‘kfoldpredict’ function, but it seems does not work.
Thank you for possible solutions. machine learning, kfold classification MATLAB Answers — New Questions
Memory consumption of the quad tree
Please, what is the memory consumption of the recursive quad tree decomposition procedure [S = qtdecomp(I)] with respect to the input set I?Please, what is the memory consumption of the recursive quad tree decomposition procedure [S = qtdecomp(I)] with respect to the input set I? Please, what is the memory consumption of the recursive quad tree decomposition procedure [S = qtdecomp(I)] with respect to the input set I? image segmentation MATLAB Answers — New Questions
Using transformer neural network for classification task
numChannels = inputSize;
maxPosition = 256;
numHeads = 4;
numKeyChannels = numHeads*32;
layers = [
sequenceInputLayer(numChannels,Name="input")
positionEmbeddingLayer(numChannels, maxPosition, Name="pos-emb");
additionLayer(2, Name="add")
selfAttentionLayer(numHeads,numKeyChannels,’AttentionMask’,’causal’)
selfAttentionLayer(numHeads,numKeyChannels)
indexing1dLayer("last")
fullyConnectedLayer(numClasses)
softmaxLayer
classificationLayer];
lgraph = layerGraph(layers);
lgraph = connectLayers(lgraph, "input", "add/in2");
maxEpochs = 100;
miniBatchSize = 32;
learningRate = 0.001;
solver = ‘adam’;
shuffle = ‘every-epoch’;
gradientThreshold = 10;
executionEnvironment = "auto"; % chooses local GPU if available, otherwise CPU
options = trainingOptions(solver, …
‘Plots’,’training-progress’, …
‘MaxEpochs’, maxEpochs, …
‘MiniBatchSize’, miniBatchSize, …
‘Shuffle’, shuffle, …
‘InitialLearnRate’, learningRate, …
‘GradientThreshold’, gradientThreshold, …
‘ExecutionEnvironment’, executionEnvironment);
The input size is 12, so there are 12 features.
numClasses is 4, so I am classifying it into 4 class.
But it gives the following error when I try to run it
"
Error in test123_20240727 (line 195)
net=trainNetwork(XTrain, YTrain, layers, options);
Caused by:
Layer ‘add’: Unconnected input. Each layer input must be connected to the output of another layer.
"
line 195 is "net=trainNetwork(XTrain, YTrain, layers, options);"
Can anyone help me with this?numChannels = inputSize;
maxPosition = 256;
numHeads = 4;
numKeyChannels = numHeads*32;
layers = [
sequenceInputLayer(numChannels,Name="input")
positionEmbeddingLayer(numChannels, maxPosition, Name="pos-emb");
additionLayer(2, Name="add")
selfAttentionLayer(numHeads,numKeyChannels,’AttentionMask’,’causal’)
selfAttentionLayer(numHeads,numKeyChannels)
indexing1dLayer("last")
fullyConnectedLayer(numClasses)
softmaxLayer
classificationLayer];
lgraph = layerGraph(layers);
lgraph = connectLayers(lgraph, "input", "add/in2");
maxEpochs = 100;
miniBatchSize = 32;
learningRate = 0.001;
solver = ‘adam’;
shuffle = ‘every-epoch’;
gradientThreshold = 10;
executionEnvironment = "auto"; % chooses local GPU if available, otherwise CPU
options = trainingOptions(solver, …
‘Plots’,’training-progress’, …
‘MaxEpochs’, maxEpochs, …
‘MiniBatchSize’, miniBatchSize, …
‘Shuffle’, shuffle, …
‘InitialLearnRate’, learningRate, …
‘GradientThreshold’, gradientThreshold, …
‘ExecutionEnvironment’, executionEnvironment);
The input size is 12, so there are 12 features.
numClasses is 4, so I am classifying it into 4 class.
But it gives the following error when I try to run it
"
Error in test123_20240727 (line 195)
net=trainNetwork(XTrain, YTrain, layers, options);
Caused by:
Layer ‘add’: Unconnected input. Each layer input must be connected to the output of another layer.
"
line 195 is "net=trainNetwork(XTrain, YTrain, layers, options);"
Can anyone help me with this? numChannels = inputSize;
maxPosition = 256;
numHeads = 4;
numKeyChannels = numHeads*32;
layers = [
sequenceInputLayer(numChannels,Name="input")
positionEmbeddingLayer(numChannels, maxPosition, Name="pos-emb");
additionLayer(2, Name="add")
selfAttentionLayer(numHeads,numKeyChannels,’AttentionMask’,’causal’)
selfAttentionLayer(numHeads,numKeyChannels)
indexing1dLayer("last")
fullyConnectedLayer(numClasses)
softmaxLayer
classificationLayer];
lgraph = layerGraph(layers);
lgraph = connectLayers(lgraph, "input", "add/in2");
maxEpochs = 100;
miniBatchSize = 32;
learningRate = 0.001;
solver = ‘adam’;
shuffle = ‘every-epoch’;
gradientThreshold = 10;
executionEnvironment = "auto"; % chooses local GPU if available, otherwise CPU
options = trainingOptions(solver, …
‘Plots’,’training-progress’, …
‘MaxEpochs’, maxEpochs, …
‘MiniBatchSize’, miniBatchSize, …
‘Shuffle’, shuffle, …
‘InitialLearnRate’, learningRate, …
‘GradientThreshold’, gradientThreshold, …
‘ExecutionEnvironment’, executionEnvironment);
The input size is 12, so there are 12 features.
numClasses is 4, so I am classifying it into 4 class.
But it gives the following error when I try to run it
"
Error in test123_20240727 (line 195)
net=trainNetwork(XTrain, YTrain, layers, options);
Caused by:
Layer ‘add’: Unconnected input. Each layer input must be connected to the output of another layer.
"
line 195 is "net=trainNetwork(XTrain, YTrain, layers, options);"
Can anyone help me with this? transformer, neural network, machine learning, classification MATLAB Answers — New Questions
average values from .cvs file and plot
I want to calculate the hour by hour average values of the FIT column of the attached file, I have tried the following code but I could not solve the problem, then I want to graph the average data vs time
data1 = readtable(‘datos.csv’, ‘VariableNamingRule’,’preserve’);
MyDateTime = data1.Date + data1.Time;
MyDateTime.Format = ‘yyyy-MM-dd HH:mm:ss’;
data2 = [data1(:,1) table(MyDateTime) data1(:,[3:end])];
%%
% Create a new column for the time (round up to the start of the hour)
data.Hour = dateshift(data2.MyDateTime, ‘start’, ‘hour’);
% Group by new time column and calculate average
averageData = groupsummary(data2.MyDateTime, ‘Hour’, ‘mean’, ‘value’);
% Show results
disp(averageData);
% Graph average hourly data
figure;
plot(averageData.Hour, averageData.mean_value, ‘-o’);
xlabel(‘Date & Time’);
ylabel(‘Average value Pressure’);
title(‘Average Hour by Hour’);
grid on;
% Save results to a new CSV file
writetable(averageData, ‘promedios_hora_a_hora.csv’)I want to calculate the hour by hour average values of the FIT column of the attached file, I have tried the following code but I could not solve the problem, then I want to graph the average data vs time
data1 = readtable(‘datos.csv’, ‘VariableNamingRule’,’preserve’);
MyDateTime = data1.Date + data1.Time;
MyDateTime.Format = ‘yyyy-MM-dd HH:mm:ss’;
data2 = [data1(:,1) table(MyDateTime) data1(:,[3:end])];
%%
% Create a new column for the time (round up to the start of the hour)
data.Hour = dateshift(data2.MyDateTime, ‘start’, ‘hour’);
% Group by new time column and calculate average
averageData = groupsummary(data2.MyDateTime, ‘Hour’, ‘mean’, ‘value’);
% Show results
disp(averageData);
% Graph average hourly data
figure;
plot(averageData.Hour, averageData.mean_value, ‘-o’);
xlabel(‘Date & Time’);
ylabel(‘Average value Pressure’);
title(‘Average Hour by Hour’);
grid on;
% Save results to a new CSV file
writetable(averageData, ‘promedios_hora_a_hora.csv’) I want to calculate the hour by hour average values of the FIT column of the attached file, I have tried the following code but I could not solve the problem, then I want to graph the average data vs time
data1 = readtable(‘datos.csv’, ‘VariableNamingRule’,’preserve’);
MyDateTime = data1.Date + data1.Time;
MyDateTime.Format = ‘yyyy-MM-dd HH:mm:ss’;
data2 = [data1(:,1) table(MyDateTime) data1(:,[3:end])];
%%
% Create a new column for the time (round up to the start of the hour)
data.Hour = dateshift(data2.MyDateTime, ‘start’, ‘hour’);
% Group by new time column and calculate average
averageData = groupsummary(data2.MyDateTime, ‘Hour’, ‘mean’, ‘value’);
% Show results
disp(averageData);
% Graph average hourly data
figure;
plot(averageData.Hour, averageData.mean_value, ‘-o’);
xlabel(‘Date & Time’);
ylabel(‘Average value Pressure’);
title(‘Average Hour by Hour’);
grid on;
% Save results to a new CSV file
writetable(averageData, ‘promedios_hora_a_hora.csv’) average data MATLAB Answers — New Questions
Mysterious Overflow Error
This Access VBA code is giving me an overflow error. What am I doing wrong?
Dim chunkSize As Long
chunkSize = 320 * 1024
Also, I tried changing chunkSize to a Double, but got the same overflow error.
This Access VBA code is giving me an overflow error. What am I doing wrong? Dim chunkSize As LongchunkSize = 320 * 1024 Also, I tried changing chunkSize to a Double, but got the same overflow error. Read More
Error the fully qualified domain name for node couldn’t be found
I have problem DAG on exchange server, one of the member host DAG deleted in active directory and i have problem when i try to delete Remove database in DAG with Remove-DatabaseAvailabilityGroupServer i have error the fully qualified domain name for node couldn’t be found
I have try to rejoin domain host in deleted on active directory but still have error same fully qualified domain name for node couldn’t be found
Please help to advice for this case i am verry grate full for all advice
I have problem DAG on exchange server, one of the member host DAG deleted in active directory and i have problem when i try to delete Remove database in DAG with Remove-DatabaseAvailabilityGroupServer i have error the fully qualified domain name for node couldn’t be foundI have try to rejoin domain host in deleted on active directory but still have error same fully qualified domain name for node couldn’t be foundPlease help to advice for this case i am verry grate full for all advice Read More
How to save an output from Simulink into MatLab during different iteration ?
Hello,
I am running a CarMaker for Simulink simulation, where I have an output that I want to save. This Simulink .mdl is running multiple times with differents parameters automatically, and then during each new simulation, the new output overwrites the previous one into the MatLab workspace. How can I manage to save at each new simulation the ouput ?
Thank you in advance
PS: the output format is a timeseries, even though I’m not sur this really mattersHello,
I am running a CarMaker for Simulink simulation, where I have an output that I want to save. This Simulink .mdl is running multiple times with differents parameters automatically, and then during each new simulation, the new output overwrites the previous one into the MatLab workspace. How can I manage to save at each new simulation the ouput ?
Thank you in advance
PS: the output format is a timeseries, even though I’m not sur this really matters Hello,
I am running a CarMaker for Simulink simulation, where I have an output that I want to save. This Simulink .mdl is running multiple times with differents parameters automatically, and then during each new simulation, the new output overwrites the previous one into the MatLab workspace. How can I manage to save at each new simulation the ouput ?
Thank you in advance
PS: the output format is a timeseries, even though I’m not sur this really matters simulink, iteration MATLAB Answers — New Questions
Inverse Laplace transform of discrete numerical data input
File Exchange offers several procedures for Inverse Laplace Transfrom but – if I am not mistaken – all are for the case when F(s) is provided in an analitic form. This actually restricts their use to the input data in a noise-free form, close to 64 bits. Adding noise – which is always present in experimental data – usually makes Inverse Transfrom unstable even at quite high S/N ratio. Are there any published Matlab procedures to overcome the damaging presence of noise?
P.S. Historically, Povencher published a program, Contin, to perform this task, and there was (I can’t recall the link now) a Matlab implementation but when I tried it with a 1:500 S/N ratio it failed fro me.File Exchange offers several procedures for Inverse Laplace Transfrom but – if I am not mistaken – all are for the case when F(s) is provided in an analitic form. This actually restricts their use to the input data in a noise-free form, close to 64 bits. Adding noise – which is always present in experimental data – usually makes Inverse Transfrom unstable even at quite high S/N ratio. Are there any published Matlab procedures to overcome the damaging presence of noise?
P.S. Historically, Povencher published a program, Contin, to perform this task, and there was (I can’t recall the link now) a Matlab implementation but when I tried it with a 1:500 S/N ratio it failed fro me. File Exchange offers several procedures for Inverse Laplace Transfrom but – if I am not mistaken – all are for the case when F(s) is provided in an analitic form. This actually restricts their use to the input data in a noise-free form, close to 64 bits. Adding noise – which is always present in experimental data – usually makes Inverse Transfrom unstable even at quite high S/N ratio. Are there any published Matlab procedures to overcome the damaging presence of noise?
P.S. Historically, Povencher published a program, Contin, to perform this task, and there was (I can’t recall the link now) a Matlab implementation but when I tried it with a 1:500 S/N ratio it failed fro me. inverse laplace transform MATLAB Answers — New Questions
Windows 11 Powershell Null Get-CimInstance
Hi! So I’m trying to create a Kiosk for a downloaded remote desktop application, but every time I run the script, I get the following errors:
The property ‘Configuration’ cannot be found on this object. Verify that the property exists and can be set.
At line:28 char:1
+ $obj.Configuration = [System.Net.WebUtility]::HtmlEncode($assignedAcc …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
Set-CimInstance : Cannot bind argument to parameter ‘InputObject’ because it is null.
At line:29 char:30
+ Set-CimInstance -CimInstance $obj
+ ~~~~
+ CategoryInfo : InvalidData: (:) [Set-CimInstance], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.Management.Infrastructure.CimCm
dlets.SetCimInstanceCommand
This is the full script:
$user = “RemoteDesktopUser”
$userDesc = “Remote Desktop”
New-LocalUser -Name $user -NoPassword -AccountNeverExpires -UserMayNotChangePassword -Description $userDesc | Set-LocalUser -PasswordNeverExpires $true
Add-LocalGroupMember -SID S-1-5-32-545 -Member $user
$Sid = (Get-LocalUser -Name $user).SID.Value
$assignedAccessConfiguration = @”
<?xml version=”1.0″ encoding=”utf-8″?>
<AssignedAccessConfiguration xmlns=”http://schemas.microsoft.com/AssignedAccess/2017/config” xmlns:rs5=”http://schemas.microsoft.com/AssignedAccess/201810/config” xmlns:v4=”http://schemas.microsoft.com/AssignedAccess/2021/config” xmlns:v5=”http://schemas.microsoft.com/AssignedAccess/2022/config“>
<Profiles>
<Profile Id=”{$Sid}”>
<KioskModeApp v4:ClassicAppPath=”%Program Files%WindowsApps%RemoteDesktop%RdClient.Windows.exe” v4:ClassicAppArguments=”–kiosk https://www.contoso.com/ –edge-kiosk-type=fullscreen –kiosk-idle-timeout-minutes=5″ />
<v4:BreakoutSequence Key=”Ctrl+A” />
</Profile>
</Profiles>
<Configs>
<Config>
<Account>”{$user}”</Account>
<DefaultProfile Id=”{$Sid}” />
</Config>
</Configs>
</AssignedAccessConfiguration>
“@
$namespaceName=”rootcimv2mdmdmmap”
$className=”MDM_AssignedAccess”
$obj = Get-CimInstance -Namespace $namespaceName -ClassName $className
$obj.Configuration = [System.Net.WebUtility]::HtmlEncode($assignedAccessConfiguration)
Set-CimInstance -CimInstance $obj
Any help is appreciated!
Hi! So I’m trying to create a Kiosk for a downloaded remote desktop application, but every time I run the script, I get the following errors: The property ‘Configuration’ cannot be found on this object. Verify that the property exists and can be set.At line:28 char:1+ $obj.Configuration = [System.Net.WebUtility]::HtmlEncode($assignedAcc …+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : InvalidOperation: (:) [], RuntimeException+ FullyQualifiedErrorId : PropertyNotFound Set-CimInstance : Cannot bind argument to parameter ‘InputObject’ because it is null.At line:29 char:30+ Set-CimInstance -CimInstance $obj+ ~~~~+ CategoryInfo : InvalidData: (:) [Set-CimInstance], ParameterBindingValidationException+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.Management.Infrastructure.CimCmdlets.SetCimInstanceCommand This is the full script: $user = “RemoteDesktopUser”$userDesc = “Remote Desktop”New-LocalUser -Name $user -NoPassword -AccountNeverExpires -UserMayNotChangePassword -Description $userDesc | Set-LocalUser -PasswordNeverExpires $trueAdd-LocalGroupMember -SID S-1-5-32-545 -Member $user$Sid = (Get-LocalUser -Name $user).SID.Value $assignedAccessConfiguration = @”<?xml version=”1.0″ encoding=”utf-8″?><AssignedAccessConfiguration xmlns=”http://schemas.microsoft.com/AssignedAccess/2017/config” xmlns:rs5=”http://schemas.microsoft.com/AssignedAccess/201810/config” xmlns:v4=”http://schemas.microsoft.com/AssignedAccess/2021/config” xmlns:v5=”http://schemas.microsoft.com/AssignedAccess/2022/config”> <Profiles> <Profile Id=”{$Sid}”> <KioskModeApp v4:ClassicAppPath=”%Program Files%WindowsApps%RemoteDesktop%RdClient.Windows.exe” v4:ClassicAppArguments=”–kiosk https://www.contoso.com/ –edge-kiosk-type=fullscreen –kiosk-idle-timeout-minutes=5″ /> <v4:BreakoutSequence Key=”Ctrl+A” /> </Profile> </Profiles> <Configs> <Config> <Account>”{$user}”</Account> <DefaultProfile Id=”{$Sid}” /> </Config> </Configs></AssignedAccessConfiguration>”@ $namespaceName=”rootcimv2mdmdmmap”$className=”MDM_AssignedAccess”$obj = Get-CimInstance -Namespace $namespaceName -ClassName $className$obj.Configuration = [System.Net.WebUtility]::HtmlEncode($assignedAccessConfiguration)Set-CimInstance -CimInstance $obj Any help is appreciated! Read More
How can I find a unique solution within tolerance using solve?
Hello,
So I am using solve to find values for 3 variables while having 3 equations. The problem is that my equations dont seem to have unique solution. How can I setup tolerance in a way that the solution only exits within 20k to 2M? For example for values in 700k,1.5M and 2M the right hand side is approximately equal to the left hand side.
syms Rx Risop Rison
V1=252.79315;
V2=287.20685;
V3=496.51688;
V4=43.483124;
V5=38.272892;
V6=501.72711;
R=100000000;
R1=68220;
R2=68220;
Vx1=17.206846;
Vx2=226.51688;
Vx3=231.72711;
equ1=(V1/Risop)+(V1/R)==(Vx1/Rx)+(V2/Rison)+(V2/R);
equ2= (V3/Risop)+(V3/R)==(V4/Rison)+(V4/R1)+(V4/R)-(Vx2/Rx);
equ3= (V5/Risop)+(V5/R)+(V5/R2)==(V6/Rison)+(Vx3/Rx)+(V6/R);
[Risop,Rison,Rx]=solve([equ1,equ2,equ3],[Risop,Rison,Rx]);
vpa(Risop)
vpa(Rison)
vpa(Rx)
Risop=1500000;
Rison=2000000;
Rx=700000;
LHS=(V1/Risop)+(V1/R);
RHS=(Vx1/Rx)+(V2/Rison)+(V2/R);
vpa(LHS)
vpa(RHS)
LHS=(V3/Risop)+(V3/R);
RHS=(V4/Rison)+(V4/R1)+(V4/R)-(Vx2/Rx);
vpa(LHS)
vpa(RHS)
LHS=(V5/Risop)+(V5/R)+(V5/R2);
RHS=(V6/Rison)+(Vx3/Rx)+(V6/R);
vpa(LHS)
vpa(RHS)Hello,
So I am using solve to find values for 3 variables while having 3 equations. The problem is that my equations dont seem to have unique solution. How can I setup tolerance in a way that the solution only exits within 20k to 2M? For example for values in 700k,1.5M and 2M the right hand side is approximately equal to the left hand side.
syms Rx Risop Rison
V1=252.79315;
V2=287.20685;
V3=496.51688;
V4=43.483124;
V5=38.272892;
V6=501.72711;
R=100000000;
R1=68220;
R2=68220;
Vx1=17.206846;
Vx2=226.51688;
Vx3=231.72711;
equ1=(V1/Risop)+(V1/R)==(Vx1/Rx)+(V2/Rison)+(V2/R);
equ2= (V3/Risop)+(V3/R)==(V4/Rison)+(V4/R1)+(V4/R)-(Vx2/Rx);
equ3= (V5/Risop)+(V5/R)+(V5/R2)==(V6/Rison)+(Vx3/Rx)+(V6/R);
[Risop,Rison,Rx]=solve([equ1,equ2,equ3],[Risop,Rison,Rx]);
vpa(Risop)
vpa(Rison)
vpa(Rx)
Risop=1500000;
Rison=2000000;
Rx=700000;
LHS=(V1/Risop)+(V1/R);
RHS=(Vx1/Rx)+(V2/Rison)+(V2/R);
vpa(LHS)
vpa(RHS)
LHS=(V3/Risop)+(V3/R);
RHS=(V4/Rison)+(V4/R1)+(V4/R)-(Vx2/Rx);
vpa(LHS)
vpa(RHS)
LHS=(V5/Risop)+(V5/R)+(V5/R2);
RHS=(V6/Rison)+(Vx3/Rx)+(V6/R);
vpa(LHS)
vpa(RHS) Hello,
So I am using solve to find values for 3 variables while having 3 equations. The problem is that my equations dont seem to have unique solution. How can I setup tolerance in a way that the solution only exits within 20k to 2M? For example for values in 700k,1.5M and 2M the right hand side is approximately equal to the left hand side.
syms Rx Risop Rison
V1=252.79315;
V2=287.20685;
V3=496.51688;
V4=43.483124;
V5=38.272892;
V6=501.72711;
R=100000000;
R1=68220;
R2=68220;
Vx1=17.206846;
Vx2=226.51688;
Vx3=231.72711;
equ1=(V1/Risop)+(V1/R)==(Vx1/Rx)+(V2/Rison)+(V2/R);
equ2= (V3/Risop)+(V3/R)==(V4/Rison)+(V4/R1)+(V4/R)-(Vx2/Rx);
equ3= (V5/Risop)+(V5/R)+(V5/R2)==(V6/Rison)+(Vx3/Rx)+(V6/R);
[Risop,Rison,Rx]=solve([equ1,equ2,equ3],[Risop,Rison,Rx]);
vpa(Risop)
vpa(Rison)
vpa(Rx)
Risop=1500000;
Rison=2000000;
Rx=700000;
LHS=(V1/Risop)+(V1/R);
RHS=(Vx1/Rx)+(V2/Rison)+(V2/R);
vpa(LHS)
vpa(RHS)
LHS=(V3/Risop)+(V3/R);
RHS=(V4/Rison)+(V4/R1)+(V4/R)-(Vx2/Rx);
vpa(LHS)
vpa(RHS)
LHS=(V5/Risop)+(V5/R)+(V5/R2);
RHS=(V6/Rison)+(Vx3/Rx)+(V6/R);
vpa(LHS)
vpa(RHS) solve, symbolic MATLAB Answers — New Questions
How to solve problem when using differents types Matlab 2022a va 2024a ?
I have a question the following: When i build the project (using SoC blockset) matlab 2022a without any erros. In addition, when i build it in Matlab 2024a, one big erros in block FIR is showed as the picture. Please, help me to resolve this errors.I have a question the following: When i build the project (using SoC blockset) matlab 2022a without any erros. In addition, when i build it in Matlab 2024a, one big erros in block FIR is showed as the picture. Please, help me to resolve this errors. I have a question the following: When i build the project (using SoC blockset) matlab 2022a without any erros. In addition, when i build it in Matlab 2024a, one big erros in block FIR is showed as the picture. Please, help me to resolve this errors. building fitter MATLAB Answers — New Questions
S function not accepting Input port Sample time
All,
I am using a S function for a counter logic which input sample time is converted by Rate transistion block to 20ms (original is 1 ms). When I run this, counter not incrementing for 20ms..
I have this below code snippet written for this in S function.. Any more functions to be added to enable my S function to get the correct Input Sample time?
Any inputs to crack on will be appreciated.
/*************************************************************************************************/
static void mdlInitializeSampleTimes(SimStruct *S)
{
ssSetSampleTime(S, 0, INHERITED_SAMPLE_TIME);
ssSetInputPortSampleTime(S,0,INHERITED_SAMPLE_TIME);
ssSetOffsetTime(S, 0, 0.0);
}
#define MDL_SET_INPUT_PORT_SAMPLE_TIME
static void mdlSetInputPortSampleTime(SimStruct *S,
int_T portIdx,
real_T sampleTime,
real_T offsetTime)
{
ssSetInputPortSampleTime(S,portIdx,sampleTime);
}
/*************************************************************************************************/All,
I am using a S function for a counter logic which input sample time is converted by Rate transistion block to 20ms (original is 1 ms). When I run this, counter not incrementing for 20ms..
I have this below code snippet written for this in S function.. Any more functions to be added to enable my S function to get the correct Input Sample time?
Any inputs to crack on will be appreciated.
/*************************************************************************************************/
static void mdlInitializeSampleTimes(SimStruct *S)
{
ssSetSampleTime(S, 0, INHERITED_SAMPLE_TIME);
ssSetInputPortSampleTime(S,0,INHERITED_SAMPLE_TIME);
ssSetOffsetTime(S, 0, 0.0);
}
#define MDL_SET_INPUT_PORT_SAMPLE_TIME
static void mdlSetInputPortSampleTime(SimStruct *S,
int_T portIdx,
real_T sampleTime,
real_T offsetTime)
{
ssSetInputPortSampleTime(S,portIdx,sampleTime);
}
/*************************************************************************************************/ All,
I am using a S function for a counter logic which input sample time is converted by Rate transistion block to 20ms (original is 1 ms). When I run this, counter not incrementing for 20ms..
I have this below code snippet written for this in S function.. Any more functions to be added to enable my S function to get the correct Input Sample time?
Any inputs to crack on will be appreciated.
/*************************************************************************************************/
static void mdlInitializeSampleTimes(SimStruct *S)
{
ssSetSampleTime(S, 0, INHERITED_SAMPLE_TIME);
ssSetInputPortSampleTime(S,0,INHERITED_SAMPLE_TIME);
ssSetOffsetTime(S, 0, 0.0);
}
#define MDL_SET_INPUT_PORT_SAMPLE_TIME
static void mdlSetInputPortSampleTime(SimStruct *S,
int_T portIdx,
real_T sampleTime,
real_T offsetTime)
{
ssSetInputPortSampleTime(S,portIdx,sampleTime);
}
/*************************************************************************************************/ s-function MATLAB Answers — New Questions
A Problem with attached images in Access, Windows 10, Office 365
I have built an ACCDB database for my comics. I haven’t yet made the DB relational. I was mostly working on getting my records into the database, and the basic record, which is long but almost all related to individual issues, consists of Publisher Code, Issue Name, Volume Number, Issue Number, copyright year, month of publication (like 01, 02, 03), Box number (where it’s stored) and, as an attachment (not an OLE object) a picture of the cover. The database is large.
Yesterday, I noticed a problem when I tried to attach an image to a record. I can almost complete the process, but at the “commit,” I get a popup “Cannot open database ”. It may not be a database that your application recognizes, or the file may be corrupt.”
I have tried to “Compact and Repair” the database with miserable results. It creates a table (an MDB table, no less) with several system errors.
I spent some time with a Microsoft Tech Support person a few minutes ago, but we didn’t accomplish anything useful. To be complete, we opened MSAccess from the CMD prompt using “MSACCESS.EXE /decompile” (no problem), then opened the actual corrupt ACCDB file from the command prompt (no evident problem), but when I tried to Save As (new file name), the Save As process locked up after about 1,800,000 KB of processing, and I had to kill it.
Any suggestions welcome. I have used OneDrive to try and roll back the corrupt file to a previous version (not too far back, because I’ve put in a lot of work this week!), but those older versions still seem to have the Compact and Repair problem.
I have built an ACCDB database for my comics. I haven’t yet made the DB relational. I was mostly working on getting my records into the database, and the basic record, which is long but almost all related to individual issues, consists of Publisher Code, Issue Name, Volume Number, Issue Number, copyright year, month of publication (like 01, 02, 03), Box number (where it’s stored) and, as an attachment (not an OLE object) a picture of the cover. The database is large.Yesterday, I noticed a problem when I tried to attach an image to a record. I can almost complete the process, but at the “commit,” I get a popup “Cannot open database ”. It may not be a database that your application recognizes, or the file may be corrupt.”I have tried to “Compact and Repair” the database with miserable results. It creates a table (an MDB table, no less) with several system errors.I spent some time with a Microsoft Tech Support person a few minutes ago, but we didn’t accomplish anything useful. To be complete, we opened MSAccess from the CMD prompt using “MSACCESS.EXE /decompile” (no problem), then opened the actual corrupt ACCDB file from the command prompt (no evident problem), but when I tried to Save As (new file name), the Save As process locked up after about 1,800,000 KB of processing, and I had to kill it.Any suggestions welcome. I have used OneDrive to try and roll back the corrupt file to a previous version (not too far back, because I’ve put in a lot of work this week!), but those older versions still seem to have the Compact and Repair problem. Read More
“Satellite Communication simulation(main title)” Undergraduate projects, Do you have any good Ideas?
I have picked the title but don’t know which direction to take it. Looking for any and all inspiration. I took the project as it sounded interesting when reading into it, but I’m a satellite novice, and my degree is in electronics.I have picked the title but don’t know which direction to take it. Looking for any and all inspiration. I took the project as it sounded interesting when reading into it, but I’m a satellite novice, and my degree is in electronics. I have picked the title but don’t know which direction to take it. Looking for any and all inspiration. I took the project as it sounded interesting when reading into it, but I’m a satellite novice, and my degree is in electronics. dissertation, satellite, communication, simulation MATLAB Answers — New Questions
Bivariate normal value standardization
I want to standardize a bivariate normal CDF. I tried with Cholesky decomposition. The results are always different. I don’t know why.
sigma=[1,0.5;0.5,1];
X = [1,1];
z=mvncdf(X,[0,0],sigma);
X1=X*sqrtm(inv(sigma));
z1=mvncdf(X1,[0,0],[1,0;0,1]);
disp([z,z1])I want to standardize a bivariate normal CDF. I tried with Cholesky decomposition. The results are always different. I don’t know why.
sigma=[1,0.5;0.5,1];
X = [1,1];
z=mvncdf(X,[0,0],sigma);
X1=X*sqrtm(inv(sigma));
z1=mvncdf(X1,[0,0],[1,0;0,1]);
disp([z,z1]) I want to standardize a bivariate normal CDF. I tried with Cholesky decomposition. The results are always different. I don’t know why.
sigma=[1,0.5;0.5,1];
X = [1,1];
z=mvncdf(X,[0,0],sigma);
X1=X*sqrtm(inv(sigma));
z1=mvncdf(X1,[0,0],[1,0;0,1]);
disp([z,z1]) mvncdf, chol MATLAB Answers — New Questions
edge canary 128.0.2739.0 Error code: STATUS_ACCESS_VIOLATION on a lot of pages
for example https://www.skyscrapercity.com/
disabling extensions doesn’t help, inprivate windows allows to work.
for example https://www.skyscrapercity.com/disabling extensions doesn’t help, inprivate windows allows to work. Read More
HELP WITH THIS PLEASE
Hi everyone
I’ve tried to install SQL Sever in my Pc but before the process started a message just pop out
Has anyone have any idea how to fix it?
I need help please :c
Hi everyoneI’ve tried to install SQL Sever in my Pc but before the process started a message just pop outHas anyone have any idea how to fix it?I need help please :c Read More
Bitlocker setup the max attemps before need the recovery code
I’m trying to configure Bitlocker with GPO for Windows 11 H2 workstations.
My need : after 4 wrong PIN code entered, the user must enter the recovery code.
I’ve tried these GPO, without success :
Computer Configuration > Administrative Templates > System > Trusted Platform Module Services
Standard User Individual Lockout Threshold : EnabledMaximum number of authorization failures per duration = 4Standard User Total Lockout Threshold : EnabledMaximum number of authorization failures per duration = 4
Computer Configuration > Administrative Templates > Windows Components > BitLocker Drive Encryption > Operating System Drivers
Allow enhanced PINs for startup : EnableConfigure minimum PIN length for startup : EnabledMinimum charcaters = 8
Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options
Interactive logon: Machine account lockout threshold = 4
With PowerShell :
Get-Tpm
LockoutHealTime = 10 minutesLockoutMax = 31
Clear-Tpm
LockoutHealTime = 2 hoursLockoutMax = 10
I dont understand why the TPM value (lockoutMax) is 31. I want it equals 4. Where I’m wrong?
Thanks in advance
I’m trying to configure Bitlocker with GPO for Windows 11 H2 workstations.My need : after 4 wrong PIN code entered, the user must enter the recovery code. I’ve tried these GPO, without success : Computer Configuration > Administrative Templates > System > Trusted Platform Module ServicesStandard User Individual Lockout Threshold : EnabledMaximum number of authorization failures per duration = 4Standard User Total Lockout Threshold : EnabledMaximum number of authorization failures per duration = 4Computer Configuration > Administrative Templates > Windows Components > BitLocker Drive Encryption > Operating System DriversAllow enhanced PINs for startup : EnableConfigure minimum PIN length for startup : EnabledMinimum charcaters = 8Computer Configuration > Windows Settings > Security Settings > Local Policies > Security OptionsInteractive logon: Machine account lockout threshold = 4With PowerShell :Get-TpmLockoutHealTime = 10 minutesLockoutMax = 31 Clear-TpmLockoutHealTime = 2 hoursLockoutMax = 10 I dont understand why the TPM value (lockoutMax) is 31. I want it equals 4. Where I’m wrong? Thanks in advance Read More
Generating a 2D array from sumifs on the columns of another 2D array
I have a 2D array of costs by month and want a sumif equivalent based on another dynamic array of Divisions see below. i.e. Jan Div 1 is in M2 so I can refer to this as M2# to get the full table Jan to May for all the data. The divisions for this table are in K2 so K2# gets those
I also have the unique divisions Div 1 to 3 in an array in K10 so K10# gets that. I want to build dynamically the totals by division table. I can easily do this row by row using
=BYCOL(M$2#, LAMBDA(c,SUMPRODUCT(($K$2#=$K10)*c))) but this just gives me the first row. I can copy down for the rest. But I want them in a single 2D array and just cannot get my head around how to do this. I tried embedding in a ToRow on list of divisions. I tried dynamic VStacking but can’t figure out how to get this to work.
Each table will be fully dynamic so I need the output to be fully dynamic too
I know I can’t use Sumifs but opted for sumproduct over filter. I don’t mind what is used ultimately but need the simplest possible solution that others later may understand. Its always a trade off between getting the coolest solution and one that is most easy to follow
So many wiser people than me out there and this would save the day for me. Many thanks
I have a 2D array of costs by month and want a sumif equivalent based on another dynamic array of Divisions see below. i.e. Jan Div 1 is in M2 so I can refer to this as M2# to get the full table Jan to May for all the data. The divisions for this table are in K2 so K2# gets thoseI also have the unique divisions Div 1 to 3 in an array in K10 so K10# gets that. I want to build dynamically the totals by division table. I can easily do this row by row using=BYCOL(M$2#, LAMBDA(c,SUMPRODUCT(($K$2#=$K10)*c))) but this just gives me the first row. I can copy down for the rest. But I want them in a single 2D array and just cannot get my head around how to do this. I tried embedding in a ToRow on list of divisions. I tried dynamic VStacking but can’t figure out how to get this to work.Each table will be fully dynamic so I need the output to be fully dynamic tooI know I can’t use Sumifs but opted for sumproduct over filter. I don’t mind what is used ultimately but need the simplest possible solution that others later may understand. Its always a trade off between getting the coolest solution and one that is most easy to follow So many wiser people than me out there and this would save the day for me. Many thanks Read More
CREAR TABLA DE CONTENIDO EN MICROSOFT EDGE
Buenas tardes
Saben si existe alguna posibilidad de crear tablas de contenido a través de lector de pdf de Edge, creo es lo único que le falta para ser la aplicación perfecta.
¡Gracias!
Buenas tardesSaben si existe alguna posibilidad de crear tablas de contenido a través de lector de pdf de Edge, creo es lo único que le falta para ser la aplicación perfecta. ¡Gracias! Read More