Category: Matlab
Category Archives: Matlab
Attention mechanism diagram For unet Deep Learning
Dear all,
Anyone know how to add the Attention mechanism diagram using deep network design Matlab?Dear all,
Anyone know how to add the Attention mechanism diagram using deep network design Matlab? Dear all,
Anyone know how to add the Attention mechanism diagram using deep network design Matlab? deep learning MATLAB Answers — New Questions
Time response of modes to an impulse
Hi.
For a 4×4 plant matrix, I want to see the time response of short period mode and phugoid mode of an aircraft for an initial perturbation, respectively. I have 2 roots of the plant matrix for both short period mode and phugoid mode and corresponding period times. How can I plot the responses of the 4 variables with specified initial conditions for an elevator angle deflection?
Thanks.Hi.
For a 4×4 plant matrix, I want to see the time response of short period mode and phugoid mode of an aircraft for an initial perturbation, respectively. I have 2 roots of the plant matrix for both short period mode and phugoid mode and corresponding period times. How can I plot the responses of the 4 variables with specified initial conditions for an elevator angle deflection?
Thanks. Hi.
For a 4×4 plant matrix, I want to see the time response of short period mode and phugoid mode of an aircraft for an initial perturbation, respectively. I have 2 roots of the plant matrix for both short period mode and phugoid mode and corresponding period times. How can I plot the responses of the 4 variables with specified initial conditions for an elevator angle deflection?
Thanks. model, response MATLAB Answers — New Questions
Non-negative least square method is giving fixed values
I am trying the NNLS with my dataset to solve the a problem. The values are for each column remain same and no changes at all in each column. what is the possible exlanation for this?
I have adde the .mat adn .m file with the question. I could use SVD but the the values need to be positive as hey are concentration.
Any help will be appreciated.I am trying the NNLS with my dataset to solve the a problem. The values are for each column remain same and no changes at all in each column. what is the possible exlanation for this?
I have adde the .mat adn .m file with the question. I could use SVD but the the values need to be positive as hey are concentration.
Any help will be appreciated. I am trying the NNLS with my dataset to solve the a problem. The values are for each column remain same and no changes at all in each column. what is the possible exlanation for this?
I have adde the .mat adn .m file with the question. I could use SVD but the the values need to be positive as hey are concentration.
Any help will be appreciated. lsqnonneg, matrix, svd MATLAB Answers — New Questions
command line install of .mlpkginstall silently
Hello Dear All,
Quick question that i do no find a real answer.
How can we install a .mlpkginstall in command line and silenstly.
I must deploy a package on a few hundred computers.
Many thanks in advance.Hello Dear All,
Quick question that i do no find a real answer.
How can we install a .mlpkginstall in command line and silenstly.
I must deploy a package on a few hundred computers.
Many thanks in advance. Hello Dear All,
Quick question that i do no find a real answer.
How can we install a .mlpkginstall in command line and silenstly.
I must deploy a package on a few hundred computers.
Many thanks in advance. mlpkginstall, adminsys MATLAB Answers — New Questions
How can I download matlab 7.1 ?
How can I download the following ?
1) MATLAB Version 7.1.0.246 (R14) Service Pack 3
2) MATLAB Compiler Version 4.3 (R14SP3)
3) MATLAB Report Generator Version 2.3.1 (R14SP3)How can I download the following ?
1) MATLAB Version 7.1.0.246 (R14) Service Pack 3
2) MATLAB Compiler Version 4.3 (R14SP3)
3) MATLAB Report Generator Version 2.3.1 (R14SP3) How can I download the following ?
1) MATLAB Version 7.1.0.246 (R14) Service Pack 3
2) MATLAB Compiler Version 4.3 (R14SP3)
3) MATLAB Report Generator Version 2.3.1 (R14SP3) download matlab_archive_version MATLAB Answers — New Questions
Garch-evt – copula
I am trying to estimate an Egarch- EVT- COPULA MODEL. THE MODEL WILL LINK THE Egarch with extreme value theory and copula to capture interdependence. Is there a toolbox for this, user-written codes or package to execute this. I will be happy if I can get some help in this regardI am trying to estimate an Egarch- EVT- COPULA MODEL. THE MODEL WILL LINK THE Egarch with extreme value theory and copula to capture interdependence. Is there a toolbox for this, user-written codes or package to execute this. I will be happy if I can get some help in this regard I am trying to estimate an Egarch- EVT- COPULA MODEL. THE MODEL WILL LINK THE Egarch with extreme value theory and copula to capture interdependence. Is there a toolbox for this, user-written codes or package to execute this. I will be happy if I can get some help in this regard garch, evt, copula MATLAB Answers — New Questions
fplot not showing any value
Hello, I’m fairly new to Matlab, and I need to plot a function. This function is the double anti-derivative of another function.
Using fplot to plot the first function works, but it doesn’t show any value for the second function… Here is my code :
syms x D(x) Dint(x) g(x) f(x)
E=2.1*10^11
L=12
F=2000
K=1500
C=0.28
e=0.008
a=0.00076
P=3000
w=77008.5
% Fonctions
D(x)=0.2191-a*x
Dint(x)=D(x)-2*e
f(x)= (-F*(L-x)-K*C*(D(x))*(L-x)^2/2)/(E*3.14*(D(x)^4-Dint(x)^4)/64)
g(x)=int(f(x)) – subs(int(f(x)),x,0)
Y(x)=int(g(x)) – subs(int(g(x)),x,0)
subs(Y,x,0)
double(subs(Y,x,12))
% Debug
fplot(f,[0 12])
fplot(Y,[0 12])
I am using Matlab R2024a.
Thanks in advance !Hello, I’m fairly new to Matlab, and I need to plot a function. This function is the double anti-derivative of another function.
Using fplot to plot the first function works, but it doesn’t show any value for the second function… Here is my code :
syms x D(x) Dint(x) g(x) f(x)
E=2.1*10^11
L=12
F=2000
K=1500
C=0.28
e=0.008
a=0.00076
P=3000
w=77008.5
% Fonctions
D(x)=0.2191-a*x
Dint(x)=D(x)-2*e
f(x)= (-F*(L-x)-K*C*(D(x))*(L-x)^2/2)/(E*3.14*(D(x)^4-Dint(x)^4)/64)
g(x)=int(f(x)) – subs(int(f(x)),x,0)
Y(x)=int(g(x)) – subs(int(g(x)),x,0)
subs(Y,x,0)
double(subs(Y,x,12))
% Debug
fplot(f,[0 12])
fplot(Y,[0 12])
I am using Matlab R2024a.
Thanks in advance ! Hello, I’m fairly new to Matlab, and I need to plot a function. This function is the double anti-derivative of another function.
Using fplot to plot the first function works, but it doesn’t show any value for the second function… Here is my code :
syms x D(x) Dint(x) g(x) f(x)
E=2.1*10^11
L=12
F=2000
K=1500
C=0.28
e=0.008
a=0.00076
P=3000
w=77008.5
% Fonctions
D(x)=0.2191-a*x
Dint(x)=D(x)-2*e
f(x)= (-F*(L-x)-K*C*(D(x))*(L-x)^2/2)/(E*3.14*(D(x)^4-Dint(x)^4)/64)
g(x)=int(f(x)) – subs(int(f(x)),x,0)
Y(x)=int(g(x)) – subs(int(g(x)),x,0)
subs(Y,x,0)
double(subs(Y,x,12))
% Debug
fplot(f,[0 12])
fplot(Y,[0 12])
I am using Matlab R2024a.
Thanks in advance ! fplot, syms MATLAB Answers — New Questions
Assign column names in a workspace table
Hi, MatLab novice here
I have been given three data sets to analyse. I need to rename the columns in the tables as different things. I have tried looking for the answer elsewhere and cannot work it out, could someone please help/point me in the right direction?
Many thanks!Hi, MatLab novice here
I have been given three data sets to analyse. I need to rename the columns in the tables as different things. I have tried looking for the answer elsewhere and cannot work it out, could someone please help/point me in the right direction?
Many thanks! Hi, MatLab novice here
I have been given three data sets to analyse. I need to rename the columns in the tables as different things. I have tried looking for the answer elsewhere and cannot work it out, could someone please help/point me in the right direction?
Many thanks! add column name, column name, assign column variable names MATLAB Answers — New Questions
USB-2416-4AO Matlab Live user interface
I want to make a code that takes in analog inputs from a DAQ and is able to store that data in plots as well as send output signals based on the inputs. I cannot seem to get the code to store any data or read data directly from the DAQ in matlab.
My code so far:
d = daqlist("mcc");
d(1, 🙂
dq = daq("mcc")
addinput(dq, "Board0", "Ai0", "Voltage");
dq
[data, startTime] = read(dq, seconds(1));
plot(data.Time, data.Board0_Ai0);
xlabel("Time (s)");
ylabel("Voltage (V)");I want to make a code that takes in analog inputs from a DAQ and is able to store that data in plots as well as send output signals based on the inputs. I cannot seem to get the code to store any data or read data directly from the DAQ in matlab.
My code so far:
d = daqlist("mcc");
d(1, 🙂
dq = daq("mcc")
addinput(dq, "Board0", "Ai0", "Voltage");
dq
[data, startTime] = read(dq, seconds(1));
plot(data.Time, data.Board0_Ai0);
xlabel("Time (s)");
ylabel("Voltage (V)"); I want to make a code that takes in analog inputs from a DAQ and is able to store that data in plots as well as send output signals based on the inputs. I cannot seem to get the code to store any data or read data directly from the DAQ in matlab.
My code so far:
d = daqlist("mcc");
d(1, 🙂
dq = daq("mcc")
addinput(dq, "Board0", "Ai0", "Voltage");
dq
[data, startTime] = read(dq, seconds(1));
plot(data.Time, data.Board0_Ai0);
xlabel("Time (s)");
ylabel("Voltage (V)"); daq, gui MATLAB Answers — New Questions
the degradation of ozone in aqueous solutions (water). When I plot the all three components, the plot stays at the 0 value for all components.
function ProjectOzone
clc
ki = 7e-3;
kj = 2e-5;
k1 = 1e3;
k2 = 1e3;
k3 = 5e7;
OH = 1e-6;
%constants
t0=0;
tn=1000000;
% time iteration interval is set to a high value to reach steady state
Ca0 = 0.002292;
Cb0 = 0;
Cc0 = 0;
% initial concentrations
[tsoln, Csoln] = ode45(@Ozone,[t0 tn],[Ca0 Cb0 Cc0]);
plot(tsoln, Csoln)
xlabel(‘Time’)
ylabel(‘Concentration’)
legend(‘Cb’)
function dC = Ozone(~, C)
dC = zeros(3,1);
dC(1) = -C(1)*(3*ki + kj*OH + 2*k2*sqrt((C(1)/(2*k3))*(2*ki+kj*OH)));
dC(2) = (2*ki)*C(1) – k1*C(1)*C(2) + k2*C(1)*C(3);
dC(3) = kj*C(1)*OH + k1*C(1)*C(2) – k2*C(1)*C(3) – (2*k3)*(C(3)^2);
end %dC(1) is evaluated by steady state approximation method
end
%HERE IS THE CODE, I POST IT IF YOU WANT TO CHECKfunction ProjectOzone
clc
ki = 7e-3;
kj = 2e-5;
k1 = 1e3;
k2 = 1e3;
k3 = 5e7;
OH = 1e-6;
%constants
t0=0;
tn=1000000;
% time iteration interval is set to a high value to reach steady state
Ca0 = 0.002292;
Cb0 = 0;
Cc0 = 0;
% initial concentrations
[tsoln, Csoln] = ode45(@Ozone,[t0 tn],[Ca0 Cb0 Cc0]);
plot(tsoln, Csoln)
xlabel(‘Time’)
ylabel(‘Concentration’)
legend(‘Cb’)
function dC = Ozone(~, C)
dC = zeros(3,1);
dC(1) = -C(1)*(3*ki + kj*OH + 2*k2*sqrt((C(1)/(2*k3))*(2*ki+kj*OH)));
dC(2) = (2*ki)*C(1) – k1*C(1)*C(2) + k2*C(1)*C(3);
dC(3) = kj*C(1)*OH + k1*C(1)*C(2) – k2*C(1)*C(3) – (2*k3)*(C(3)^2);
end %dC(1) is evaluated by steady state approximation method
end
%HERE IS THE CODE, I POST IT IF YOU WANT TO CHECK function ProjectOzone
clc
ki = 7e-3;
kj = 2e-5;
k1 = 1e3;
k2 = 1e3;
k3 = 5e7;
OH = 1e-6;
%constants
t0=0;
tn=1000000;
% time iteration interval is set to a high value to reach steady state
Ca0 = 0.002292;
Cb0 = 0;
Cc0 = 0;
% initial concentrations
[tsoln, Csoln] = ode45(@Ozone,[t0 tn],[Ca0 Cb0 Cc0]);
plot(tsoln, Csoln)
xlabel(‘Time’)
ylabel(‘Concentration’)
legend(‘Cb’)
function dC = Ozone(~, C)
dC = zeros(3,1);
dC(1) = -C(1)*(3*ki + kj*OH + 2*k2*sqrt((C(1)/(2*k3))*(2*ki+kj*OH)));
dC(2) = (2*ki)*C(1) – k1*C(1)*C(2) + k2*C(1)*C(3);
dC(3) = kj*C(1)*OH + k1*C(1)*C(2) – k2*C(1)*C(3) – (2*k3)*(C(3)^2);
end %dC(1) is evaluated by steady state approximation method
end
%HERE IS THE CODE, I POST IT IF YOU WANT TO CHECK ozone-degradation, mathematical modelling, ode45, plotting, plot MATLAB Answers — New Questions
limiting slider part motion distance of the prismatic joint in simulink
I want to limit the distance of the slider part which slides with a prismatic joint. for example I want it to slide 0.5 m to downward and come back to its initial positionI want to limit the distance of the slider part which slides with a prismatic joint. for example I want it to slide 0.5 m to downward and come back to its initial position I want to limit the distance of the slider part which slides with a prismatic joint. for example I want it to slide 0.5 m to downward and come back to its initial position simulink, simulation, robotic, roboticarm, scara, robot, robotarm MATLAB Answers — New Questions
Neural network for regression task: Circuit modeling
Hi everyone, i’m experimenting with using a DNN for modeling an electrical circuit. I have done many tries and until now i always used one sample for input( sequenceInputLayer(1) ) a one for output( since it is a regression task). Now, since the circuit i am modeling has memory, i would like to try to extend input lenght to count for more input sample at once but keeping my output as one single sample. I am facing problems in this beacuse i have my input_data vector that is 1167×1 so 1 column. This means that sequenceInputLayer expect always 1 as dimension and i am limited to this.
On the other hand i can transpose my vectors and use 1167 as input and output dimension, but I would like more freedom and try for example a NN with an input layer of size 300, then 2 hidden layes with size 50/100 (using tanh ecc..) and then my final output layer with output size 1 ( again, since this is a regression task). I already read MATLAB documentstion but i didn’t find what i am searching for. This is the code i am using now, if you have suggestions i would be really happy!!!
Maybe i have to use mini batches? What changes i have to do in order to realize the network i said before?
(Yes, i know that for dynamical systems with memory CNN and RNN neural nets are better but in literature there are also papaer that use DNN for this type of modeling, i.e. using more input(past sample) in a DNN for taking into account memory effects).
%load Vout.mat %LTspice data
t = (0:5.145e-5:60e-3)’; %creates 1167 samples
input_data=10*sin(200*2*pi*t);
output_data=Vout;
% plot(input_data);hold on
% plot(output_data);
%B = reshape(input_data,[],4); %ottengo numero di colonne specifiche,4
% Creazione della rete neurale profonda
layers = […
sequenceInputLayer(1)
fullyConnectedLayer(10)
reluLayer
%lstmLayer(100)
fullyConnectedLayer(10)
sigmoidLayer
fullyConnectedLayer(10)
tanhLayer
fullyConnectedLayer(1) % Output layer con una sola uscita
%tanhLayer
];
% Creazione della dlnetwork
net = dlnetwork(layers);
% Impostazione delle opzioni di addestramento
options = trainingOptions(‘adam’, …
‘MaxEpochs’,1000,…
‘InitialLearnRate’,1e-2, …
‘Verbose’,false, …
‘Plots’,’training-progress’);
% Addestramento della rete neurale
net = trainnet(input_data, output_data, net,"huber" , options);
%Predict
output_test = predict(net,input_data);Hi everyone, i’m experimenting with using a DNN for modeling an electrical circuit. I have done many tries and until now i always used one sample for input( sequenceInputLayer(1) ) a one for output( since it is a regression task). Now, since the circuit i am modeling has memory, i would like to try to extend input lenght to count for more input sample at once but keeping my output as one single sample. I am facing problems in this beacuse i have my input_data vector that is 1167×1 so 1 column. This means that sequenceInputLayer expect always 1 as dimension and i am limited to this.
On the other hand i can transpose my vectors and use 1167 as input and output dimension, but I would like more freedom and try for example a NN with an input layer of size 300, then 2 hidden layes with size 50/100 (using tanh ecc..) and then my final output layer with output size 1 ( again, since this is a regression task). I already read MATLAB documentstion but i didn’t find what i am searching for. This is the code i am using now, if you have suggestions i would be really happy!!!
Maybe i have to use mini batches? What changes i have to do in order to realize the network i said before?
(Yes, i know that for dynamical systems with memory CNN and RNN neural nets are better but in literature there are also papaer that use DNN for this type of modeling, i.e. using more input(past sample) in a DNN for taking into account memory effects).
%load Vout.mat %LTspice data
t = (0:5.145e-5:60e-3)’; %creates 1167 samples
input_data=10*sin(200*2*pi*t);
output_data=Vout;
% plot(input_data);hold on
% plot(output_data);
%B = reshape(input_data,[],4); %ottengo numero di colonne specifiche,4
% Creazione della rete neurale profonda
layers = […
sequenceInputLayer(1)
fullyConnectedLayer(10)
reluLayer
%lstmLayer(100)
fullyConnectedLayer(10)
sigmoidLayer
fullyConnectedLayer(10)
tanhLayer
fullyConnectedLayer(1) % Output layer con una sola uscita
%tanhLayer
];
% Creazione della dlnetwork
net = dlnetwork(layers);
% Impostazione delle opzioni di addestramento
options = trainingOptions(‘adam’, …
‘MaxEpochs’,1000,…
‘InitialLearnRate’,1e-2, …
‘Verbose’,false, …
‘Plots’,’training-progress’);
% Addestramento della rete neurale
net = trainnet(input_data, output_data, net,"huber" , options);
%Predict
output_test = predict(net,input_data); Hi everyone, i’m experimenting with using a DNN for modeling an electrical circuit. I have done many tries and until now i always used one sample for input( sequenceInputLayer(1) ) a one for output( since it is a regression task). Now, since the circuit i am modeling has memory, i would like to try to extend input lenght to count for more input sample at once but keeping my output as one single sample. I am facing problems in this beacuse i have my input_data vector that is 1167×1 so 1 column. This means that sequenceInputLayer expect always 1 as dimension and i am limited to this.
On the other hand i can transpose my vectors and use 1167 as input and output dimension, but I would like more freedom and try for example a NN with an input layer of size 300, then 2 hidden layes with size 50/100 (using tanh ecc..) and then my final output layer with output size 1 ( again, since this is a regression task). I already read MATLAB documentstion but i didn’t find what i am searching for. This is the code i am using now, if you have suggestions i would be really happy!!!
Maybe i have to use mini batches? What changes i have to do in order to realize the network i said before?
(Yes, i know that for dynamical systems with memory CNN and RNN neural nets are better but in literature there are also papaer that use DNN for this type of modeling, i.e. using more input(past sample) in a DNN for taking into account memory effects).
%load Vout.mat %LTspice data
t = (0:5.145e-5:60e-3)’; %creates 1167 samples
input_data=10*sin(200*2*pi*t);
output_data=Vout;
% plot(input_data);hold on
% plot(output_data);
%B = reshape(input_data,[],4); %ottengo numero di colonne specifiche,4
% Creazione della rete neurale profonda
layers = […
sequenceInputLayer(1)
fullyConnectedLayer(10)
reluLayer
%lstmLayer(100)
fullyConnectedLayer(10)
sigmoidLayer
fullyConnectedLayer(10)
tanhLayer
fullyConnectedLayer(1) % Output layer con una sola uscita
%tanhLayer
];
% Creazione della dlnetwork
net = dlnetwork(layers);
% Impostazione delle opzioni di addestramento
options = trainingOptions(‘adam’, …
‘MaxEpochs’,1000,…
‘InitialLearnRate’,1e-2, …
‘Verbose’,false, …
‘Plots’,’training-progress’);
% Addestramento della rete neurale
net = trainnet(input_data, output_data, net,"huber" , options);
%Predict
output_test = predict(net,input_data); neural networks, circuit modeling, feedforward neural networks MATLAB Answers — New Questions
Inconsistent code generation of Block parameters with Embedded Coder
I’m trying to generate C++ code via Embedded Coder.
This simple model contains some variables a,b,b1, where their constant values are implicitly set under .mat file
#
This is one of the block parameters:
When I generate code, I get the following
// Parameters (default storage)
struct P_controller_module_T {
double a; // Variable: a
// Referenced by: ‘<Root>/a’
double b; // Variable: b
// Referenced by: ‘<Root>/b’
double b1; // Variable: b1
// Referenced by: ‘<Root>/b1’
};
However in another model I have the following block parameters (constant values are also implicitly set under .mat files) :
But when generating code I get the following :
double Kp_lat_Value; // Expression: Kp_lat
// Referenced by: ‘<S11>/Kp_lat’
How do I keep the suffix "_Value" consistent ?I’m trying to generate C++ code via Embedded Coder.
This simple model contains some variables a,b,b1, where their constant values are implicitly set under .mat file
#
This is one of the block parameters:
When I generate code, I get the following
// Parameters (default storage)
struct P_controller_module_T {
double a; // Variable: a
// Referenced by: ‘<Root>/a’
double b; // Variable: b
// Referenced by: ‘<Root>/b’
double b1; // Variable: b1
// Referenced by: ‘<Root>/b1’
};
However in another model I have the following block parameters (constant values are also implicitly set under .mat files) :
But when generating code I get the following :
double Kp_lat_Value; // Expression: Kp_lat
// Referenced by: ‘<S11>/Kp_lat’
How do I keep the suffix "_Value" consistent ? I’m trying to generate C++ code via Embedded Coder.
This simple model contains some variables a,b,b1, where their constant values are implicitly set under .mat file
#
This is one of the block parameters:
When I generate code, I get the following
// Parameters (default storage)
struct P_controller_module_T {
double a; // Variable: a
// Referenced by: ‘<Root>/a’
double b; // Variable: b
// Referenced by: ‘<Root>/b’
double b1; // Variable: b1
// Referenced by: ‘<Root>/b1’
};
However in another model I have the following block parameters (constant values are also implicitly set under .mat files) :
But when generating code I get the following :
double Kp_lat_Value; // Expression: Kp_lat
// Referenced by: ‘<S11>/Kp_lat’
How do I keep the suffix "_Value" consistent ? embedded coder, simulink, c++ MATLAB Answers — New Questions
Virtual synchronous machine (simulink file)
Hi, I’m doing a research about appliying virtual synchronous machine in tidal energy.
Do anyone has a simulink model of Virtual Synchronous Machine (VSM)?
Many thanks.Hi, I’m doing a research about appliying virtual synchronous machine in tidal energy.
Do anyone has a simulink model of Virtual Synchronous Machine (VSM)?
Many thanks. Hi, I’m doing a research about appliying virtual synchronous machine in tidal energy.
Do anyone has a simulink model of Virtual Synchronous Machine (VSM)?
Many thanks. virtual synchronous generator MATLAB Answers — New Questions
How can one use a variable to set color of a line plot , and use colorbar?
Dear MAtLab community,
I am creating a simple line plot, and I would like to use a third variable to color the line at every point .
the line comes as:
line(koordmean(:,1),koordmean(:,2))
xlim([1 640])
ylim([1 480])
set(gca,’ydir’,’reverse’)
and the line should be colouread according to the variable ‘anx’. It should work similar to the imagesc function combined with the colorbar function.
Any suggestions are highly appreciated! Kind regards
lgDear MAtLab community,
I am creating a simple line plot, and I would like to use a third variable to color the line at every point .
the line comes as:
line(koordmean(:,1),koordmean(:,2))
xlim([1 640])
ylim([1 480])
set(gca,’ydir’,’reverse’)
and the line should be colouread according to the variable ‘anx’. It should work similar to the imagesc function combined with the colorbar function.
Any suggestions are highly appreciated! Kind regards
lg Dear MAtLab community,
I am creating a simple line plot, and I would like to use a third variable to color the line at every point .
the line comes as:
line(koordmean(:,1),koordmean(:,2))
xlim([1 640])
ylim([1 480])
set(gca,’ydir’,’reverse’)
and the line should be colouread according to the variable ‘anx’. It should work similar to the imagesc function combined with the colorbar function.
Any suggestions are highly appreciated! Kind regards
lg line plot, imagesc, colorbar MATLAB Answers — New Questions
How can I restart the optimization in “Optimize Live Editor”?
I am new in use of MATLAB_. I want to do a nonlinear optimization with genetic algorithm in Solver-based application. My problem is that I failed, but if I start again, it still includes the things and choices I entered before. How can I start with a clean sheet?I am new in use of MATLAB_. I want to do a nonlinear optimization with genetic algorithm in Solver-based application. My problem is that I failed, but if I start again, it still includes the things and choices I entered before. How can I start with a clean sheet? I am new in use of MATLAB_. I want to do a nonlinear optimization with genetic algorithm in Solver-based application. My problem is that I failed, but if I start again, it still includes the things and choices I entered before. How can I start with a clean sheet? use optimize leve editor task MATLAB Answers — New Questions
Error using sdo.SimulationTest/sim
Hello everyone, i’m having an issue with an application, using AppDesigner, but after deployment only.
In the log file, I can find:
Error using sdo.SimulationTest/sim
Unrecognized function or variable ‘private_sl_CPUInfo’.
sim() is called in a sdo.optimize loop in a annonymous function and I don’t understand at all what could cause the issue, and the application is running fine before deployement (in the AppDesigner).
Does anybody already had this issue or knows something about it?Hello everyone, i’m having an issue with an application, using AppDesigner, but after deployment only.
In the log file, I can find:
Error using sdo.SimulationTest/sim
Unrecognized function or variable ‘private_sl_CPUInfo’.
sim() is called in a sdo.optimize loop in a annonymous function and I don’t understand at all what could cause the issue, and the application is running fine before deployement (in the AppDesigner).
Does anybody already had this issue or knows something about it? Hello everyone, i’m having an issue with an application, using AppDesigner, but after deployment only.
In the log file, I can find:
Error using sdo.SimulationTest/sim
Unrecognized function or variable ‘private_sl_CPUInfo’.
sim() is called in a sdo.optimize loop in a annonymous function and I don’t understand at all what could cause the issue, and the application is running fine before deployement (in the AppDesigner).
Does anybody already had this issue or knows something about it? appdesigner, simulink, simscape, simulation MATLAB Answers — New Questions
How to get rid of the error: Error using horzcat. Dimensions of matrices being concatenated are not consistent
Post Content Post Content horzcat MATLAB Answers — New Questions
Mathematics relationship between CDL channels and Saleh-Valenzuela model
Hi everyone,
I’m learning to generate a CDL channel through example CDL Channel Model Customization with Ray Tracing, and I also read some papers about Saleh-Valenzuela model for mmWave, and I see they have some things in common, like AoA, AoD,… But I didn’t find any Matlab source explaining the mathematics behind the functions related to nrCDLChannel() object.
I am wondering if CDL channel use the Saleh-Valenzuela model? Could you please give me some Matlab sites that explain the mathematical formulas behind that? because I saw different papers have different notations of Saleh-Valenzuela model, and it quite confusing for me as a new learner.
Thanks a lot in advance.Hi everyone,
I’m learning to generate a CDL channel through example CDL Channel Model Customization with Ray Tracing, and I also read some papers about Saleh-Valenzuela model for mmWave, and I see they have some things in common, like AoA, AoD,… But I didn’t find any Matlab source explaining the mathematics behind the functions related to nrCDLChannel() object.
I am wondering if CDL channel use the Saleh-Valenzuela model? Could you please give me some Matlab sites that explain the mathematical formulas behind that? because I saw different papers have different notations of Saleh-Valenzuela model, and it quite confusing for me as a new learner.
Thanks a lot in advance. Hi everyone,
I’m learning to generate a CDL channel through example CDL Channel Model Customization with Ray Tracing, and I also read some papers about Saleh-Valenzuela model for mmWave, and I see they have some things in common, like AoA, AoD,… But I didn’t find any Matlab source explaining the mathematics behind the functions related to nrCDLChannel() object.
I am wondering if CDL channel use the Saleh-Valenzuela model? Could you please give me some Matlab sites that explain the mathematical formulas behind that? because I saw different papers have different notations of Saleh-Valenzuela model, and it quite confusing for me as a new learner.
Thanks a lot in advance. cdl channel, saleh-valenzuela, channel model, multi-antenna MATLAB Answers — New Questions
Cant use nested bus objects with bus object arrays in simulink
Hello,
I am trying to build a Bus (struct) (<Quiver>) that has an array of a nested bus type (<Arrow>). Later, I want to dissect this array (<arrows>), loop over it and use the members (<point>, <head>) of that bus object.
However, I get the following error:
Selected signal ‘arrows.origin.x’ in the Bus Selector block ‘Demo/Inport’ is invalid since it refers to a bus element within an array of sub-buses. The path to the array of sub-buses is ‘arrows’. Please select the appropriate array element using a Selector block before using the Bus Selector block to access an element within the bus.
This is very annoying. Programatically this is totally normal, nested stucts. Why can I specify the dimension of that struct array, if it wont compile?
How can I do what I intend to do?
This is what I am doing, basically:Hello,
I am trying to build a Bus (struct) (<Quiver>) that has an array of a nested bus type (<Arrow>). Later, I want to dissect this array (<arrows>), loop over it and use the members (<point>, <head>) of that bus object.
However, I get the following error:
Selected signal ‘arrows.origin.x’ in the Bus Selector block ‘Demo/Inport’ is invalid since it refers to a bus element within an array of sub-buses. The path to the array of sub-buses is ‘arrows’. Please select the appropriate array element using a Selector block before using the Bus Selector block to access an element within the bus.
This is very annoying. Programatically this is totally normal, nested stucts. Why can I specify the dimension of that struct array, if it wont compile?
How can I do what I intend to do?
This is what I am doing, basically: Hello,
I am trying to build a Bus (struct) (<Quiver>) that has an array of a nested bus type (<Arrow>). Later, I want to dissect this array (<arrows>), loop over it and use the members (<point>, <head>) of that bus object.
However, I get the following error:
Selected signal ‘arrows.origin.x’ in the Bus Selector block ‘Demo/Inport’ is invalid since it refers to a bus element within an array of sub-buses. The path to the array of sub-buses is ‘arrows’. Please select the appropriate array element using a Selector block before using the Bus Selector block to access an element within the bus.
This is very annoying. Programatically this is totally normal, nested stucts. Why can I specify the dimension of that struct array, if it wont compile?
How can I do what I intend to do?
This is what I am doing, basically: array, bus, simulink, matlab, error MATLAB Answers — New Questions