Tag Archives: matlab
How do I set up MATLAB Web Server using Apache as an httpd server on Windows NT?
How do I set up MATLAB Web Server using Apache as an httpd server on Windows NT?How do I set up MATLAB Web Server using Apache as an httpd server on Windows NT? How do I set up MATLAB Web Server using Apache as an httpd server on Windows NT? apache, windows, nt, web, server MATLAB Answers — New Questions
When I log into MATLAB Grader, I am asked whether I am an instructor or student, with a message saying I do not yet have access. How do I gain access to MATLAB Grader?
When I log into MATLAB Grader, I am asked whether I am an instructor or student, with a message saying I do not yet have access. How do I gain access to MATLAB Grader?When I log into MATLAB Grader, I am asked whether I am an instructor or student, with a message saying I do not yet have access. How do I gain access to MATLAB Grader? When I log into MATLAB Grader, I am asked whether I am an instructor or student, with a message saying I do not yet have access. How do I gain access to MATLAB Grader? student, instructor, enroll, sms, license, login, grader, subscription MATLAB Answers — New Questions
Need some help generating White Noise Source
clear all
close all
clc
tic
L=10; %[m] Fiber length
PS=1;
n=1.45;
eps0=8.854e-12; % [F/m] Vacuum permittivity
mu0 = 4*pi*1e-7;%[H/m] Vacuum permeability
c=2.9979e8; % [m/sec] Speed of light
Z0=sqrt(mu0/eps0); %[Ohm] Vacuum impedance
dt = 6e-12; dz=dt*c/n; %Spacial and Temporal step sizes.
%dz=2.5e-4;
Fs=1/dt;
N=round(L/dz); % Fiber length discretization
T=10*2*L*n/c; %time taken for 10 round trips
Nt=round(T/dt);
%% material characteristics
A=80e-12; %[m^2] fiber’s effective area
I1_0=PS/A;
% figure;
FA=(-Nt/2:Nt/2-1)*Fs/Nt;
fc=3e9;
X = randn(1,Nt); %random noise generation
Y1 = 10*lowpass(X, fc, Fs, Steepness=0.8);
ypm1 = 1.2743e+06*exp(1i*Y1);
figure;
plot(FA,abs(fftshift(fft(Y1/Nt))));
xlim([-20e9 20
e9]);
figure;
semilogy(FA,(2*n*c*eps0*A*abs(fftshift(fft(ypm1/Nt).^2))))
I am trying to generate White noise source for my phase modulation technique.
The procedure is to pass the signal through a rectangular band filter to imprint the sinc envelope onto the waveform.
Likewise I have generated random noise and passed through low pass filter of 3GHz but the fft of the product is not upto the figure.
Can anyone suggest any changes.clear all
close all
clc
tic
L=10; %[m] Fiber length
PS=1;
n=1.45;
eps0=8.854e-12; % [F/m] Vacuum permittivity
mu0 = 4*pi*1e-7;%[H/m] Vacuum permeability
c=2.9979e8; % [m/sec] Speed of light
Z0=sqrt(mu0/eps0); %[Ohm] Vacuum impedance
dt = 6e-12; dz=dt*c/n; %Spacial and Temporal step sizes.
%dz=2.5e-4;
Fs=1/dt;
N=round(L/dz); % Fiber length discretization
T=10*2*L*n/c; %time taken for 10 round trips
Nt=round(T/dt);
%% material characteristics
A=80e-12; %[m^2] fiber’s effective area
I1_0=PS/A;
% figure;
FA=(-Nt/2:Nt/2-1)*Fs/Nt;
fc=3e9;
X = randn(1,Nt); %random noise generation
Y1 = 10*lowpass(X, fc, Fs, Steepness=0.8);
ypm1 = 1.2743e+06*exp(1i*Y1);
figure;
plot(FA,abs(fftshift(fft(Y1/Nt))));
xlim([-20e9 20
e9]);
figure;
semilogy(FA,(2*n*c*eps0*A*abs(fftshift(fft(ypm1/Nt).^2))))
I am trying to generate White noise source for my phase modulation technique.
The procedure is to pass the signal through a rectangular band filter to imprint the sinc envelope onto the waveform.
Likewise I have generated random noise and passed through low pass filter of 3GHz but the fft of the product is not upto the figure.
Can anyone suggest any changes. clear all
close all
clc
tic
L=10; %[m] Fiber length
PS=1;
n=1.45;
eps0=8.854e-12; % [F/m] Vacuum permittivity
mu0 = 4*pi*1e-7;%[H/m] Vacuum permeability
c=2.9979e8; % [m/sec] Speed of light
Z0=sqrt(mu0/eps0); %[Ohm] Vacuum impedance
dt = 6e-12; dz=dt*c/n; %Spacial and Temporal step sizes.
%dz=2.5e-4;
Fs=1/dt;
N=round(L/dz); % Fiber length discretization
T=10*2*L*n/c; %time taken for 10 round trips
Nt=round(T/dt);
%% material characteristics
A=80e-12; %[m^2] fiber’s effective area
I1_0=PS/A;
% figure;
FA=(-Nt/2:Nt/2-1)*Fs/Nt;
fc=3e9;
X = randn(1,Nt); %random noise generation
Y1 = 10*lowpass(X, fc, Fs, Steepness=0.8);
ypm1 = 1.2743e+06*exp(1i*Y1);
figure;
plot(FA,abs(fftshift(fft(Y1/Nt))));
xlim([-20e9 20
e9]);
figure;
semilogy(FA,(2*n*c*eps0*A*abs(fftshift(fft(ypm1/Nt).^2))))
I am trying to generate White noise source for my phase modulation technique.
The procedure is to pass the signal through a rectangular band filter to imprint the sinc envelope onto the waveform.
Likewise I have generated random noise and passed through low pass filter of 3GHz but the fft of the product is not upto the figure.
Can anyone suggest any changes. wns, fft, sinc MATLAB Answers — New Questions
How can I understand that my program is running or not?
My one matlab program is running. It is not showing any error, but taking too long time. I have checked it with breakpoints. Is there any way to understand that Matlab is running or not?My one matlab program is running. It is not showing any error, but taking too long time. I have checked it with breakpoints. Is there any way to understand that Matlab is running or not? My one matlab program is running. It is not showing any error, but taking too long time. I have checked it with breakpoints. Is there any way to understand that Matlab is running or not? about running status of matlab program MATLAB Answers — New Questions
BusSelector InputSignals computation time exploses (M2016b->M2022b)
Hello,
I’m testing a MATLAB script on a SIMULMINK model made of 1727 models, migrated from M2016b environment to M2022b environment.
The purpose of the script is to build a predecessor list for each model while analyzing the connections of the signals.
I’ve noticed the computation time to retrieve the list of input signals from BusSelector blocks has highly increased from M20163b to M2022b
With profiler, the following function
bus = get_param(handle, ‘InputSignals’);
can take 70-90 sec sometimes whereas it was never exceeding 1s before (M2016b).
Please see the screenshots from profiler
Is there any reason why this computation time can increase so much, and what king of workaround can I test.
As I’m analyzing the list of predecessors from each model inports, if I find a busSelector, I’m analyzing the signal names to compute the indexes within the bus structure where my signal is located in order to apply the same indexes when I meet the corresponding BusCreator blocks to continue the ascending propagation analysis.Hello,
I’m testing a MATLAB script on a SIMULMINK model made of 1727 models, migrated from M2016b environment to M2022b environment.
The purpose of the script is to build a predecessor list for each model while analyzing the connections of the signals.
I’ve noticed the computation time to retrieve the list of input signals from BusSelector blocks has highly increased from M20163b to M2022b
With profiler, the following function
bus = get_param(handle, ‘InputSignals’);
can take 70-90 sec sometimes whereas it was never exceeding 1s before (M2016b).
Please see the screenshots from profiler
Is there any reason why this computation time can increase so much, and what king of workaround can I test.
As I’m analyzing the list of predecessors from each model inports, if I find a busSelector, I’m analyzing the signal names to compute the indexes within the bus structure where my signal is located in order to apply the same indexes when I meet the corresponding BusCreator blocks to continue the ascending propagation analysis. Hello,
I’m testing a MATLAB script on a SIMULMINK model made of 1727 models, migrated from M2016b environment to M2022b environment.
The purpose of the script is to build a predecessor list for each model while analyzing the connections of the signals.
I’ve noticed the computation time to retrieve the list of input signals from BusSelector blocks has highly increased from M20163b to M2022b
With profiler, the following function
bus = get_param(handle, ‘InputSignals’);
can take 70-90 sec sometimes whereas it was never exceeding 1s before (M2016b).
Please see the screenshots from profiler
Is there any reason why this computation time can increase so much, and what king of workaround can I test.
As I’m analyzing the list of predecessors from each model inports, if I find a busSelector, I’m analyzing the signal names to compute the indexes within the bus structure where my signal is located in order to apply the same indexes when I meet the corresponding BusCreator blocks to continue the ascending propagation analysis. busselector, signal processing, time MATLAB Answers — New Questions
Modeling the effect of the reaction wheel moment on the satellite body using SolidWorks and then SimMechanics.
I am modeling the impact of the moment of a reaction wheel mounted on the z-axis on the body of a satellite in Solidworks, and then I want to transfer it to SimMechanics.
The problem is that the moment from the reaction wheel is not transmitted to the satellite body, the wheel rotates at 3000 rpm, but the position of the satellite does not change in any way:
This is due to either the wrong type of mates (I chose concentricity and coincidence) or additional force effects.
The initial coupling is concentric and coincident. Using the Force/Torque Manager in SW, I applied a torque to the wheel and specified the satellite body as the reaction body.
I.e. I managed to generate this motion via Force/Torque PropertyManager in SW. But it’s still not the same. I plan to transfer the model to SimMechanics and set control signals, so the reaction should be defined via mechanical couplings. I don’t know if it will work via forces set via Force/Torque Manager.I am modeling the impact of the moment of a reaction wheel mounted on the z-axis on the body of a satellite in Solidworks, and then I want to transfer it to SimMechanics.
The problem is that the moment from the reaction wheel is not transmitted to the satellite body, the wheel rotates at 3000 rpm, but the position of the satellite does not change in any way:
This is due to either the wrong type of mates (I chose concentricity and coincidence) or additional force effects.
The initial coupling is concentric and coincident. Using the Force/Torque Manager in SW, I applied a torque to the wheel and specified the satellite body as the reaction body.
I.e. I managed to generate this motion via Force/Torque PropertyManager in SW. But it’s still not the same. I plan to transfer the model to SimMechanics and set control signals, so the reaction should be defined via mechanical couplings. I don’t know if it will work via forces set via Force/Torque Manager. I am modeling the impact of the moment of a reaction wheel mounted on the z-axis on the body of a satellite in Solidworks, and then I want to transfer it to SimMechanics.
The problem is that the moment from the reaction wheel is not transmitted to the satellite body, the wheel rotates at 3000 rpm, but the position of the satellite does not change in any way:
This is due to either the wrong type of mates (I chose concentricity and coincidence) or additional force effects.
The initial coupling is concentric and coincident. Using the Force/Torque Manager in SW, I applied a torque to the wheel and specified the satellite body as the reaction body.
I.e. I managed to generate this motion via Force/Torque PropertyManager in SW. But it’s still not the same. I plan to transfer the model to SimMechanics and set control signals, so the reaction should be defined via mechanical couplings. I don’t know if it will work via forces set via Force/Torque Manager. solidworks, simmechanics, motion study, dynamic, simulink, control MATLAB Answers — New Questions
How to connect XCP on CAN through Simulink model on Simulink Real-time?
I want to connect my model to a2l variables in my test ECU through XCP on CAN. My XCP transmit address is 0x200 and XCP receive address is 0x300. I do not understand how to use the XCP Transport Layer block from Simulink Real-time.
I have created a model using the blocks shown in the Screenshot. However, I get errors shown in the attached images when I run the model – MAX_CTO from the Connect response (80) and MAX_DTO from the Connect response (2) does not match the value from the A2L (8). I’m not sure if there are any other settings to be configured in the model.I want to connect my model to a2l variables in my test ECU through XCP on CAN. My XCP transmit address is 0x200 and XCP receive address is 0x300. I do not understand how to use the XCP Transport Layer block from Simulink Real-time.
I have created a model using the blocks shown in the Screenshot. However, I get errors shown in the attached images when I run the model – MAX_CTO from the Connect response (80) and MAX_DTO from the Connect response (2) does not match the value from the A2L (8). I’m not sure if there are any other settings to be configured in the model. I want to connect my model to a2l variables in my test ECU through XCP on CAN. My XCP transmit address is 0x200 and XCP receive address is 0x300. I do not understand how to use the XCP Transport Layer block from Simulink Real-time.
I have created a model using the blocks shown in the Screenshot. However, I get errors shown in the attached images when I run the model – MAX_CTO from the Connect response (80) and MAX_DTO from the Connect response (2) does not match the value from the A2L (8). I’m not sure if there are any other settings to be configured in the model. xcp on can, xcp can transport layer block, ecu a2l read and write MATLAB Answers — New Questions
Using chi2gof to test two distributions
I want to use the chi2gof to test if two distributions come from a common distribution (null hypothesis) or if they do not come from a common distribution (alternative hypothesis). I have binned observational data (x), binned model data (y), and the bin edges (bins). Both the observational and model data are counts per bin.
x= [41 22 11 10 9 5 2 3 2]
y= [38.052 24.2655 15.4665 9.8595 6.2895 4.011 2.562 1.6275 2.8665]
bins=[0:9:81]
Because the data is already binned and because I’m testing x against y, I used the following code
[h,p,stat]=chi2gof(x,’Edges’,bins,’Expected’,y)
Manual calculation of the chi2 test statistic results in 4.6861 with a probablity of p=.7905. The above function however, produces a very different result. The resulting stats show different bin edges than designated, the ovserved counts per bin do not match x, the chi2 test statistic is ~87, and p<0.001. Could someone please explain why I’m getting such dramatically different results?I want to use the chi2gof to test if two distributions come from a common distribution (null hypothesis) or if they do not come from a common distribution (alternative hypothesis). I have binned observational data (x), binned model data (y), and the bin edges (bins). Both the observational and model data are counts per bin.
x= [41 22 11 10 9 5 2 3 2]
y= [38.052 24.2655 15.4665 9.8595 6.2895 4.011 2.562 1.6275 2.8665]
bins=[0:9:81]
Because the data is already binned and because I’m testing x against y, I used the following code
[h,p,stat]=chi2gof(x,’Edges’,bins,’Expected’,y)
Manual calculation of the chi2 test statistic results in 4.6861 with a probablity of p=.7905. The above function however, produces a very different result. The resulting stats show different bin edges than designated, the ovserved counts per bin do not match x, the chi2 test statistic is ~87, and p<0.001. Could someone please explain why I’m getting such dramatically different results? I want to use the chi2gof to test if two distributions come from a common distribution (null hypothesis) or if they do not come from a common distribution (alternative hypothesis). I have binned observational data (x), binned model data (y), and the bin edges (bins). Both the observational and model data are counts per bin.
x= [41 22 11 10 9 5 2 3 2]
y= [38.052 24.2655 15.4665 9.8595 6.2895 4.011 2.562 1.6275 2.8665]
bins=[0:9:81]
Because the data is already binned and because I’m testing x against y, I used the following code
[h,p,stat]=chi2gof(x,’Edges’,bins,’Expected’,y)
Manual calculation of the chi2 test statistic results in 4.6861 with a probablity of p=.7905. The above function however, produces a very different result. The resulting stats show different bin edges than designated, the ovserved counts per bin do not match x, the chi2 test statistic is ~87, and p<0.001. Could someone please explain why I’m getting such dramatically different results? chi2gof MATLAB Answers — New Questions
sorting values of a matrix column when the other column has the same value
Hi all,
I have a matrix that has two columns as following:
A = [0.1 0.1 ; 0.1 -0.3 ; 0.1 0.5 ; 0.1 0; 0.1 -0.5; 0.1 -0.1; 0.1 0.4;
0.2 0.1 ; 0.2 -0.3 ; 0.2 0.5 ; 0.2 0; 0.2 -0.5; 0.2 -0.1; 0.2 0.4;
0.3 0.1 ; 0.3 -0.3 ; 0.3 0.5 ; 0.3 0; 0.3 -0.5; 0.3 -0.1; 0.3 0.4];
And I want to sort the second column of this matrix for every uniqe value of the first column so that the result looks like:
Asorted = [0.1 -0.5 ; 0.1 -0.3 ; 0.1 -0.1 ; 0.1 0; 0.1 0.1; 0.1 0.4; 0.1 0.5;
0.2 -0.5 ; 0.2 -0.3 ; 0.2 -0.1 ; 0.2 0; 0.2 0.1; 0.2 0.4; 0.2 0.5;
0.3 -0.5 ; 0.3 -0.3 ; 0.3 -0.1 ; 0.3 0; 0.3 0.1; 0.3 0.4; 0.3 0.5];
My "failing" attempt of doing this is the following:
A1 = A(:,1); %forst column
A2 = A(:,2); %second column
Auni = unique(A1); %unique value of the first column
for i = 1:size(A,1) %go through all the points in the first column
for j = 1:numel(Auni) %go throguh the unique values of the first column
if A1(i) == Auni(j) %if the point equals one of the uniqe values
[A2 , sortdx] = sort(A2); %sort out the second column of matrix A
A1 = A1(sortidx); %sort the first column accordingly
Asorted = [A1 A2]; %combine both results.
end
end
end
Also, how can I reorder another matrix based on the sorting done previously on matrix ?
Any help would be appreicted.
Thanks.Hi all,
I have a matrix that has two columns as following:
A = [0.1 0.1 ; 0.1 -0.3 ; 0.1 0.5 ; 0.1 0; 0.1 -0.5; 0.1 -0.1; 0.1 0.4;
0.2 0.1 ; 0.2 -0.3 ; 0.2 0.5 ; 0.2 0; 0.2 -0.5; 0.2 -0.1; 0.2 0.4;
0.3 0.1 ; 0.3 -0.3 ; 0.3 0.5 ; 0.3 0; 0.3 -0.5; 0.3 -0.1; 0.3 0.4];
And I want to sort the second column of this matrix for every uniqe value of the first column so that the result looks like:
Asorted = [0.1 -0.5 ; 0.1 -0.3 ; 0.1 -0.1 ; 0.1 0; 0.1 0.1; 0.1 0.4; 0.1 0.5;
0.2 -0.5 ; 0.2 -0.3 ; 0.2 -0.1 ; 0.2 0; 0.2 0.1; 0.2 0.4; 0.2 0.5;
0.3 -0.5 ; 0.3 -0.3 ; 0.3 -0.1 ; 0.3 0; 0.3 0.1; 0.3 0.4; 0.3 0.5];
My "failing" attempt of doing this is the following:
A1 = A(:,1); %forst column
A2 = A(:,2); %second column
Auni = unique(A1); %unique value of the first column
for i = 1:size(A,1) %go through all the points in the first column
for j = 1:numel(Auni) %go throguh the unique values of the first column
if A1(i) == Auni(j) %if the point equals one of the uniqe values
[A2 , sortdx] = sort(A2); %sort out the second column of matrix A
A1 = A1(sortidx); %sort the first column accordingly
Asorted = [A1 A2]; %combine both results.
end
end
end
Also, how can I reorder another matrix based on the sorting done previously on matrix ?
Any help would be appreicted.
Thanks. Hi all,
I have a matrix that has two columns as following:
A = [0.1 0.1 ; 0.1 -0.3 ; 0.1 0.5 ; 0.1 0; 0.1 -0.5; 0.1 -0.1; 0.1 0.4;
0.2 0.1 ; 0.2 -0.3 ; 0.2 0.5 ; 0.2 0; 0.2 -0.5; 0.2 -0.1; 0.2 0.4;
0.3 0.1 ; 0.3 -0.3 ; 0.3 0.5 ; 0.3 0; 0.3 -0.5; 0.3 -0.1; 0.3 0.4];
And I want to sort the second column of this matrix for every uniqe value of the first column so that the result looks like:
Asorted = [0.1 -0.5 ; 0.1 -0.3 ; 0.1 -0.1 ; 0.1 0; 0.1 0.1; 0.1 0.4; 0.1 0.5;
0.2 -0.5 ; 0.2 -0.3 ; 0.2 -0.1 ; 0.2 0; 0.2 0.1; 0.2 0.4; 0.2 0.5;
0.3 -0.5 ; 0.3 -0.3 ; 0.3 -0.1 ; 0.3 0; 0.3 0.1; 0.3 0.4; 0.3 0.5];
My "failing" attempt of doing this is the following:
A1 = A(:,1); %forst column
A2 = A(:,2); %second column
Auni = unique(A1); %unique value of the first column
for i = 1:size(A,1) %go through all the points in the first column
for j = 1:numel(Auni) %go throguh the unique values of the first column
if A1(i) == Auni(j) %if the point equals one of the uniqe values
[A2 , sortdx] = sort(A2); %sort out the second column of matrix A
A1 = A1(sortidx); %sort the first column accordingly
Asorted = [A1 A2]; %combine both results.
end
end
end
Also, how can I reorder another matrix based on the sorting done previously on matrix ?
Any help would be appreicted.
Thanks. matlab, reorder, rows, matrices, index, indexing, sort MATLAB Answers — New Questions
Embedded Coder qualification for ISO 26262
Please clarify – is the Embedded Coder already certified, or qualified, for ASIL D under ISO26262?
Or are there some steps the user must do to achieve that qualification level?
I can see there is a qualification kit, but it is not clear to me what must be done to complete the qualification, for the Embedded Coder tool.
Appreciate any clarification.Please clarify – is the Embedded Coder already certified, or qualified, for ASIL D under ISO26262?
Or are there some steps the user must do to achieve that qualification level?
I can see there is a qualification kit, but it is not clear to me what must be done to complete the qualification, for the Embedded Coder tool.
Appreciate any clarification. Please clarify – is the Embedded Coder already certified, or qualified, for ASIL D under ISO26262?
Or are there some steps the user must do to achieve that qualification level?
I can see there is a qualification kit, but it is not clear to me what must be done to complete the qualification, for the Embedded Coder tool.
Appreciate any clarification. qualification, embedded coder, iso 26262 MATLAB Answers — New Questions
data{i}=importdata([pathname,filename{i}]);
meaning of this codemeaning of this code meaning of this code started with this code MATLAB Answers — New Questions
gamultiobj does not return a truly nondominated pareto set
Hello guys,
I would like to ask for your help understanding an observation that i made with the gamulitobj solver.
I am running an optimization with 10 variables and a two dimensional fitness function. Inside the fitness function the two scores of all individuals are plotted. All options for the solver are on its default values. I do not modify any data by a custom output function. The fitness function is reproducible, no rng is involved.
After the solver finishes, i call the fitness function again to plot the variables of the pareto set returned by the solver. But the set of variables is not truly nondominated compared to other points in that plot. The solver sometimes returns a point, which should have been dominated by another point during optimization.
I can’t explain this behavior besides having read mostly all of the docs regarding this solver.
I might want to add that the magnitude of the two scores is quite different, see at the axes below. The plot below shows the central part of the pareto set, the black points are plotted during the iterations and the red diamonds with the call to the fitness function after the solver has finished.
I would highly appreciate if you could give my your thoughts or explanations for this behavior or ideas on how tho get only the truly nondominated points.Hello guys,
I would like to ask for your help understanding an observation that i made with the gamulitobj solver.
I am running an optimization with 10 variables and a two dimensional fitness function. Inside the fitness function the two scores of all individuals are plotted. All options for the solver are on its default values. I do not modify any data by a custom output function. The fitness function is reproducible, no rng is involved.
After the solver finishes, i call the fitness function again to plot the variables of the pareto set returned by the solver. But the set of variables is not truly nondominated compared to other points in that plot. The solver sometimes returns a point, which should have been dominated by another point during optimization.
I can’t explain this behavior besides having read mostly all of the docs regarding this solver.
I might want to add that the magnitude of the two scores is quite different, see at the axes below. The plot below shows the central part of the pareto set, the black points are plotted during the iterations and the red diamonds with the call to the fitness function after the solver has finished.
I would highly appreciate if you could give my your thoughts or explanations for this behavior or ideas on how tho get only the truly nondominated points. Hello guys,
I would like to ask for your help understanding an observation that i made with the gamulitobj solver.
I am running an optimization with 10 variables and a two dimensional fitness function. Inside the fitness function the two scores of all individuals are plotted. All options for the solver are on its default values. I do not modify any data by a custom output function. The fitness function is reproducible, no rng is involved.
After the solver finishes, i call the fitness function again to plot the variables of the pareto set returned by the solver. But the set of variables is not truly nondominated compared to other points in that plot. The solver sometimes returns a point, which should have been dominated by another point during optimization.
I can’t explain this behavior besides having read mostly all of the docs regarding this solver.
I might want to add that the magnitude of the two scores is quite different, see at the axes below. The plot below shows the central part of the pareto set, the black points are plotted during the iterations and the red diamonds with the call to the fitness function after the solver has finished.
I would highly appreciate if you could give my your thoughts or explanations for this behavior or ideas on how tho get only the truly nondominated points. genetic algorithm, multiobjective optimization, pareto dominance MATLAB Answers — New Questions
Related to implementation of Maximum Likelihood Detection in MATLAB
Hello all, I am working on research paper in which I have to implement Maximum Likelihood (ML) detection at the receiver. I am interested in plotting Bit error rate (BER) Vs Signal to noise ratio (SNR) plot using semilogy.
Below I am giving the expression of ML detection that I am trying to implement:
— (1)
where is received signal of dimension , is complex Gaussian channel matrix of dimension such that it has zero mean and 10 variance, is transmitted signal such that and each has dimension and is chosen from set , where has dimension and it denotes the GSSK modulated symbol. The GSSK modulated symbol has value 1 at positions and value 0 at the remaining () positions.
Also, and , where denotes the cardinality of a set. To find the optimal solution
of (1), the complexity of exhaustive search over is too high to implement.
My query is that I am not getting how to implement ML detection (eq. (1)) in MATLAB. I am also sharing the MATLAB code that I had developed for received signal which is given as
—-(2)
where is additive white Gaussian noise and has dimension .
Any help in this regard will be highly appreciated.
MATLAB code:
N_t = 4; % number of antennas at tag
N_r = 2; % number of antennas at reader
L = 500; % number of observations
n_t = 2; % number of active antennas in GSSK
% Define the GSSK symbols explicitly
GSSK_symbols = [
1 1 0 0;
1 0 1 0;
1 0 0 1;
0 0 1 1;
];
% Total information bits carried by each symbol
M = floor(log2(nchoosek(N_t, n_t)));
% Number of GSSK symbols
N = 2^M;
for snr = 0:3:21 % This is SNR in dB
% Generate the channel matrix H_tr
H_tr = sqrt(10/2) * (randn(N_r, N_t) + 1i*randn(N_r, N_t));
% Generate the transmitted signal X
X = zeros(N_t, L);
for l = 1:L
symbol_idx = randi(N); % randomly choose a symbol index
X(:, l) = GSSK_symbols(symbol_idx, :).’;
end
% Generate the noise W
W = (randn(N_r, L) + 1i*randn(N_r, L)) / sqrt(2);
% Calculate the received signal Y
Y = H_tr * X + 10^(-snr/20) * W;
endHello all, I am working on research paper in which I have to implement Maximum Likelihood (ML) detection at the receiver. I am interested in plotting Bit error rate (BER) Vs Signal to noise ratio (SNR) plot using semilogy.
Below I am giving the expression of ML detection that I am trying to implement:
— (1)
where is received signal of dimension , is complex Gaussian channel matrix of dimension such that it has zero mean and 10 variance, is transmitted signal such that and each has dimension and is chosen from set , where has dimension and it denotes the GSSK modulated symbol. The GSSK modulated symbol has value 1 at positions and value 0 at the remaining () positions.
Also, and , where denotes the cardinality of a set. To find the optimal solution
of (1), the complexity of exhaustive search over is too high to implement.
My query is that I am not getting how to implement ML detection (eq. (1)) in MATLAB. I am also sharing the MATLAB code that I had developed for received signal which is given as
—-(2)
where is additive white Gaussian noise and has dimension .
Any help in this regard will be highly appreciated.
MATLAB code:
N_t = 4; % number of antennas at tag
N_r = 2; % number of antennas at reader
L = 500; % number of observations
n_t = 2; % number of active antennas in GSSK
% Define the GSSK symbols explicitly
GSSK_symbols = [
1 1 0 0;
1 0 1 0;
1 0 0 1;
0 0 1 1;
];
% Total information bits carried by each symbol
M = floor(log2(nchoosek(N_t, n_t)));
% Number of GSSK symbols
N = 2^M;
for snr = 0:3:21 % This is SNR in dB
% Generate the channel matrix H_tr
H_tr = sqrt(10/2) * (randn(N_r, N_t) + 1i*randn(N_r, N_t));
% Generate the transmitted signal X
X = zeros(N_t, L);
for l = 1:L
symbol_idx = randi(N); % randomly choose a symbol index
X(:, l) = GSSK_symbols(symbol_idx, :).’;
end
% Generate the noise W
W = (randn(N_r, L) + 1i*randn(N_r, L)) / sqrt(2);
% Calculate the received signal Y
Y = H_tr * X + 10^(-snr/20) * W;
end Hello all, I am working on research paper in which I have to implement Maximum Likelihood (ML) detection at the receiver. I am interested in plotting Bit error rate (BER) Vs Signal to noise ratio (SNR) plot using semilogy.
Below I am giving the expression of ML detection that I am trying to implement:
— (1)
where is received signal of dimension , is complex Gaussian channel matrix of dimension such that it has zero mean and 10 variance, is transmitted signal such that and each has dimension and is chosen from set , where has dimension and it denotes the GSSK modulated symbol. The GSSK modulated symbol has value 1 at positions and value 0 at the remaining () positions.
Also, and , where denotes the cardinality of a set. To find the optimal solution
of (1), the complexity of exhaustive search over is too high to implement.
My query is that I am not getting how to implement ML detection (eq. (1)) in MATLAB. I am also sharing the MATLAB code that I had developed for received signal which is given as
—-(2)
where is additive white Gaussian noise and has dimension .
Any help in this regard will be highly appreciated.
MATLAB code:
N_t = 4; % number of antennas at tag
N_r = 2; % number of antennas at reader
L = 500; % number of observations
n_t = 2; % number of active antennas in GSSK
% Define the GSSK symbols explicitly
GSSK_symbols = [
1 1 0 0;
1 0 1 0;
1 0 0 1;
0 0 1 1;
];
% Total information bits carried by each symbol
M = floor(log2(nchoosek(N_t, n_t)));
% Number of GSSK symbols
N = 2^M;
for snr = 0:3:21 % This is SNR in dB
% Generate the channel matrix H_tr
H_tr = sqrt(10/2) * (randn(N_r, N_t) + 1i*randn(N_r, N_t));
% Generate the transmitted signal X
X = zeros(N_t, L);
for l = 1:L
symbol_idx = randi(N); % randomly choose a symbol index
X(:, l) = GSSK_symbols(symbol_idx, :).’;
end
% Generate the noise W
W = (randn(N_r, L) + 1i*randn(N_r, L)) / sqrt(2);
% Calculate the received signal Y
Y = H_tr * X + 10^(-snr/20) * W;
end digital signal processing, simulation, maximum likelihood MATLAB Answers — New Questions
Pool job test failed Matlab 2024a local machine
Can someone explain to me why parallel pool validation fails at the "Pool job test" stage? I am running Matlab2024a on a machine with 16 local cores
Screen shot of the error message and the validation report are attached
Thanks!Can someone explain to me why parallel pool validation fails at the "Pool job test" stage? I am running Matlab2024a on a machine with 16 local cores
Screen shot of the error message and the validation report are attached
Thanks! Can someone explain to me why parallel pool validation fails at the "Pool job test" stage? I am running Matlab2024a on a machine with 16 local cores
Screen shot of the error message and the validation report are attached
Thanks! parallel computing, pool job test MATLAB Answers — New Questions
Is there a way to import all the roads of a city into Roadrunner?
[Roadrunner] Hi, I was wondering if it is possible to import roads into Roadrunner based on existing data of roads, etc. Is there a way to do this?
Thank you![Roadrunner] Hi, I was wondering if it is possible to import roads into Roadrunner based on existing data of roads, etc. Is there a way to do this?
Thank you! [Roadrunner] Hi, I was wondering if it is possible to import roads into Roadrunner based on existing data of roads, etc. Is there a way to do this?
Thank you! data import, geodata, gis, import roads, how to import, roadrunner MATLAB Answers — New Questions
Downgrade project with reference models and sub-models from 2023 to 2021
Hi all,
I have a project in matlab 2023 which contains a plenty of reference models and sub-models, it would not be nice downgrading all the models one by one, so I would like to downgrade the whole project from 2023 to 2021.
Does any of you knows a way to perform such a task with a script or anything like that?Hi all,
I have a project in matlab 2023 which contains a plenty of reference models and sub-models, it would not be nice downgrading all the models one by one, so I would like to downgrade the whole project from 2023 to 2021.
Does any of you knows a way to perform such a task with a script or anything like that? Hi all,
I have a project in matlab 2023 which contains a plenty of reference models and sub-models, it would not be nice downgrading all the models one by one, so I would like to downgrade the whole project from 2023 to 2021.
Does any of you knows a way to perform such a task with a script or anything like that? downgrade, simulink MATLAB Answers — New Questions
Error Using Rainflow fonction
Hello everyone,
I’m not really good at Matlab, but I need to use it to process some load cycles result using the rainflow function (please see attachment)
I have written the code as below
clear all,
clc,
[filename,pathname] = uigetfile({‘*.xlsx;*.xlsm’,’Excel Worksheets (*.xlsx,*.xlsm)’},’Select File’);
[file,sheets] = xlsfinfo([pathname,filename]);
num_1 = xlsread(filename);
[num_3, txt]= xlsread(filename);
%read only row and column with number
Data_1 = num_3(4:end,:); % 4:end, –> choose all the row start from 4 % : –> choose all the column % start at row 4 and read all column
X = num_3(4:end,7); % 4,–> Choose only row 4 seread oly row 4 and all column.
Y = num_3(4:end,6);
Z = num_3(4:end,8);
figure(1)
plot3(X,Y,Z);
t = linspace(min(Y),max(Y),length(Z)/10);
d = linspace(min(Y),max(Y),length(Z)/5);
figure(2)
Z = [X Y]
rainflow(Z,t);
and unfortunately have the errors below after the code:
Error using rainflow
Expected X to be a vector.
Error in rainflow>parseInputs (line 184)
validateattributes(x,{‘single’,’double’},…
Error in rainflow (line 81)
[x,t,ext,td] = parseInputs(x,varargin{:});
Error in KW31_BMW_Load_Cycle_Ju (line 39)
rainflow(Z,t)
Can someone please tell me were I´making the mytake by using the Rainflow function?
Thank in advanceHello everyone,
I’m not really good at Matlab, but I need to use it to process some load cycles result using the rainflow function (please see attachment)
I have written the code as below
clear all,
clc,
[filename,pathname] = uigetfile({‘*.xlsx;*.xlsm’,’Excel Worksheets (*.xlsx,*.xlsm)’},’Select File’);
[file,sheets] = xlsfinfo([pathname,filename]);
num_1 = xlsread(filename);
[num_3, txt]= xlsread(filename);
%read only row and column with number
Data_1 = num_3(4:end,:); % 4:end, –> choose all the row start from 4 % : –> choose all the column % start at row 4 and read all column
X = num_3(4:end,7); % 4,–> Choose only row 4 seread oly row 4 and all column.
Y = num_3(4:end,6);
Z = num_3(4:end,8);
figure(1)
plot3(X,Y,Z);
t = linspace(min(Y),max(Y),length(Z)/10);
d = linspace(min(Y),max(Y),length(Z)/5);
figure(2)
Z = [X Y]
rainflow(Z,t);
and unfortunately have the errors below after the code:
Error using rainflow
Expected X to be a vector.
Error in rainflow>parseInputs (line 184)
validateattributes(x,{‘single’,’double’},…
Error in rainflow (line 81)
[x,t,ext,td] = parseInputs(x,varargin{:});
Error in KW31_BMW_Load_Cycle_Ju (line 39)
rainflow(Z,t)
Can someone please tell me were I´making the mytake by using the Rainflow function?
Thank in advance Hello everyone,
I’m not really good at Matlab, but I need to use it to process some load cycles result using the rainflow function (please see attachment)
I have written the code as below
clear all,
clc,
[filename,pathname] = uigetfile({‘*.xlsx;*.xlsm’,’Excel Worksheets (*.xlsx,*.xlsm)’},’Select File’);
[file,sheets] = xlsfinfo([pathname,filename]);
num_1 = xlsread(filename);
[num_3, txt]= xlsread(filename);
%read only row and column with number
Data_1 = num_3(4:end,:); % 4:end, –> choose all the row start from 4 % : –> choose all the column % start at row 4 and read all column
X = num_3(4:end,7); % 4,–> Choose only row 4 seread oly row 4 and all column.
Y = num_3(4:end,6);
Z = num_3(4:end,8);
figure(1)
plot3(X,Y,Z);
t = linspace(min(Y),max(Y),length(Z)/10);
d = linspace(min(Y),max(Y),length(Z)/5);
figure(2)
Z = [X Y]
rainflow(Z,t);
and unfortunately have the errors below after the code:
Error using rainflow
Expected X to be a vector.
Error in rainflow>parseInputs (line 184)
validateattributes(x,{‘single’,’double’},…
Error in rainflow (line 81)
[x,t,ext,td] = parseInputs(x,varargin{:});
Error in KW31_BMW_Load_Cycle_Ju (line 39)
rainflow(Z,t)
Can someone please tell me were I´making the mytake by using the Rainflow function?
Thank in advance hello togheter i´m trying to plot a rainflow MATLAB Answers — New Questions
Resolution of a plotted function
Hello Everyone,
I need to put this function (f) in a matrix to print it as a figure, but how can I put it in the same matrix (4001, 3001) with two resolutions (1um, 2um) and the same wavelength 100um?
May someone please help me in solving this query.
Thanks
f = @(x) 3*sin(x*2*pi/wavelength) + 1003;
% The function for the sine wave with the
% amplitude 3 µm and wave length of about 100 µm.
%Mean level is 1003 µm.Hello Everyone,
I need to put this function (f) in a matrix to print it as a figure, but how can I put it in the same matrix (4001, 3001) with two resolutions (1um, 2um) and the same wavelength 100um?
May someone please help me in solving this query.
Thanks
f = @(x) 3*sin(x*2*pi/wavelength) + 1003;
% The function for the sine wave with the
% amplitude 3 µm and wave length of about 100 µm.
%Mean level is 1003 µm. Hello Everyone,
I need to put this function (f) in a matrix to print it as a figure, but how can I put it in the same matrix (4001, 3001) with two resolutions (1um, 2um) and the same wavelength 100um?
May someone please help me in solving this query.
Thanks
f = @(x) 3*sin(x*2*pi/wavelength) + 1003;
% The function for the sine wave with the
% amplitude 3 µm and wave length of about 100 µm.
%Mean level is 1003 µm. resolution MATLAB Answers — New Questions
How to Plot a Fourier Series?
Hi,
I was given a half range expansion function f(x) = 0, 0<x<2 and f(x) = 1, <2<x<4.
I was asked to solve for the Fourier cosine series and Fourier sine series and then plot each.
I solved by hand:
Fourier Cosine Series:
a0 = 1/2
an = -2/(n*pi)*sin((n*pi)/2)
f(x) = 1/2 + sum(an*cos((n*pi*x)/4)) from n =1 to infinity
Fourier Sine Series:
bn = [2/(n*pi)]*[(-1)^(n+1) + cos((n*pi)/2)]
f(x) = sum(bn*sin((n*pi*x)/4))
I’m fairly new to Matlab and very unexperienced, where I’m having dificulty is plotting these functions against x, say x = [-24 24] and n=1:1:50 or until square waves appear. I gained some experience plotting their partial sums using fplot, but that approach does not appear to work here. It isn’t feasible to plot the 50th partial sum. I’ve seen more arrayfun usage online, but I do not understand it whatsoever.
Any help and explanation would be greatly appreciated. Thanks in advance.Hi,
I was given a half range expansion function f(x) = 0, 0<x<2 and f(x) = 1, <2<x<4.
I was asked to solve for the Fourier cosine series and Fourier sine series and then plot each.
I solved by hand:
Fourier Cosine Series:
a0 = 1/2
an = -2/(n*pi)*sin((n*pi)/2)
f(x) = 1/2 + sum(an*cos((n*pi*x)/4)) from n =1 to infinity
Fourier Sine Series:
bn = [2/(n*pi)]*[(-1)^(n+1) + cos((n*pi)/2)]
f(x) = sum(bn*sin((n*pi*x)/4))
I’m fairly new to Matlab and very unexperienced, where I’m having dificulty is plotting these functions against x, say x = [-24 24] and n=1:1:50 or until square waves appear. I gained some experience plotting their partial sums using fplot, but that approach does not appear to work here. It isn’t feasible to plot the 50th partial sum. I’ve seen more arrayfun usage online, but I do not understand it whatsoever.
Any help and explanation would be greatly appreciated. Thanks in advance. Hi,
I was given a half range expansion function f(x) = 0, 0<x<2 and f(x) = 1, <2<x<4.
I was asked to solve for the Fourier cosine series and Fourier sine series and then plot each.
I solved by hand:
Fourier Cosine Series:
a0 = 1/2
an = -2/(n*pi)*sin((n*pi)/2)
f(x) = 1/2 + sum(an*cos((n*pi*x)/4)) from n =1 to infinity
Fourier Sine Series:
bn = [2/(n*pi)]*[(-1)^(n+1) + cos((n*pi)/2)]
f(x) = sum(bn*sin((n*pi*x)/4))
I’m fairly new to Matlab and very unexperienced, where I’m having dificulty is plotting these functions against x, say x = [-24 24] and n=1:1:50 or until square waves appear. I gained some experience plotting their partial sums using fplot, but that approach does not appear to work here. It isn’t feasible to plot the 50th partial sum. I’ve seen more arrayfun usage online, but I do not understand it whatsoever.
Any help and explanation would be greatly appreciated. Thanks in advance. arrays, function, time series MATLAB Answers — New Questions
Error accessing camera connected to NVIDIA Jetson AGX ORIN 64 Gb development kit
I am trying to access camera connected to Nvidia Jeston AGX orin. The camera model is: See3CAM_CU135M_H03R1 (econsystem usb 3). The camera is working properly in Nvidia Jeston. But when i am trying to use it on matlab i am having the following output and error:
Checking for CUDA availability on the Target…
Checking for ‘nvcc’ in the target system path…
Checking for cuDNN library availability on the Target…
Checking for TensorRT library availability on the Target…
Checking for prerequisite libraries is complete.
Gathering hardware details…
Checking for third-party library availability on the Target…
Gathering hardware details is complete.
Board name : NVIDIA Jetson AGX Orin Developer Kit
CUDA Version : 12.2
cuDNN Version : 8.9
TensorRT Version : 8.6
GStreamer Version : 1.20.3
V4L2 Version : 1.22.1-2build1
SDL Version : 1.2
OpenCV Version : 4.8.0
Available Webcams : See3CAM_CU135M_H03R1
Available GPUs : Orin
Available Digital Pins : 7 11 12 13 15 16 18 19 21 22 23 24 26 29 31 32 33 35 36 37 38 40
Available Webcams:
1: See3CAM_CU135M_H03R1
Details of Webcam 1: See3CAM_CU135M_H03R1
Error initializing camera See3CAM_CU135M_H03R1: Gstreamer pipeline error. Make sure that the camera is not opened.
The code which i used is given below:
clear all
close all
clc
% Connect to the Jetson
hwJetson = jetson(‘10.134.169.67’, ‘JetsonCam’, ‘ws132’);
% List the available webcams
webcams = hwJetson.WebcamList;
% Display the list of webcams
disp(‘Available Webcams:’);
for i = 1:length(webcams)
fprintf(‘%d: %sn’, i, webcams{i});
end
% Get detailed information about each webcam
for i = 1:length(webcams)
camName = webcams{i};
fprintf(‘nDetails of Webcam %d: %sn’, i, camName);
% Try to initialize the camera with a specific resolution and frame rate
try
% Initialize the camera with the default resolution and frame rate
cam = camera(hwJetson, camName, [1280 720]); % Example resolution and frame rate
% Display video modes supported by the camera
videoModes = cam.AvailableResolutions;
% Print available resolutions
fprintf(‘Available Resolutions:n’);
for j = 1:length(videoModes)
fprintf(‘Resolution %d: %sn’, j, videoModes{j});
end
% Clean up
clear cam;
catch ME
% Display an error message if the camera initialization fails
fprintf(‘Error initializing camera %s: %sn’, camName, ME.message);
end
endI am trying to access camera connected to Nvidia Jeston AGX orin. The camera model is: See3CAM_CU135M_H03R1 (econsystem usb 3). The camera is working properly in Nvidia Jeston. But when i am trying to use it on matlab i am having the following output and error:
Checking for CUDA availability on the Target…
Checking for ‘nvcc’ in the target system path…
Checking for cuDNN library availability on the Target…
Checking for TensorRT library availability on the Target…
Checking for prerequisite libraries is complete.
Gathering hardware details…
Checking for third-party library availability on the Target…
Gathering hardware details is complete.
Board name : NVIDIA Jetson AGX Orin Developer Kit
CUDA Version : 12.2
cuDNN Version : 8.9
TensorRT Version : 8.6
GStreamer Version : 1.20.3
V4L2 Version : 1.22.1-2build1
SDL Version : 1.2
OpenCV Version : 4.8.0
Available Webcams : See3CAM_CU135M_H03R1
Available GPUs : Orin
Available Digital Pins : 7 11 12 13 15 16 18 19 21 22 23 24 26 29 31 32 33 35 36 37 38 40
Available Webcams:
1: See3CAM_CU135M_H03R1
Details of Webcam 1: See3CAM_CU135M_H03R1
Error initializing camera See3CAM_CU135M_H03R1: Gstreamer pipeline error. Make sure that the camera is not opened.
The code which i used is given below:
clear all
close all
clc
% Connect to the Jetson
hwJetson = jetson(‘10.134.169.67’, ‘JetsonCam’, ‘ws132’);
% List the available webcams
webcams = hwJetson.WebcamList;
% Display the list of webcams
disp(‘Available Webcams:’);
for i = 1:length(webcams)
fprintf(‘%d: %sn’, i, webcams{i});
end
% Get detailed information about each webcam
for i = 1:length(webcams)
camName = webcams{i};
fprintf(‘nDetails of Webcam %d: %sn’, i, camName);
% Try to initialize the camera with a specific resolution and frame rate
try
% Initialize the camera with the default resolution and frame rate
cam = camera(hwJetson, camName, [1280 720]); % Example resolution and frame rate
% Display video modes supported by the camera
videoModes = cam.AvailableResolutions;
% Print available resolutions
fprintf(‘Available Resolutions:n’);
for j = 1:length(videoModes)
fprintf(‘Resolution %d: %sn’, j, videoModes{j});
end
% Clean up
clear cam;
catch ME
% Display an error message if the camera initialization fails
fprintf(‘Error initializing camera %s: %sn’, camName, ME.message);
end
end I am trying to access camera connected to Nvidia Jeston AGX orin. The camera model is: See3CAM_CU135M_H03R1 (econsystem usb 3). The camera is working properly in Nvidia Jeston. But when i am trying to use it on matlab i am having the following output and error:
Checking for CUDA availability on the Target…
Checking for ‘nvcc’ in the target system path…
Checking for cuDNN library availability on the Target…
Checking for TensorRT library availability on the Target…
Checking for prerequisite libraries is complete.
Gathering hardware details…
Checking for third-party library availability on the Target…
Gathering hardware details is complete.
Board name : NVIDIA Jetson AGX Orin Developer Kit
CUDA Version : 12.2
cuDNN Version : 8.9
TensorRT Version : 8.6
GStreamer Version : 1.20.3
V4L2 Version : 1.22.1-2build1
SDL Version : 1.2
OpenCV Version : 4.8.0
Available Webcams : See3CAM_CU135M_H03R1
Available GPUs : Orin
Available Digital Pins : 7 11 12 13 15 16 18 19 21 22 23 24 26 29 31 32 33 35 36 37 38 40
Available Webcams:
1: See3CAM_CU135M_H03R1
Details of Webcam 1: See3CAM_CU135M_H03R1
Error initializing camera See3CAM_CU135M_H03R1: Gstreamer pipeline error. Make sure that the camera is not opened.
The code which i used is given below:
clear all
close all
clc
% Connect to the Jetson
hwJetson = jetson(‘10.134.169.67’, ‘JetsonCam’, ‘ws132’);
% List the available webcams
webcams = hwJetson.WebcamList;
% Display the list of webcams
disp(‘Available Webcams:’);
for i = 1:length(webcams)
fprintf(‘%d: %sn’, i, webcams{i});
end
% Get detailed information about each webcam
for i = 1:length(webcams)
camName = webcams{i};
fprintf(‘nDetails of Webcam %d: %sn’, i, camName);
% Try to initialize the camera with a specific resolution and frame rate
try
% Initialize the camera with the default resolution and frame rate
cam = camera(hwJetson, camName, [1280 720]); % Example resolution and frame rate
% Display video modes supported by the camera
videoModes = cam.AvailableResolutions;
% Print available resolutions
fprintf(‘Available Resolutions:n’);
for j = 1:length(videoModes)
fprintf(‘Resolution %d: %sn’, j, videoModes{j});
end
% Clean up
clear cam;
catch ME
% Display an error message if the camera initialization fails
fprintf(‘Error initializing camera %s: %sn’, camName, ME.message);
end
end nvidia jetson, camera, image aquisition MATLAB Answers — New Questions