Tag Archives: matlab
Q-learning movement restriction
I am Implementing Q learning on 5 x 5 grid using the following code.
%% Create Grid
GW = createGridWorld(5,5);
GW.CurrentState = ‘[1,1]’;
GW.TerminalStates = ‘[5,1]’
GW.ObstacleStates = ["[3,1]";"[3,2]";"[3,3]"];
updateStateTranstionForObstacles(GW)
GW.T(state2idx(GW,"[2,2]"),:,:) = 0;
GW.T(state2idx(GW,"[2,2]"),state2idx(GW,"[4,2]"),:) = 1;
It creates a 5 x 5 grid starts from [1,1] and termnates at [5,1]. I want the starting point random in this 5 x 5 grid and it only move around its 8 neighbours and terminate.I am Implementing Q learning on 5 x 5 grid using the following code.
%% Create Grid
GW = createGridWorld(5,5);
GW.CurrentState = ‘[1,1]’;
GW.TerminalStates = ‘[5,1]’
GW.ObstacleStates = ["[3,1]";"[3,2]";"[3,3]"];
updateStateTranstionForObstacles(GW)
GW.T(state2idx(GW,"[2,2]"),:,:) = 0;
GW.T(state2idx(GW,"[2,2]"),state2idx(GW,"[4,2]"),:) = 1;
It creates a 5 x 5 grid starts from [1,1] and termnates at [5,1]. I want the starting point random in this 5 x 5 grid and it only move around its 8 neighbours and terminate. I am Implementing Q learning on 5 x 5 grid using the following code.
%% Create Grid
GW = createGridWorld(5,5);
GW.CurrentState = ‘[1,1]’;
GW.TerminalStates = ‘[5,1]’
GW.ObstacleStates = ["[3,1]";"[3,2]";"[3,3]"];
updateStateTranstionForObstacles(GW)
GW.T(state2idx(GW,"[2,2]"),:,:) = 0;
GW.T(state2idx(GW,"[2,2]"),state2idx(GW,"[4,2]"),:) = 1;
It creates a 5 x 5 grid starts from [1,1] and termnates at [5,1]. I want the starting point random in this 5 x 5 grid and it only move around its 8 neighbours and terminate. q-learning, reinforcement learning MATLAB Answers — New Questions
Does the cameraboard API support Raspberry PI HQ Camera in full resolution?
Hi, I tried to use MATLAB to control a Raspberry PI HQ Camera connected with a PI Zero W by using the "cameraboard" API. It seems like the highest resolution available in the cameraboard setting is 1920×1080. However, the HQ Camera has a resolution of 4056×3040. Does anyone know how to get around this so that I could use the full resolution of HQ camera?Hi, I tried to use MATLAB to control a Raspberry PI HQ Camera connected with a PI Zero W by using the "cameraboard" API. It seems like the highest resolution available in the cameraboard setting is 1920×1080. However, the HQ Camera has a resolution of 4056×3040. Does anyone know how to get around this so that I could use the full resolution of HQ camera? Hi, I tried to use MATLAB to control a Raspberry PI HQ Camera connected with a PI Zero W by using the "cameraboard" API. It seems like the highest resolution available in the cameraboard setting is 1920×1080. However, the HQ Camera has a resolution of 4056×3040. Does anyone know how to get around this so that I could use the full resolution of HQ camera? raspberry pi, hq camera, cameraboard, pi zero w MATLAB Answers — New Questions
How to change input values for weight classfication layer.
I am using weigth classfication fucntion which given as example in MATALAB documentaion.
But whenI use it in my network it gives error "Error using ‘backwardLoss’ in Layer weightedClassificationLayer. The function threw an error and could not be executed". I think the error is due to input value but i am not sure where to change these valuse. The weighted classification function works well according to input valuse assigned in example.
The link of example https://in.mathworks.com/help/deeplearning/ug/create-custom-weighted-cross-entropy-classification-layer.html
the code I am using for weighted classification function
%%%%%%
classdef weightedClassificationLayer < nnet.layer.ClassificationLayer
properties
% Row vector of weights corresponding to the classes in the
% training data.
ClassWeights
end
methods
function layer = weightedClassificationLayer(classWeights, name)
% layer = weightedClassificationLayer(classWeights) creates a
% weighted cross entropy loss layer. classWeights is a row
% vector of weights corresponding to the classes in the order
% that they appear in the training data.
%
% layer = weightedClassificationLayer(classWeights, name)
% additionally specifies the layer name.
% Set class weights.
layer.ClassWeights = classWeights;
% Set layer name.
if nargin == 2
layer.Name = name;
end
% Set layer description
layer.Description = ‘Weighted cross entropy’;
end
function loss = forwardLoss(layer, Y, T)
% loss = forwardLoss(layer, Y, T) returns the weighted cross
% entropy loss between the predictions Y and the training
% targets T.
N = size(Y,4);
Y = squeeze(Y);
T = squeeze(T);
W = layer.ClassWeights;
loss = -sum(W*(T.*log(Y)))/N;
end
function dLdY = backwardLoss(layer, Y, T)
% dLdX = backwardLoss(layer, Y, T) returns the derivatives of
% the weighted cross entropy loss with respect to the
% predictions Y.
[~,~,K,N] = size(Y);
Y = squeeze(Y);
T = squeeze(T);
W = layer.ClassWeights;
dLdY = -(W’.*T./Y)/N;
dLdY = reshape(dLdY,[1 1 K N]);
end
end
endI am using weigth classfication fucntion which given as example in MATALAB documentaion.
But whenI use it in my network it gives error "Error using ‘backwardLoss’ in Layer weightedClassificationLayer. The function threw an error and could not be executed". I think the error is due to input value but i am not sure where to change these valuse. The weighted classification function works well according to input valuse assigned in example.
The link of example https://in.mathworks.com/help/deeplearning/ug/create-custom-weighted-cross-entropy-classification-layer.html
the code I am using for weighted classification function
%%%%%%
classdef weightedClassificationLayer < nnet.layer.ClassificationLayer
properties
% Row vector of weights corresponding to the classes in the
% training data.
ClassWeights
end
methods
function layer = weightedClassificationLayer(classWeights, name)
% layer = weightedClassificationLayer(classWeights) creates a
% weighted cross entropy loss layer. classWeights is a row
% vector of weights corresponding to the classes in the order
% that they appear in the training data.
%
% layer = weightedClassificationLayer(classWeights, name)
% additionally specifies the layer name.
% Set class weights.
layer.ClassWeights = classWeights;
% Set layer name.
if nargin == 2
layer.Name = name;
end
% Set layer description
layer.Description = ‘Weighted cross entropy’;
end
function loss = forwardLoss(layer, Y, T)
% loss = forwardLoss(layer, Y, T) returns the weighted cross
% entropy loss between the predictions Y and the training
% targets T.
N = size(Y,4);
Y = squeeze(Y);
T = squeeze(T);
W = layer.ClassWeights;
loss = -sum(W*(T.*log(Y)))/N;
end
function dLdY = backwardLoss(layer, Y, T)
% dLdX = backwardLoss(layer, Y, T) returns the derivatives of
% the weighted cross entropy loss with respect to the
% predictions Y.
[~,~,K,N] = size(Y);
Y = squeeze(Y);
T = squeeze(T);
W = layer.ClassWeights;
dLdY = -(W’.*T./Y)/N;
dLdY = reshape(dLdY,[1 1 K N]);
end
end
end I am using weigth classfication fucntion which given as example in MATALAB documentaion.
But whenI use it in my network it gives error "Error using ‘backwardLoss’ in Layer weightedClassificationLayer. The function threw an error and could not be executed". I think the error is due to input value but i am not sure where to change these valuse. The weighted classification function works well according to input valuse assigned in example.
The link of example https://in.mathworks.com/help/deeplearning/ug/create-custom-weighted-cross-entropy-classification-layer.html
the code I am using for weighted classification function
%%%%%%
classdef weightedClassificationLayer < nnet.layer.ClassificationLayer
properties
% Row vector of weights corresponding to the classes in the
% training data.
ClassWeights
end
methods
function layer = weightedClassificationLayer(classWeights, name)
% layer = weightedClassificationLayer(classWeights) creates a
% weighted cross entropy loss layer. classWeights is a row
% vector of weights corresponding to the classes in the order
% that they appear in the training data.
%
% layer = weightedClassificationLayer(classWeights, name)
% additionally specifies the layer name.
% Set class weights.
layer.ClassWeights = classWeights;
% Set layer name.
if nargin == 2
layer.Name = name;
end
% Set layer description
layer.Description = ‘Weighted cross entropy’;
end
function loss = forwardLoss(layer, Y, T)
% loss = forwardLoss(layer, Y, T) returns the weighted cross
% entropy loss between the predictions Y and the training
% targets T.
N = size(Y,4);
Y = squeeze(Y);
T = squeeze(T);
W = layer.ClassWeights;
loss = -sum(W*(T.*log(Y)))/N;
end
function dLdY = backwardLoss(layer, Y, T)
% dLdX = backwardLoss(layer, Y, T) returns the derivatives of
% the weighted cross entropy loss with respect to the
% predictions Y.
[~,~,K,N] = size(Y);
Y = squeeze(Y);
T = squeeze(T);
W = layer.ClassWeights;
dLdY = -(W’.*T./Y)/N;
dLdY = reshape(dLdY,[1 1 K N]);
end
end
end deep learning, neural networks MATLAB Answers — New Questions
Trying to find the integral under the curve at a certain bandwidth
clear all
close all
clc
L=10;
n=1.45;
c=2.9979e8;
dt = 6e-12;
T=10*2*L*n/c;
t = (-T/2/dt:1:T/2/dt)*dt;
Nt=round(T/dt);
fsine = 1e9;
vsine = 1;
phi = vsine*sin(2*pi*fsine*t);
EL1t=1.274e7*exp(1i*phi);
FP=fft(phi);
fs=1/dt/Nt;
Fs=(-1/dt/2:fs:1/dt/2-1);
Z=plot(Fs,fftshift(abs(fft(EL1t))));
%xlim([-0.5e10 0.5e10]);
pow = fftshift(abs(fft(EL1t)));
freq_f = 16e9;
% nnz(Fs==freq_f) % returns 0
[val,ind] = min(abs(Fs-freq_f)); % Find freq closest to 16 GHz
disp(Fs(ind));
disp(pow(ind));
I wanted to find the area under the curve at 16GHz with 50MHz on the right and left side range.
I am trying to use trapz command but still a bit confused…clear all
close all
clc
L=10;
n=1.45;
c=2.9979e8;
dt = 6e-12;
T=10*2*L*n/c;
t = (-T/2/dt:1:T/2/dt)*dt;
Nt=round(T/dt);
fsine = 1e9;
vsine = 1;
phi = vsine*sin(2*pi*fsine*t);
EL1t=1.274e7*exp(1i*phi);
FP=fft(phi);
fs=1/dt/Nt;
Fs=(-1/dt/2:fs:1/dt/2-1);
Z=plot(Fs,fftshift(abs(fft(EL1t))));
%xlim([-0.5e10 0.5e10]);
pow = fftshift(abs(fft(EL1t)));
freq_f = 16e9;
% nnz(Fs==freq_f) % returns 0
[val,ind] = min(abs(Fs-freq_f)); % Find freq closest to 16 GHz
disp(Fs(ind));
disp(pow(ind));
I wanted to find the area under the curve at 16GHz with 50MHz on the right and left side range.
I am trying to use trapz command but still a bit confused… clear all
close all
clc
L=10;
n=1.45;
c=2.9979e8;
dt = 6e-12;
T=10*2*L*n/c;
t = (-T/2/dt:1:T/2/dt)*dt;
Nt=round(T/dt);
fsine = 1e9;
vsine = 1;
phi = vsine*sin(2*pi*fsine*t);
EL1t=1.274e7*exp(1i*phi);
FP=fft(phi);
fs=1/dt/Nt;
Fs=(-1/dt/2:fs:1/dt/2-1);
Z=plot(Fs,fftshift(abs(fft(EL1t))));
%xlim([-0.5e10 0.5e10]);
pow = fftshift(abs(fft(EL1t)));
freq_f = 16e9;
% nnz(Fs==freq_f) % returns 0
[val,ind] = min(abs(Fs-freq_f)); % Find freq closest to 16 GHz
disp(Fs(ind));
disp(pow(ind));
I wanted to find the area under the curve at 16GHz with 50MHz on the right and left side range.
I am trying to use trapz command but still a bit confused… fft, plot, area MATLAB Answers — New Questions
GetEndpoints Failed error when connecting to an OPCUA simulation server
I am trying to configure a setup to retrieve data from the IntegrationObject simulation server. I am able to store data in it from a remote host using pyhton. I can also connect to the server as long as I am running MATLAB 2022b in the same host. But when it comes to connect to the server from another remote host using MATLAB 2022b it fires an internal error saying it cannot retrieve the Endpoints
>> s=opcuaserverinfo(‘u114193’)
s =
OPC UA ServerInfo ‘Integration Objects UA Server Simulator’:
Connection Information:
Hostname: ‘u114193’
Port: 62640
Endpoints: [1×5 opc.ua.EndpointDescription]
Security Information:
BestMessageSecurity: SignAndEncrypt
BestChannelSecurity: Basic256Sha256
UserTokenTypes: {‘Anonymous’ ‘Username’ ‘Certificate’}
>> uac=opcua(s)
uac =
OPC UA Client:
Server Information:
Name: ‘Integration Objects UA Server Simulator’
Hostname: ‘u114193’
Port: 62640
EndpointUrl: ‘opc.tcp://localhost:62640/IntegrationObjects/ServerSimulator’
Connection Information:
Timeout: 10
Status: ‘Disconnected’
ServerState: ‘<Not connected>’
Security Information:
MessageSecurityMode: SignAndEncrypt
ChannelSecurityPolicy: Basic256Sha256
Endpoints: [1×5 opc.ua.EndpointDescription]
>> connect(uac,’opcua_user’,’mipass’)
Error using matlabshared.asyncio.internal.MessageHandler/onError
GetEndpoints Failed.
Error in matlabshared.asyncio.internal.Channel/open (line 275)
obj.ChannelImpl.open(options);
Error in opc.ua.Client/connect (line 567)
clnt.AsyncChannel.open(options);
Username and password are correct. Anonymous access gives the same result. Using the EndpintURL does not help either from the remote host. I have notice that the endpointURL refers to localhost, but the hostname is ok, so I presume It trys to conenect to the remote host.
I can browse the server from any machine using various 3th party OPCUA browsers, Firewall is off
If using the IP of the server, I get the same result, but anyhow, I have updated C:WindowsSystem32driversetchosts with the correspondig entry for host u114193
I have also followed the instructions to allow DCOM with no security but this prevented my win10 64 bit from booting correctly (https://es.mathworks.com/help/icomm/ug/preparing-to-use-opc-toolbox-software.html)
any hint on this issue will be greatly appreciated?
Best regards.I am trying to configure a setup to retrieve data from the IntegrationObject simulation server. I am able to store data in it from a remote host using pyhton. I can also connect to the server as long as I am running MATLAB 2022b in the same host. But when it comes to connect to the server from another remote host using MATLAB 2022b it fires an internal error saying it cannot retrieve the Endpoints
>> s=opcuaserverinfo(‘u114193’)
s =
OPC UA ServerInfo ‘Integration Objects UA Server Simulator’:
Connection Information:
Hostname: ‘u114193’
Port: 62640
Endpoints: [1×5 opc.ua.EndpointDescription]
Security Information:
BestMessageSecurity: SignAndEncrypt
BestChannelSecurity: Basic256Sha256
UserTokenTypes: {‘Anonymous’ ‘Username’ ‘Certificate’}
>> uac=opcua(s)
uac =
OPC UA Client:
Server Information:
Name: ‘Integration Objects UA Server Simulator’
Hostname: ‘u114193’
Port: 62640
EndpointUrl: ‘opc.tcp://localhost:62640/IntegrationObjects/ServerSimulator’
Connection Information:
Timeout: 10
Status: ‘Disconnected’
ServerState: ‘<Not connected>’
Security Information:
MessageSecurityMode: SignAndEncrypt
ChannelSecurityPolicy: Basic256Sha256
Endpoints: [1×5 opc.ua.EndpointDescription]
>> connect(uac,’opcua_user’,’mipass’)
Error using matlabshared.asyncio.internal.MessageHandler/onError
GetEndpoints Failed.
Error in matlabshared.asyncio.internal.Channel/open (line 275)
obj.ChannelImpl.open(options);
Error in opc.ua.Client/connect (line 567)
clnt.AsyncChannel.open(options);
Username and password are correct. Anonymous access gives the same result. Using the EndpintURL does not help either from the remote host. I have notice that the endpointURL refers to localhost, but the hostname is ok, so I presume It trys to conenect to the remote host.
I can browse the server from any machine using various 3th party OPCUA browsers, Firewall is off
If using the IP of the server, I get the same result, but anyhow, I have updated C:WindowsSystem32driversetchosts with the correspondig entry for host u114193
I have also followed the instructions to allow DCOM with no security but this prevented my win10 64 bit from booting correctly (https://es.mathworks.com/help/icomm/ug/preparing-to-use-opc-toolbox-software.html)
any hint on this issue will be greatly appreciated?
Best regards. I am trying to configure a setup to retrieve data from the IntegrationObject simulation server. I am able to store data in it from a remote host using pyhton. I can also connect to the server as long as I am running MATLAB 2022b in the same host. But when it comes to connect to the server from another remote host using MATLAB 2022b it fires an internal error saying it cannot retrieve the Endpoints
>> s=opcuaserverinfo(‘u114193’)
s =
OPC UA ServerInfo ‘Integration Objects UA Server Simulator’:
Connection Information:
Hostname: ‘u114193’
Port: 62640
Endpoints: [1×5 opc.ua.EndpointDescription]
Security Information:
BestMessageSecurity: SignAndEncrypt
BestChannelSecurity: Basic256Sha256
UserTokenTypes: {‘Anonymous’ ‘Username’ ‘Certificate’}
>> uac=opcua(s)
uac =
OPC UA Client:
Server Information:
Name: ‘Integration Objects UA Server Simulator’
Hostname: ‘u114193’
Port: 62640
EndpointUrl: ‘opc.tcp://localhost:62640/IntegrationObjects/ServerSimulator’
Connection Information:
Timeout: 10
Status: ‘Disconnected’
ServerState: ‘<Not connected>’
Security Information:
MessageSecurityMode: SignAndEncrypt
ChannelSecurityPolicy: Basic256Sha256
Endpoints: [1×5 opc.ua.EndpointDescription]
>> connect(uac,’opcua_user’,’mipass’)
Error using matlabshared.asyncio.internal.MessageHandler/onError
GetEndpoints Failed.
Error in matlabshared.asyncio.internal.Channel/open (line 275)
obj.ChannelImpl.open(options);
Error in opc.ua.Client/connect (line 567)
clnt.AsyncChannel.open(options);
Username and password are correct. Anonymous access gives the same result. Using the EndpintURL does not help either from the remote host. I have notice that the endpointURL refers to localhost, but the hostname is ok, so I presume It trys to conenect to the remote host.
I can browse the server from any machine using various 3th party OPCUA browsers, Firewall is off
If using the IP of the server, I get the same result, but anyhow, I have updated C:WindowsSystem32driversetchosts with the correspondig entry for host u114193
I have also followed the instructions to allow DCOM with no security but this prevented my win10 64 bit from booting correctly (https://es.mathworks.com/help/icomm/ug/preparing-to-use-opc-toolbox-software.html)
any hint on this issue will be greatly appreciated?
Best regards. opcua, industrial communication toolbox MATLAB Answers — New Questions
How do I get the x and y values of the zoomed in portion of a linear plot from matlab figure?
I plot a wave file in matlab (audioread, plot) whcih looks something like this
I zoom into a section of this wav file, which now looks like this:
Is there a way to get all the x and y values of only this zoomed in section of the plot in the workspace?I plot a wave file in matlab (audioread, plot) whcih looks something like this
I zoom into a section of this wav file, which now looks like this:
Is there a way to get all the x and y values of only this zoomed in section of the plot in the workspace? I plot a wave file in matlab (audioread, plot) whcih looks something like this
I zoom into a section of this wav file, which now looks like this:
Is there a way to get all the x and y values of only this zoomed in section of the plot in the workspace? figure MATLAB Answers — New Questions
i have a problem with the first line of my code . I don’t know what does it mean . “Error in obtain_current_week_data_dt>obatin_current_week_actual_load_data (line 64) Current_week_actual_load_data(1,1)=Current_time_actual_load;”
Current_week_actual_load_data(1,1)=Current_time_actual_load;
temp1=Week_end_timestamp(1:10);
temp2=Week_end_timestamp(12:13);
temp3=Week_end_timestamp(14:15);
temp4=Week_end_timestamp(16:17);
Formated_string=[temp1,’ ‘,temp2,’:’,temp3,’:’,temp4];Current_week_actual_load_data(1,1)=Current_time_actual_load;
temp1=Week_end_timestamp(1:10);
temp2=Week_end_timestamp(12:13);
temp3=Week_end_timestamp(14:15);
temp4=Week_end_timestamp(16:17);
Formated_string=[temp1,’ ‘,temp2,’:’,temp3,’:’,temp4]; Current_week_actual_load_data(1,1)=Current_time_actual_load;
temp1=Week_end_timestamp(1:10);
temp2=Week_end_timestamp(12:13);
temp3=Week_end_timestamp(14:15);
temp4=Week_end_timestamp(16:17);
Formated_string=[temp1,’ ‘,temp2,’:’,temp3,’:’,temp4]; eror, code, definig MATLAB Answers — New Questions
Anyone has TOPS model in WideBand Signal DOA?
Anyone has TOPS model in WideBand Signal DOA?Anyone has TOPS model in WideBand Signal DOA? Anyone has TOPS model in WideBand Signal DOA? signal processing, doa, wideband signal MATLAB Answers — New Questions
What is the Len function do? It used to exist in MatLab 4.2, but now it doesn’t any insight?
R11o = [R11*cos(pi/2-phi2o-nu8),R11*sin(pi/2-phi2o-nu8)];
R023o = [R023*cos(pi/phi2o), R023*sin(pi/phi2o)];
R114o = [-R114*sin(nu7-pi/2+phi3o),-R114*cos(nu7-pi/2+phi3o)];
cthet10 = dot((R11o-R023o),R114o)/(len(R11o-R023o)*len(R114o));
Lsnlo = sqrt(Len(R114o)^2+len(R11o-R023o)^2-2*len(R114o)*len(R11o-R023o)*cthet10);R11o = [R11*cos(pi/2-phi2o-nu8),R11*sin(pi/2-phi2o-nu8)];
R023o = [R023*cos(pi/phi2o), R023*sin(pi/phi2o)];
R114o = [-R114*sin(nu7-pi/2+phi3o),-R114*cos(nu7-pi/2+phi3o)];
cthet10 = dot((R11o-R023o),R114o)/(len(R11o-R023o)*len(R114o));
Lsnlo = sqrt(Len(R114o)^2+len(R11o-R023o)^2-2*len(R114o)*len(R11o-R023o)*cthet10); R11o = [R11*cos(pi/2-phi2o-nu8),R11*sin(pi/2-phi2o-nu8)];
R023o = [R023*cos(pi/phi2o), R023*sin(pi/phi2o)];
R114o = [-R114*sin(nu7-pi/2+phi3o),-R114*cos(nu7-pi/2+phi3o)];
cthet10 = dot((R11o-R023o),R114o)/(len(R11o-R023o)*len(R114o));
Lsnlo = sqrt(Len(R114o)^2+len(R11o-R023o)^2-2*len(R114o)*len(R11o-R023o)*cthet10); len function, does it even exist? MATLAB Answers — New Questions
i have a matlab file with extension .MLAPP. i am not able to open it. does anyone knows the possible problems?
how to open mlapp file.
file is attached belowhow to open mlapp file.
file is attached below how to open mlapp file.
file is attached below mlapp, graphics, appbuilder MATLAB Answers — New Questions
Prepare a MATLAB code that develop Response Spectrum (Acceleration & Time ordinates) based on acceleration (m/s/s) & time(seconds) records contained in a .txt file?
Prepare a MATLAB code that develop Response Spectrum (Acceleration & Time ordinates) based on acceleration (m/s/s) & time(seconds) records contained in a .txt file for multiple damping ratio (i.e. 0%, 2%, 5% etc.)?
Please find the attached acceleration-time record (.txt file).Prepare a MATLAB code that develop Response Spectrum (Acceleration & Time ordinates) based on acceleration (m/s/s) & time(seconds) records contained in a .txt file for multiple damping ratio (i.e. 0%, 2%, 5% etc.)?
Please find the attached acceleration-time record (.txt file). Prepare a MATLAB code that develop Response Spectrum (Acceleration & Time ordinates) based on acceleration (m/s/s) & time(seconds) records contained in a .txt file for multiple damping ratio (i.e. 0%, 2%, 5% etc.)?
Please find the attached acceleration-time record (.txt file). response spectrum, ground motion records MATLAB Answers — New Questions
How do I fix my Nan issue within a recursive function?
For my recursive function, I am trying to create a hexadoku solver. One of my variables ‘mm’ keeps outputting a NaN even when I try to change the NaNs into -1. I also believe that there is a base I am missing in order for this function to end. I do realize that the readmatrix function will output a NaN where there isn’t an integer, but that is why there is the M(isnan(M)) = -1.
M = readmatrix("puzzle_1.in","FileType","text");
M(isnan(M)) = -1;
S = zeros(size(M));
Hexadoku(M,S)
function [S] = Hexadoku(M,S)
if ~exist(‘S’)
S = zeros(size(M));
end
FirstID = M==-1;
if isempty(FirstID)
M = S(:,:,size(S,4)+2);
else
[i,j] = ind2sub([16,16],FirstID);
for k = 1:16
ii = (ceil(i/4)-1)*4+5;
jj = (ceil(j/4)-1)*4+1;
mm = M(ii:ii+3,jj:jj+3);
mm(isnan(mm)) = -1;
if (M(i+1,:)==k)==0
if (M(:,j)==k)==0
if (mm(:)==k)==0
M(i+1,j) = k;
S = Hexadoku(M,S);
end
end
end
end
end
endFor my recursive function, I am trying to create a hexadoku solver. One of my variables ‘mm’ keeps outputting a NaN even when I try to change the NaNs into -1. I also believe that there is a base I am missing in order for this function to end. I do realize that the readmatrix function will output a NaN where there isn’t an integer, but that is why there is the M(isnan(M)) = -1.
M = readmatrix("puzzle_1.in","FileType","text");
M(isnan(M)) = -1;
S = zeros(size(M));
Hexadoku(M,S)
function [S] = Hexadoku(M,S)
if ~exist(‘S’)
S = zeros(size(M));
end
FirstID = M==-1;
if isempty(FirstID)
M = S(:,:,size(S,4)+2);
else
[i,j] = ind2sub([16,16],FirstID);
for k = 1:16
ii = (ceil(i/4)-1)*4+5;
jj = (ceil(j/4)-1)*4+1;
mm = M(ii:ii+3,jj:jj+3);
mm(isnan(mm)) = -1;
if (M(i+1,:)==k)==0
if (M(:,j)==k)==0
if (mm(:)==k)==0
M(i+1,j) = k;
S = Hexadoku(M,S);
end
end
end
end
end
end For my recursive function, I am trying to create a hexadoku solver. One of my variables ‘mm’ keeps outputting a NaN even when I try to change the NaNs into -1. I also believe that there is a base I am missing in order for this function to end. I do realize that the readmatrix function will output a NaN where there isn’t an integer, but that is why there is the M(isnan(M)) = -1.
M = readmatrix("puzzle_1.in","FileType","text");
M(isnan(M)) = -1;
S = zeros(size(M));
Hexadoku(M,S)
function [S] = Hexadoku(M,S)
if ~exist(‘S’)
S = zeros(size(M));
end
FirstID = M==-1;
if isempty(FirstID)
M = S(:,:,size(S,4)+2);
else
[i,j] = ind2sub([16,16],FirstID);
for k = 1:16
ii = (ceil(i/4)-1)*4+5;
jj = (ceil(j/4)-1)*4+1;
mm = M(ii:ii+3,jj:jj+3);
mm(isnan(mm)) = -1;
if (M(i+1,:)==k)==0
if (M(:,j)==k)==0
if (mm(:)==k)==0
M(i+1,j) = k;
S = Hexadoku(M,S);
end
end
end
end
end
end matrix, matrix manipulation, for loop, loops MATLAB Answers — New Questions
Subs does not work in my code.
Hi, my function should replace all the monomials that have negative degree from -M to -(4*M+8) with 1, since 0 will give an error, nevertheless, it doesn’t work the substitution function. Every time I try it, it doesn’t work. Could you please give me some ideas on how to solve this issue.
function [sMnew] = Cubic(k,M)
n= 3*k+1;
x= sym(‘x’);
c = sym( ‘c’, [1 M+3]);
% Define the sum of monomials with negative coefficients
CC = x;
for i = 2:M+3
CC = CC + c(1,i)*x^(-i+1);
end
sM = expand(CC^(n));
for i = M:1:4*M+8
sMnew = subs(sM, x^(-i), 1);
endHi, my function should replace all the monomials that have negative degree from -M to -(4*M+8) with 1, since 0 will give an error, nevertheless, it doesn’t work the substitution function. Every time I try it, it doesn’t work. Could you please give me some ideas on how to solve this issue.
function [sMnew] = Cubic(k,M)
n= 3*k+1;
x= sym(‘x’);
c = sym( ‘c’, [1 M+3]);
% Define the sum of monomials with negative coefficients
CC = x;
for i = 2:M+3
CC = CC + c(1,i)*x^(-i+1);
end
sM = expand(CC^(n));
for i = M:1:4*M+8
sMnew = subs(sM, x^(-i), 1);
end Hi, my function should replace all the monomials that have negative degree from -M to -(4*M+8) with 1, since 0 will give an error, nevertheless, it doesn’t work the substitution function. Every time I try it, it doesn’t work. Could you please give me some ideas on how to solve this issue.
function [sMnew] = Cubic(k,M)
n= 3*k+1;
x= sym(‘x’);
c = sym( ‘c’, [1 M+3]);
% Define the sum of monomials with negative coefficients
CC = x;
for i = 2:M+3
CC = CC + c(1,i)*x^(-i+1);
end
sM = expand(CC^(n));
for i = M:1:4*M+8
sMnew = subs(sM, x^(-i), 1);
end subs function, symbolic, matlab MATLAB Answers — New Questions
Error Using CAT12 Basic Models
Hello! I am trying to run the Basic Models function on CAT12 but every time I run the batch editor after specifying my model, I get the following error:
————————————————————————
15-Apr-2024 11:32:13 – Running job #1
————————————————————————
15-Apr-2024 11:32:13 – Running ‘Basic models’
Mapping files : …done
Design configuration : …done
Saving SPM configuration : …SPM.mat saved
Design reporting : 15-Apr-2024 11:32:22 – Failed ‘Basic models’
Error using matlab.graphics.axis.Axes/set
Invalid or deleted object.
In file "/Users/arjunthanaraju/Downloads/PhD/spm12/spm_DesRep.m" (v6070), function "spm_DesRep" at line 734.
In file "/Users/arjunthanaraju/Downloads/PhD/spm12/config/spm_run_factorial_design.m" (v7739), function "spm_run_factorial_design" at line 1073.
In file "/Users/arjunthanaraju/Downloads/PhD/spm12/toolbox/cat12/cat_conf_factorial.m" (???), function "cat_run_factorial_design" at line 1440.
The following modules did not run:
Failed: Basic models
Could someone help me overcome this error, please? Thanks!Hello! I am trying to run the Basic Models function on CAT12 but every time I run the batch editor after specifying my model, I get the following error:
————————————————————————
15-Apr-2024 11:32:13 – Running job #1
————————————————————————
15-Apr-2024 11:32:13 – Running ‘Basic models’
Mapping files : …done
Design configuration : …done
Saving SPM configuration : …SPM.mat saved
Design reporting : 15-Apr-2024 11:32:22 – Failed ‘Basic models’
Error using matlab.graphics.axis.Axes/set
Invalid or deleted object.
In file "/Users/arjunthanaraju/Downloads/PhD/spm12/spm_DesRep.m" (v6070), function "spm_DesRep" at line 734.
In file "/Users/arjunthanaraju/Downloads/PhD/spm12/config/spm_run_factorial_design.m" (v7739), function "spm_run_factorial_design" at line 1073.
In file "/Users/arjunthanaraju/Downloads/PhD/spm12/toolbox/cat12/cat_conf_factorial.m" (???), function "cat_run_factorial_design" at line 1440.
The following modules did not run:
Failed: Basic models
Could someone help me overcome this error, please? Thanks! Hello! I am trying to run the Basic Models function on CAT12 but every time I run the batch editor after specifying my model, I get the following error:
————————————————————————
15-Apr-2024 11:32:13 – Running job #1
————————————————————————
15-Apr-2024 11:32:13 – Running ‘Basic models’
Mapping files : …done
Design configuration : …done
Saving SPM configuration : …SPM.mat saved
Design reporting : 15-Apr-2024 11:32:22 – Failed ‘Basic models’
Error using matlab.graphics.axis.Axes/set
Invalid or deleted object.
In file "/Users/arjunthanaraju/Downloads/PhD/spm12/spm_DesRep.m" (v6070), function "spm_DesRep" at line 734.
In file "/Users/arjunthanaraju/Downloads/PhD/spm12/config/spm_run_factorial_design.m" (v7739), function "spm_run_factorial_design" at line 1073.
In file "/Users/arjunthanaraju/Downloads/PhD/spm12/toolbox/cat12/cat_conf_factorial.m" (???), function "cat_run_factorial_design" at line 1440.
The following modules did not run:
Failed: Basic models
Could someone help me overcome this error, please? Thanks! spm, cat12 MATLAB Answers — New Questions
How to get the formal expression of the expansion of power of a polynomial with symbolic calculation
My question is described as below.
I am not familiar with the Matlab tool, so how to get the formal expression of the coefficient of eahc x^i term with symbolic calculation?My question is described as below.
I am not familiar with the Matlab tool, so how to get the formal expression of the coefficient of eahc x^i term with symbolic calculation? My question is described as below.
I am not familiar with the Matlab tool, so how to get the formal expression of the coefficient of eahc x^i term with symbolic calculation? polynomial coefficient, symbolic, matlab MATLAB Answers — New Questions
Why won’t my cycles overlap properly?
%this code works but not the way i want it, the cycles are supposted to overlap more symmetrically but three of them are longer than the rest
subplot(2,2,3);
hold on;
max_length = max(cellfun(@length, cycle_flows));
for i = 1:length(cycle_flows)
x = 1:max_length;
y = NaN(1, max_length); % Initialize with NaNs
y(1:length(cycle_flows{i})) = cycle_flows{i};
plot(x, y);
end
hold off;%this code works but not the way i want it, the cycles are supposted to overlap more symmetrically but three of them are longer than the rest
subplot(2,2,3);
hold on;
max_length = max(cellfun(@length, cycle_flows));
for i = 1:length(cycle_flows)
x = 1:max_length;
y = NaN(1, max_length); % Initialize with NaNs
y(1:length(cycle_flows{i})) = cycle_flows{i};
plot(x, y);
end
hold off; %this code works but not the way i want it, the cycles are supposted to overlap more symmetrically but three of them are longer than the rest
subplot(2,2,3);
hold on;
max_length = max(cellfun(@length, cycle_flows));
for i = 1:length(cycle_flows)
x = 1:max_length;
y = NaN(1, max_length); % Initialize with NaNs
y(1:length(cycle_flows{i})) = cycle_flows{i};
plot(x, y);
end
hold off; plotting, student MATLAB Answers — New Questions
I have an error with this code for different number of elements. I’m lost on how to fix it for the proper output.
clc;
clear all
close all
% Define the data points for the base excitation (modify these values as needed)
data = [0.0; 0.00571634384576599; 0.0172961399245937; 0.0215661733228299;
0.0138433053175935; 0.00475824598689792; 0.00940235333989425;
0.0298244388227628; 0.0502561943723699; 0.0516260538077677;
0.0311672997795811; 0.00657207675777726;
-0.00043850430233673; 0.0150661812622991; 0.0369781637016863;
0.0444861334353839; 0.032063551445643; 0.0130695841363085;
0.00450012342523607; 0.00980150594910536; 0.0175350556867159;
0.0158705130787799; 0.00603906690334467; 0.0];
% Sampling period (modify this value if needed)
T = pi/2; %seconds
% Number of data points
N = 24;
% Fundamental frequency (reciprocal of sampling period)
f0 = 1/T;
% Define the number of harmonics to consider (modify this value if needed)
numHarmonics = 4;
% Pre-allocate arrays for coefficients with correct sizes
a = zeros(1, numHarmonics+1);
b = zeros(1, numHarmonics);
% Calculate the constant term (a0)
a(1) = mean(data); % Assigning the average to the first element of a
% Calculate the coefficients for harmonics (a1 to aN and b1 to bN)
for n = 1:numHarmonics
% Calculate the cosine terms
cosine_terms = data .* cos(n*2*pi*f0*(0:N-1)/T);
% Calculate the sine terms (omit the first term for b because of symmetry)
sine_terms = data(2:end) .* sin(n*2*pi*f0*(1:N-1)/T);
% Apply integration by trapezoidal rule (assuming uniform sampling)
a(n+1) = (sum(cosine_terms) + cosine_terms(1)/2 + cosine_terms(end)/2) * 2/N;
b(n) = (sum(sine_terms) + sine_terms(1)/2) * 2/N;
end
% Display the Fourier Series Coefficients
fprintf(‘Fourier Series Coefficients:n’);
fprintf(‘a0 = %.4fn’, a(1));
for n = 1:numHarmonics
fprintf(‘a%d = %.4f, b%d = %.4fn’, n, a(n+1), n, b(n));
end
Output:
Unable to perform assignment because the left and right sides have a different number of elements.
Error in fouriercodething (line 40)
a(n+1) = (sum(cosine_terms) + cosine_terms(1)/2 + cosine_terms(end)/2) * 2/N;clc;
clear all
close all
% Define the data points for the base excitation (modify these values as needed)
data = [0.0; 0.00571634384576599; 0.0172961399245937; 0.0215661733228299;
0.0138433053175935; 0.00475824598689792; 0.00940235333989425;
0.0298244388227628; 0.0502561943723699; 0.0516260538077677;
0.0311672997795811; 0.00657207675777726;
-0.00043850430233673; 0.0150661812622991; 0.0369781637016863;
0.0444861334353839; 0.032063551445643; 0.0130695841363085;
0.00450012342523607; 0.00980150594910536; 0.0175350556867159;
0.0158705130787799; 0.00603906690334467; 0.0];
% Sampling period (modify this value if needed)
T = pi/2; %seconds
% Number of data points
N = 24;
% Fundamental frequency (reciprocal of sampling period)
f0 = 1/T;
% Define the number of harmonics to consider (modify this value if needed)
numHarmonics = 4;
% Pre-allocate arrays for coefficients with correct sizes
a = zeros(1, numHarmonics+1);
b = zeros(1, numHarmonics);
% Calculate the constant term (a0)
a(1) = mean(data); % Assigning the average to the first element of a
% Calculate the coefficients for harmonics (a1 to aN and b1 to bN)
for n = 1:numHarmonics
% Calculate the cosine terms
cosine_terms = data .* cos(n*2*pi*f0*(0:N-1)/T);
% Calculate the sine terms (omit the first term for b because of symmetry)
sine_terms = data(2:end) .* sin(n*2*pi*f0*(1:N-1)/T);
% Apply integration by trapezoidal rule (assuming uniform sampling)
a(n+1) = (sum(cosine_terms) + cosine_terms(1)/2 + cosine_terms(end)/2) * 2/N;
b(n) = (sum(sine_terms) + sine_terms(1)/2) * 2/N;
end
% Display the Fourier Series Coefficients
fprintf(‘Fourier Series Coefficients:n’);
fprintf(‘a0 = %.4fn’, a(1));
for n = 1:numHarmonics
fprintf(‘a%d = %.4f, b%d = %.4fn’, n, a(n+1), n, b(n));
end
Output:
Unable to perform assignment because the left and right sides have a different number of elements.
Error in fouriercodething (line 40)
a(n+1) = (sum(cosine_terms) + cosine_terms(1)/2 + cosine_terms(end)/2) * 2/N; clc;
clear all
close all
% Define the data points for the base excitation (modify these values as needed)
data = [0.0; 0.00571634384576599; 0.0172961399245937; 0.0215661733228299;
0.0138433053175935; 0.00475824598689792; 0.00940235333989425;
0.0298244388227628; 0.0502561943723699; 0.0516260538077677;
0.0311672997795811; 0.00657207675777726;
-0.00043850430233673; 0.0150661812622991; 0.0369781637016863;
0.0444861334353839; 0.032063551445643; 0.0130695841363085;
0.00450012342523607; 0.00980150594910536; 0.0175350556867159;
0.0158705130787799; 0.00603906690334467; 0.0];
% Sampling period (modify this value if needed)
T = pi/2; %seconds
% Number of data points
N = 24;
% Fundamental frequency (reciprocal of sampling period)
f0 = 1/T;
% Define the number of harmonics to consider (modify this value if needed)
numHarmonics = 4;
% Pre-allocate arrays for coefficients with correct sizes
a = zeros(1, numHarmonics+1);
b = zeros(1, numHarmonics);
% Calculate the constant term (a0)
a(1) = mean(data); % Assigning the average to the first element of a
% Calculate the coefficients for harmonics (a1 to aN and b1 to bN)
for n = 1:numHarmonics
% Calculate the cosine terms
cosine_terms = data .* cos(n*2*pi*f0*(0:N-1)/T);
% Calculate the sine terms (omit the first term for b because of symmetry)
sine_terms = data(2:end) .* sin(n*2*pi*f0*(1:N-1)/T);
% Apply integration by trapezoidal rule (assuming uniform sampling)
a(n+1) = (sum(cosine_terms) + cosine_terms(1)/2 + cosine_terms(end)/2) * 2/N;
b(n) = (sum(sine_terms) + sine_terms(1)/2) * 2/N;
end
% Display the Fourier Series Coefficients
fprintf(‘Fourier Series Coefficients:n’);
fprintf(‘a0 = %.4fn’, a(1));
for n = 1:numHarmonics
fprintf(‘a%d = %.4f, b%d = %.4fn’, n, a(n+1), n, b(n));
end
Output:
Unable to perform assignment because the left and right sides have a different number of elements.
Error in fouriercodething (line 40)
a(n+1) = (sum(cosine_terms) + cosine_terms(1)/2 + cosine_terms(end)/2) * 2/N; troubleshooting MATLAB Answers — New Questions
Using Multiple Classes/Files MATLAB
Hello,
I am having some trouble understanding object oriented progrraming in MATLAB.
I have created a script .m file which I want my general code to run in and produce the output(s) that I want.
I have also create three separate .m files, each of which contain three different classes, and these classes each have a constructor as well as a function which returns a public variable of the class which is initialized thru the constructor.
My goal is to create an instance of these three different classes in the script .m file as I earlier mentioned, as I want to access this public variable from each class in the main script file as it is needed to run my program/produce the output.
For reference, here is an example of the class I am talking about:
classdef className
properties
%general variables
%variable i want accessed the main script
end
methods
function r = className(%general variables)
%variable i want accessed=(math operation using general
%variables)
r=className
end
function randomName = randomName()
randomName=%variable i want accessed int he main script
end
end
endHello,
I am having some trouble understanding object oriented progrraming in MATLAB.
I have created a script .m file which I want my general code to run in and produce the output(s) that I want.
I have also create three separate .m files, each of which contain three different classes, and these classes each have a constructor as well as a function which returns a public variable of the class which is initialized thru the constructor.
My goal is to create an instance of these three different classes in the script .m file as I earlier mentioned, as I want to access this public variable from each class in the main script file as it is needed to run my program/produce the output.
For reference, here is an example of the class I am talking about:
classdef className
properties
%general variables
%variable i want accessed the main script
end
methods
function r = className(%general variables)
%variable i want accessed=(math operation using general
%variables)
r=className
end
function randomName = randomName()
randomName=%variable i want accessed int he main script
end
end
end Hello,
I am having some trouble understanding object oriented progrraming in MATLAB.
I have created a script .m file which I want my general code to run in and produce the output(s) that I want.
I have also create three separate .m files, each of which contain three different classes, and these classes each have a constructor as well as a function which returns a public variable of the class which is initialized thru the constructor.
My goal is to create an instance of these three different classes in the script .m file as I earlier mentioned, as I want to access this public variable from each class in the main script file as it is needed to run my program/produce the output.
For reference, here is an example of the class I am talking about:
classdef className
properties
%general variables
%variable i want accessed the main script
end
methods
function r = className(%general variables)
%variable i want accessed=(math operation using general
%variables)
r=className
end
function randomName = randomName()
randomName=%variable i want accessed int he main script
end
end
end class, function, matlab MATLAB Answers — New Questions
How can I filter the white noise from a wav file using the filter designer tool in matlab
How can I filter the white noise from a wav file using the filter designer tool in matlab. I am using the low pass filter to filter it but the noise is not attenuated. I have attached the audio files.How can I filter the white noise from a wav file using the filter designer tool in matlab. I am using the low pass filter to filter it but the noise is not attenuated. I have attached the audio files. How can I filter the white noise from a wav file using the filter designer tool in matlab. I am using the low pass filter to filter it but the noise is not attenuated. I have attached the audio files. filter MATLAB Answers — New Questions
System Identification – Matlab 2023a not launching
I am using a student licensed Matlab version 2023a. The license allows me to install System Identification toolbox. Currently, the toolbox is not opening. As I click on it through Apps panel or using the command systemidentification in command window, the app does not open.
I am pretty sure that the app is installed because I can see it in the Apps panel and when I use ‘ver’ (below you can find the list of all toolboxes) it shows that it exists. I have already tried to uninstall the app and install it back but this did not solve the issue.
Your help is much appreciated. Thanks in advance.
—————————————————————————————————–
MATLAB Version: 9.14.0.2337262 (R2023a) Update 5
MATLAB License Number: ——
Operating System: —–
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
—————————————————————————————————–
MATLAB Version 9.14 (R2023a)
Simulink Version 10.7 (R2023a)
Aerospace Blockset Version 6.0 (R2023a)
Aerospace Toolbox Version 4.4 (R2023a)
Communications Toolbox Version 8.0 (R2023a)
Computer Vision Toolbox Version 10.4 (R2023a)
Control System Toolbox Version 10.13 (R2023a)
Curve Fitting Toolbox Version 3.9 (R2023a)
DSP System Toolbox Version 9.16 (R2023a)
Database Toolbox Version 11.0 (R2023a)
Deep Learning HDL Toolbox Version 1.5 (R2023a)
Deep Learning Toolbox Version 14.6 (R2023a)
Econometrics Toolbox Version 6.2 (R2023a)
Embedded Coder Version 7.10 (R2023a)
GUI Layout Toolbox Version 2.3.1 (R2016b)
GUI Layout Toolbox Version 2.3.6 (R2023a)
Global Optimization Toolbox Version 4.8.1 (R2023a)
Image Processing Toolbox Version 11.7 (R2023a)
MATLAB Coder Version 5.6 (R2023a)
MATLAB Compiler Version 8.6 (R2023a)
MATLAB Compiler SDK Version 7.2 (R2023a)
MATLAB Report Generator Version 5.14 (R2023a)
MATLAB Test Version 1.0 (R2023a)
Mapping Toolbox Version 5.5 (R2023a)
Mixed-Signal Blockset Version 2.4 (R2023a)
Model Predictive Control Toolbox Version 8.1 (R2023a)
Model-Based Calibration Toolbox Version 5.14 (R2023a)
Motor Control Blockset Version 2.0 (R2023a)
Navigation Toolbox Version 2.4 (R2023a)
Optimization Toolbox Version 9.5 (R2023a)
Parallel Computing Toolbox Version 7.8 (R2023a)
ROS Toolbox Version 2.0 (R2023a)
Signal Processing Toolbox Version 9.2 (R2023a)
Simscape Version 5.5 (R2023a)
Simulink 3D Animation Version 9.6 (R2023a)
Simulink Check Version 6.2 (R2023a)
Simulink Code Inspector Version 4.3 (R2023a)
Simulink Coder Version 9.9 (R2023a)
Simulink Compiler Version 1.6 (R2023a)
Simulink Control Design Version 7.0 (R2023a)
Simulink Coverage Version 5.6 (R2023a)
Simulink Design Optimization Version 3.13 (R2023a)
Simulink Design Verifier Version 4.9 (R2023a)
Simulink Desktop Real-Time Version 5.16 (R2023a)
Simulink PLC Coder Version 3.8 (R2023a)
Simulink Real-Time Version 8.2 (R2023a)
Simulink Report Generator Version 5.14 (R2023a)
Simulink Test Version 3.8 (R2023a)
SoC Blockset Version 1.8 (R2023a)
Spreadsheet Link Version 3.4.9 (R2023a)
Stateflow Version 10.8 (R2023a)
Statistics and Machine Learning Toolbox Version 12.5 (R2023a)
Symbolic Math Toolbox Version 9.3 (R2023a)
System Composer Version 2.4 (R2023a)
System Identification Toolbox Version 10.1 (R2023a)
Text Analytics Toolbox Version 1.10 (R2023a)
UAV Toolbox Version 1.5 (R2023a)
Vehicle Dynamics Blockset Version 2.0 (R2023a)I am using a student licensed Matlab version 2023a. The license allows me to install System Identification toolbox. Currently, the toolbox is not opening. As I click on it through Apps panel or using the command systemidentification in command window, the app does not open.
I am pretty sure that the app is installed because I can see it in the Apps panel and when I use ‘ver’ (below you can find the list of all toolboxes) it shows that it exists. I have already tried to uninstall the app and install it back but this did not solve the issue.
Your help is much appreciated. Thanks in advance.
—————————————————————————————————–
MATLAB Version: 9.14.0.2337262 (R2023a) Update 5
MATLAB License Number: ——
Operating System: —–
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
—————————————————————————————————–
MATLAB Version 9.14 (R2023a)
Simulink Version 10.7 (R2023a)
Aerospace Blockset Version 6.0 (R2023a)
Aerospace Toolbox Version 4.4 (R2023a)
Communications Toolbox Version 8.0 (R2023a)
Computer Vision Toolbox Version 10.4 (R2023a)
Control System Toolbox Version 10.13 (R2023a)
Curve Fitting Toolbox Version 3.9 (R2023a)
DSP System Toolbox Version 9.16 (R2023a)
Database Toolbox Version 11.0 (R2023a)
Deep Learning HDL Toolbox Version 1.5 (R2023a)
Deep Learning Toolbox Version 14.6 (R2023a)
Econometrics Toolbox Version 6.2 (R2023a)
Embedded Coder Version 7.10 (R2023a)
GUI Layout Toolbox Version 2.3.1 (R2016b)
GUI Layout Toolbox Version 2.3.6 (R2023a)
Global Optimization Toolbox Version 4.8.1 (R2023a)
Image Processing Toolbox Version 11.7 (R2023a)
MATLAB Coder Version 5.6 (R2023a)
MATLAB Compiler Version 8.6 (R2023a)
MATLAB Compiler SDK Version 7.2 (R2023a)
MATLAB Report Generator Version 5.14 (R2023a)
MATLAB Test Version 1.0 (R2023a)
Mapping Toolbox Version 5.5 (R2023a)
Mixed-Signal Blockset Version 2.4 (R2023a)
Model Predictive Control Toolbox Version 8.1 (R2023a)
Model-Based Calibration Toolbox Version 5.14 (R2023a)
Motor Control Blockset Version 2.0 (R2023a)
Navigation Toolbox Version 2.4 (R2023a)
Optimization Toolbox Version 9.5 (R2023a)
Parallel Computing Toolbox Version 7.8 (R2023a)
ROS Toolbox Version 2.0 (R2023a)
Signal Processing Toolbox Version 9.2 (R2023a)
Simscape Version 5.5 (R2023a)
Simulink 3D Animation Version 9.6 (R2023a)
Simulink Check Version 6.2 (R2023a)
Simulink Code Inspector Version 4.3 (R2023a)
Simulink Coder Version 9.9 (R2023a)
Simulink Compiler Version 1.6 (R2023a)
Simulink Control Design Version 7.0 (R2023a)
Simulink Coverage Version 5.6 (R2023a)
Simulink Design Optimization Version 3.13 (R2023a)
Simulink Design Verifier Version 4.9 (R2023a)
Simulink Desktop Real-Time Version 5.16 (R2023a)
Simulink PLC Coder Version 3.8 (R2023a)
Simulink Real-Time Version 8.2 (R2023a)
Simulink Report Generator Version 5.14 (R2023a)
Simulink Test Version 3.8 (R2023a)
SoC Blockset Version 1.8 (R2023a)
Spreadsheet Link Version 3.4.9 (R2023a)
Stateflow Version 10.8 (R2023a)
Statistics and Machine Learning Toolbox Version 12.5 (R2023a)
Symbolic Math Toolbox Version 9.3 (R2023a)
System Composer Version 2.4 (R2023a)
System Identification Toolbox Version 10.1 (R2023a)
Text Analytics Toolbox Version 1.10 (R2023a)
UAV Toolbox Version 1.5 (R2023a)
Vehicle Dynamics Blockset Version 2.0 (R2023a) I am using a student licensed Matlab version 2023a. The license allows me to install System Identification toolbox. Currently, the toolbox is not opening. As I click on it through Apps panel or using the command systemidentification in command window, the app does not open.
I am pretty sure that the app is installed because I can see it in the Apps panel and when I use ‘ver’ (below you can find the list of all toolboxes) it shows that it exists. I have already tried to uninstall the app and install it back but this did not solve the issue.
Your help is much appreciated. Thanks in advance.
—————————————————————————————————–
MATLAB Version: 9.14.0.2337262 (R2023a) Update 5
MATLAB License Number: ——
Operating System: —–
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
—————————————————————————————————–
MATLAB Version 9.14 (R2023a)
Simulink Version 10.7 (R2023a)
Aerospace Blockset Version 6.0 (R2023a)
Aerospace Toolbox Version 4.4 (R2023a)
Communications Toolbox Version 8.0 (R2023a)
Computer Vision Toolbox Version 10.4 (R2023a)
Control System Toolbox Version 10.13 (R2023a)
Curve Fitting Toolbox Version 3.9 (R2023a)
DSP System Toolbox Version 9.16 (R2023a)
Database Toolbox Version 11.0 (R2023a)
Deep Learning HDL Toolbox Version 1.5 (R2023a)
Deep Learning Toolbox Version 14.6 (R2023a)
Econometrics Toolbox Version 6.2 (R2023a)
Embedded Coder Version 7.10 (R2023a)
GUI Layout Toolbox Version 2.3.1 (R2016b)
GUI Layout Toolbox Version 2.3.6 (R2023a)
Global Optimization Toolbox Version 4.8.1 (R2023a)
Image Processing Toolbox Version 11.7 (R2023a)
MATLAB Coder Version 5.6 (R2023a)
MATLAB Compiler Version 8.6 (R2023a)
MATLAB Compiler SDK Version 7.2 (R2023a)
MATLAB Report Generator Version 5.14 (R2023a)
MATLAB Test Version 1.0 (R2023a)
Mapping Toolbox Version 5.5 (R2023a)
Mixed-Signal Blockset Version 2.4 (R2023a)
Model Predictive Control Toolbox Version 8.1 (R2023a)
Model-Based Calibration Toolbox Version 5.14 (R2023a)
Motor Control Blockset Version 2.0 (R2023a)
Navigation Toolbox Version 2.4 (R2023a)
Optimization Toolbox Version 9.5 (R2023a)
Parallel Computing Toolbox Version 7.8 (R2023a)
ROS Toolbox Version 2.0 (R2023a)
Signal Processing Toolbox Version 9.2 (R2023a)
Simscape Version 5.5 (R2023a)
Simulink 3D Animation Version 9.6 (R2023a)
Simulink Check Version 6.2 (R2023a)
Simulink Code Inspector Version 4.3 (R2023a)
Simulink Coder Version 9.9 (R2023a)
Simulink Compiler Version 1.6 (R2023a)
Simulink Control Design Version 7.0 (R2023a)
Simulink Coverage Version 5.6 (R2023a)
Simulink Design Optimization Version 3.13 (R2023a)
Simulink Design Verifier Version 4.9 (R2023a)
Simulink Desktop Real-Time Version 5.16 (R2023a)
Simulink PLC Coder Version 3.8 (R2023a)
Simulink Real-Time Version 8.2 (R2023a)
Simulink Report Generator Version 5.14 (R2023a)
Simulink Test Version 3.8 (R2023a)
SoC Blockset Version 1.8 (R2023a)
Spreadsheet Link Version 3.4.9 (R2023a)
Stateflow Version 10.8 (R2023a)
Statistics and Machine Learning Toolbox Version 12.5 (R2023a)
Symbolic Math Toolbox Version 9.3 (R2023a)
System Composer Version 2.4 (R2023a)
System Identification Toolbox Version 10.1 (R2023a)
Text Analytics Toolbox Version 1.10 (R2023a)
UAV Toolbox Version 1.5 (R2023a)
Vehicle Dynamics Blockset Version 2.0 (R2023a) system identification, matlab toolbox MATLAB Answers — New Questions