Category: Matlab
Category Archives: Matlab
Custom Deep Learning Network for Xilinx FPGA target
I am researching on building deep learning accelerators on Xilinx FPGA using the Deep Learning HDL Toolbox. I have a custom CNN network that has an input layer size of [1 1024 2]. Using the ProcessorConfig Class, I’m trying to optimize the processor configuration for my custom CNN network with the optimizeConfigurationForNetwork helper.
The optimize processor is generated sucessfully, but while trying to estimate performance of the CNN network i get the following error:
The Conv module in the processor configuration has an InputMemorySize of [150 150 7]. This is insufficient to delploy the ‘AP1’ Layer. Increase the InputMemorySize to [171 171 7] or more using hPC.setModuleProperty(‘conv’, ‘InputMemorySize’, [171 171 7]), where hPC is the dlhdl.ProcessorConfig object.
I’ve tried to increase the InputMemorySize, but the error keeps being thrown with a higher inputMemorySize requirement for the 2D Average Pooling layer.
I’d appreciate you recommendation on how i could fix this. Thank you.
Paul Osinowo,
Graduate Student
University of Strathclyde, Glasgow.I am researching on building deep learning accelerators on Xilinx FPGA using the Deep Learning HDL Toolbox. I have a custom CNN network that has an input layer size of [1 1024 2]. Using the ProcessorConfig Class, I’m trying to optimize the processor configuration for my custom CNN network with the optimizeConfigurationForNetwork helper.
The optimize processor is generated sucessfully, but while trying to estimate performance of the CNN network i get the following error:
The Conv module in the processor configuration has an InputMemorySize of [150 150 7]. This is insufficient to delploy the ‘AP1’ Layer. Increase the InputMemorySize to [171 171 7] or more using hPC.setModuleProperty(‘conv’, ‘InputMemorySize’, [171 171 7]), where hPC is the dlhdl.ProcessorConfig object.
I’ve tried to increase the InputMemorySize, but the error keeps being thrown with a higher inputMemorySize requirement for the 2D Average Pooling layer.
I’d appreciate you recommendation on how i could fix this. Thank you.
Paul Osinowo,
Graduate Student
University of Strathclyde, Glasgow. I am researching on building deep learning accelerators on Xilinx FPGA using the Deep Learning HDL Toolbox. I have a custom CNN network that has an input layer size of [1 1024 2]. Using the ProcessorConfig Class, I’m trying to optimize the processor configuration for my custom CNN network with the optimizeConfigurationForNetwork helper.
The optimize processor is generated sucessfully, but while trying to estimate performance of the CNN network i get the following error:
The Conv module in the processor configuration has an InputMemorySize of [150 150 7]. This is insufficient to delploy the ‘AP1’ Layer. Increase the InputMemorySize to [171 171 7] or more using hPC.setModuleProperty(‘conv’, ‘InputMemorySize’, [171 171 7]), where hPC is the dlhdl.ProcessorConfig object.
I’ve tried to increase the InputMemorySize, but the error keeps being thrown with a higher inputMemorySize requirement for the 2D Average Pooling layer.
I’d appreciate you recommendation on how i could fix this. Thank you.
Paul Osinowo,
Graduate Student
University of Strathclyde, Glasgow. deep learning, deep learning hdl toolbox, hardware acceleration MATLAB Answers — New Questions
Can I submit to a MATLAB Parallel Server cluster that is running a different version than my MATLAB and Parallel Computing Toolbox setup?
I have a MATLAB Parallel Server cluster that is either newer or older than the version of MATLAB I have installed on my client machine. Can I still utilize this MATLAB version to submit jobs to my MATLAB Parallel Server setup?I have a MATLAB Parallel Server cluster that is either newer or older than the version of MATLAB I have installed on my client machine. Can I still utilize this MATLAB version to submit jobs to my MATLAB Parallel Server setup? I have a MATLAB Parallel Server cluster that is either newer or older than the version of MATLAB I have installed on my client machine. Can I still utilize this MATLAB version to submit jobs to my MATLAB Parallel Server setup? MATLAB Answers — New Questions
How to skip a part of y axis in plotting ode code?
I want to plot the solution for the following ode but one variable is far from other variable solutions. so If I was advised to skip a part of y axis to look presentable. I want to skip from 1.5*10^9 to 1.3*10^10 in the y-axis. Is that possible?
clc;
clear;
% Define initial conditions
S0 = 1; S_R0 = 0; C0 = 0; C_R0 = 0; M10 = 85000; M20 = 15000; T_H10 = 71000; T_H20 = 12000; T_C0 = 56000; T_REG0 = 8000; IL100 = 0.0085; IFNG0 = 0.12; IL20 = 0.0094;
y0 = [S0, S_R0, C0, C_R0, M10, M20, T_H10, T_H20, T_C0, T_REG0, IL100, IFNG0, IL20];
% Define time span
tspan = [0 8000];
% Solve the system using ode23
[t, y] = ode45(@odes, tspan, y0);
% Plot the results
figure
plot(t, y(:,1), t, y(:,2),t, y(:,3),t, y(:,4),t, y(:,5),t, y(:,6),t, y(:,7),t, y(:,8),t, y(:,9),t, y(:,10),”)
legend({‘S’, ‘S_R’, ‘C’, ‘C_R’, ‘M1’, ‘M2’, ‘T_{H1}’, ‘T_H2’, ‘T_C’, ‘T_{REG}’});
xlabel(‘Time(days)’)
xlim([0 800])
ylabel(‘Cell Density(cells/ml)’)
%title([‘Solution of ODE System’])
grid on
figure
plot(t, y(:,11), t, y(:,12),t, y(:,13))
legend({‘IL10’, ‘IFNG’, ‘IL2’});
xlabel(‘Time(days)’)
xlim([200 800])
ylabel(‘Variables’)
% title(‘Solution of ODE System’)
grid onI want to plot the solution for the following ode but one variable is far from other variable solutions. so If I was advised to skip a part of y axis to look presentable. I want to skip from 1.5*10^9 to 1.3*10^10 in the y-axis. Is that possible?
clc;
clear;
% Define initial conditions
S0 = 1; S_R0 = 0; C0 = 0; C_R0 = 0; M10 = 85000; M20 = 15000; T_H10 = 71000; T_H20 = 12000; T_C0 = 56000; T_REG0 = 8000; IL100 = 0.0085; IFNG0 = 0.12; IL20 = 0.0094;
y0 = [S0, S_R0, C0, C_R0, M10, M20, T_H10, T_H20, T_C0, T_REG0, IL100, IFNG0, IL20];
% Define time span
tspan = [0 8000];
% Solve the system using ode23
[t, y] = ode45(@odes, tspan, y0);
% Plot the results
figure
plot(t, y(:,1), t, y(:,2),t, y(:,3),t, y(:,4),t, y(:,5),t, y(:,6),t, y(:,7),t, y(:,8),t, y(:,9),t, y(:,10),”)
legend({‘S’, ‘S_R’, ‘C’, ‘C_R’, ‘M1’, ‘M2’, ‘T_{H1}’, ‘T_H2’, ‘T_C’, ‘T_{REG}’});
xlabel(‘Time(days)’)
xlim([0 800])
ylabel(‘Cell Density(cells/ml)’)
%title([‘Solution of ODE System’])
grid on
figure
plot(t, y(:,11), t, y(:,12),t, y(:,13))
legend({‘IL10’, ‘IFNG’, ‘IL2’});
xlabel(‘Time(days)’)
xlim([200 800])
ylabel(‘Variables’)
% title(‘Solution of ODE System’)
grid on I want to plot the solution for the following ode but one variable is far from other variable solutions. so If I was advised to skip a part of y axis to look presentable. I want to skip from 1.5*10^9 to 1.3*10^10 in the y-axis. Is that possible?
clc;
clear;
% Define initial conditions
S0 = 1; S_R0 = 0; C0 = 0; C_R0 = 0; M10 = 85000; M20 = 15000; T_H10 = 71000; T_H20 = 12000; T_C0 = 56000; T_REG0 = 8000; IL100 = 0.0085; IFNG0 = 0.12; IL20 = 0.0094;
y0 = [S0, S_R0, C0, C_R0, M10, M20, T_H10, T_H20, T_C0, T_REG0, IL100, IFNG0, IL20];
% Define time span
tspan = [0 8000];
% Solve the system using ode23
[t, y] = ode45(@odes, tspan, y0);
% Plot the results
figure
plot(t, y(:,1), t, y(:,2),t, y(:,3),t, y(:,4),t, y(:,5),t, y(:,6),t, y(:,7),t, y(:,8),t, y(:,9),t, y(:,10),”)
legend({‘S’, ‘S_R’, ‘C’, ‘C_R’, ‘M1’, ‘M2’, ‘T_{H1}’, ‘T_H2’, ‘T_C’, ‘T_{REG}’});
xlabel(‘Time(days)’)
xlim([0 800])
ylabel(‘Cell Density(cells/ml)’)
%title([‘Solution of ODE System’])
grid on
figure
plot(t, y(:,11), t, y(:,12),t, y(:,13))
legend({‘IL10’, ‘IFNG’, ‘IL2’});
xlabel(‘Time(days)’)
xlim([200 800])
ylabel(‘Variables’)
% title(‘Solution of ODE System’)
grid on breakyaxis, breakplot, edit MATLAB Answers — New Questions
HDL and NI FPGA code generation error.
Hello,
I am attempting to generate spike voltage using a MATLAB Function block in Simulink. While the function block successfully generates the spikes, I am encountering difficulties in generating HDL code from the Simulink MATLAB Function block.
I have attached the Simulink model and the error details. Could someone assist me in resolving this issue?
The sampling rate is 1e6.
The solver selection is fixed and discrete.Hello,
I am attempting to generate spike voltage using a MATLAB Function block in Simulink. While the function block successfully generates the spikes, I am encountering difficulties in generating HDL code from the Simulink MATLAB Function block.
I have attached the Simulink model and the error details. Could someone assist me in resolving this issue?
The sampling rate is 1e6.
The solver selection is fixed and discrete. Hello,
I am attempting to generate spike voltage using a MATLAB Function block in Simulink. While the function block successfully generates the spikes, I am encountering difficulties in generating HDL code from the Simulink MATLAB Function block.
I have attached the Simulink model and the error details. Could someone assist me in resolving this issue?
The sampling rate is 1e6.
The solver selection is fixed and discrete. hdl, matlab function MATLAB Answers — New Questions
Why does MATLAB Parallel Server validation fail or stall at the SPMD/Pool job test stage (communicating batch jobs)?
Why does MATLAB Parallel Server validation fail or stall at the SPMD/Pool job test stage (communicating batch jobs)?Why does MATLAB Parallel Server validation fail or stall at the SPMD/Pool job test stage (communicating batch jobs)? Why does MATLAB Parallel Server validation fail or stall at the SPMD/Pool job test stage (communicating batch jobs)? MATLAB Answers — New Questions
Photovoltaic Thermal (PV/T) Hybrid Solar Panel
In the mentioned model of the H/PVT system in R2020b, can anyone help me that how the pump controls the flow of water?In the mentioned model of the H/PVT system in R2020b, can anyone help me that how the pump controls the flow of water? In the mentioned model of the H/PVT system in R2020b, can anyone help me that how the pump controls the flow of water? photovoltaic thermal (pv/t) hybrid solar panel MATLAB Answers — New Questions
Trouble with inheritance i MATLAB OOP
I have two classes. ParameterFile and PathParameterFile. Both are used to read from an xml file and get its contents. PathParameterFile is a child class of ParameterFile. In PathParameterFile constructor, you pass in a path of the xmlfile, it reads out the xmlfile and stores it in a struct. This one has 2 Properties.
properties
Path;
xmlStruct;
end
And the constructor is like this
function obj = PathParameterFile(path)
obj.xmlStruct = readstruct(path);
end
Then there is a second function called extractdata that extracts individual data from the struct and stores it in seperate properties. Here in this xml file we only have one value, that is the path to a different xml file.
function extractData(obj)
obj.Path = obj.xmlStruct.Path;
end
This is the PathParameterFile class which is also the child class.
Now the Parent Class which is ParameterFile is similar, but it has more Properties and methods to return the properties. These are the properties
properties
Path;
MaximumVoltage;
MinimumVoltage;
AllowedDeviation;
xmlStruct;
end
And this is constructor and extractData function.
function obj = ParameterFile(path)
%xmlFile = ‘X:5000 R&DBM57V311_FAT_DataAnalysisFAT UpgradeFat_Upgrade.xml’;
obj.xmlStruct = readstruct(path);
end
function extractData(obj)
batteryType = ‘battery1’;
obj.Path = obj.xmlStruct.(batteryType).Path;
end
Now as i said there are functions to return the properties. That is here I get to return the Path. So I have a function like this.
function outputPath = getPath(obj)
outputPath = obj.Path;
end
This is my idea. So I enter the path in the command window and store it in path1 and use that path to create an object of PathParameterFile, like this
pm1 = PathParameterFile(path1);
Then I use the function getPath to retrieve the path in xml file and store it in path2.
path2 = pm1.getPath;
And use path2 to create an object of ParameterFile and then get all the values there. So getPath is only writtern in Parent Class, its not written in Child Class. I just plan to call it using the child Class . This is the total idea. But my proplem is when I create an object of PathParameterFile i.e
pm1 = PathParameterFile(path1)
, its giving an error
Cannot define property ‘Path’ in class
‘PathParameterFile’ because the property has already
been defined in the superclass ‘ParameterFile’.
So what is the problem here. I need to use Path in both child and parent class, so that I can write the getPath function only in ParentClass and call it using the child class. Is that not possible. What needs to be done. Thank you.I have two classes. ParameterFile and PathParameterFile. Both are used to read from an xml file and get its contents. PathParameterFile is a child class of ParameterFile. In PathParameterFile constructor, you pass in a path of the xmlfile, it reads out the xmlfile and stores it in a struct. This one has 2 Properties.
properties
Path;
xmlStruct;
end
And the constructor is like this
function obj = PathParameterFile(path)
obj.xmlStruct = readstruct(path);
end
Then there is a second function called extractdata that extracts individual data from the struct and stores it in seperate properties. Here in this xml file we only have one value, that is the path to a different xml file.
function extractData(obj)
obj.Path = obj.xmlStruct.Path;
end
This is the PathParameterFile class which is also the child class.
Now the Parent Class which is ParameterFile is similar, but it has more Properties and methods to return the properties. These are the properties
properties
Path;
MaximumVoltage;
MinimumVoltage;
AllowedDeviation;
xmlStruct;
end
And this is constructor and extractData function.
function obj = ParameterFile(path)
%xmlFile = ‘X:5000 R&DBM57V311_FAT_DataAnalysisFAT UpgradeFat_Upgrade.xml’;
obj.xmlStruct = readstruct(path);
end
function extractData(obj)
batteryType = ‘battery1’;
obj.Path = obj.xmlStruct.(batteryType).Path;
end
Now as i said there are functions to return the properties. That is here I get to return the Path. So I have a function like this.
function outputPath = getPath(obj)
outputPath = obj.Path;
end
This is my idea. So I enter the path in the command window and store it in path1 and use that path to create an object of PathParameterFile, like this
pm1 = PathParameterFile(path1);
Then I use the function getPath to retrieve the path in xml file and store it in path2.
path2 = pm1.getPath;
And use path2 to create an object of ParameterFile and then get all the values there. So getPath is only writtern in Parent Class, its not written in Child Class. I just plan to call it using the child Class . This is the total idea. But my proplem is when I create an object of PathParameterFile i.e
pm1 = PathParameterFile(path1)
, its giving an error
Cannot define property ‘Path’ in class
‘PathParameterFile’ because the property has already
been defined in the superclass ‘ParameterFile’.
So what is the problem here. I need to use Path in both child and parent class, so that I can write the getPath function only in ParentClass and call it using the child class. Is that not possible. What needs to be done. Thank you. I have two classes. ParameterFile and PathParameterFile. Both are used to read from an xml file and get its contents. PathParameterFile is a child class of ParameterFile. In PathParameterFile constructor, you pass in a path of the xmlfile, it reads out the xmlfile and stores it in a struct. This one has 2 Properties.
properties
Path;
xmlStruct;
end
And the constructor is like this
function obj = PathParameterFile(path)
obj.xmlStruct = readstruct(path);
end
Then there is a second function called extractdata that extracts individual data from the struct and stores it in seperate properties. Here in this xml file we only have one value, that is the path to a different xml file.
function extractData(obj)
obj.Path = obj.xmlStruct.Path;
end
This is the PathParameterFile class which is also the child class.
Now the Parent Class which is ParameterFile is similar, but it has more Properties and methods to return the properties. These are the properties
properties
Path;
MaximumVoltage;
MinimumVoltage;
AllowedDeviation;
xmlStruct;
end
And this is constructor and extractData function.
function obj = ParameterFile(path)
%xmlFile = ‘X:5000 R&DBM57V311_FAT_DataAnalysisFAT UpgradeFat_Upgrade.xml’;
obj.xmlStruct = readstruct(path);
end
function extractData(obj)
batteryType = ‘battery1’;
obj.Path = obj.xmlStruct.(batteryType).Path;
end
Now as i said there are functions to return the properties. That is here I get to return the Path. So I have a function like this.
function outputPath = getPath(obj)
outputPath = obj.Path;
end
This is my idea. So I enter the path in the command window and store it in path1 and use that path to create an object of PathParameterFile, like this
pm1 = PathParameterFile(path1);
Then I use the function getPath to retrieve the path in xml file and store it in path2.
path2 = pm1.getPath;
And use path2 to create an object of ParameterFile and then get all the values there. So getPath is only writtern in Parent Class, its not written in Child Class. I just plan to call it using the child Class . This is the total idea. But my proplem is when I create an object of PathParameterFile i.e
pm1 = PathParameterFile(path1)
, its giving an error
Cannot define property ‘Path’ in class
‘PathParameterFile’ because the property has already
been defined in the superclass ‘ParameterFile’.
So what is the problem here. I need to use Path in both child and parent class, so that I can write the getPath function only in ParentClass and call it using the child class. Is that not possible. What needs to be done. Thank you. matlab, oop, inheritance MATLAB Answers — New Questions
Python can’t send value to simulink constant block
This is my simulink. I want to send the value from my python to constant block of u1 and u2, then the x1 and x2 will send the output to my python. Please ignore u2, cuz still in testing phase.
this is part of my python code, the set control action is used to send the value to u1 and u2 in simulink. This is the issue where the simulink cant access to the value sent from python. The output dont have issue.
Here is the output, as shown above the output x1 is showing 1.0 which shows that the constant block is not deliver the input values from python.
SO is there anyway to solve this issue? anything i need to check or set in the simulink? or any website or code I can refer to? any help or recommendation will be appreaciate. Thank you very much.This is my simulink. I want to send the value from my python to constant block of u1 and u2, then the x1 and x2 will send the output to my python. Please ignore u2, cuz still in testing phase.
this is part of my python code, the set control action is used to send the value to u1 and u2 in simulink. This is the issue where the simulink cant access to the value sent from python. The output dont have issue.
Here is the output, as shown above the output x1 is showing 1.0 which shows that the constant block is not deliver the input values from python.
SO is there anyway to solve this issue? anything i need to check or set in the simulink? or any website or code I can refer to? any help or recommendation will be appreaciate. Thank you very much. This is my simulink. I want to send the value from my python to constant block of u1 and u2, then the x1 and x2 will send the output to my python. Please ignore u2, cuz still in testing phase.
this is part of my python code, the set control action is used to send the value to u1 and u2 in simulink. This is the issue where the simulink cant access to the value sent from python. The output dont have issue.
Here is the output, as shown above the output x1 is showing 1.0 which shows that the constant block is not deliver the input values from python.
SO is there anyway to solve this issue? anything i need to check or set in the simulink? or any website or code I can refer to? any help or recommendation will be appreaciate. Thank you very much. simulink, python MATLAB Answers — New Questions
Resolve: “Dot indexing is not supported for variables of this type.”
Hi
I am using MATLAB online. I am getting the following error
Warning: The JavaFrame figure property will be removed in a future release. For more information see UI Alternatives for MATLAB Apps on mathworks.com. > In rawDataReader>initDisplayPage (line 714)
In rawDataReader (line 165)
Dot indexing is not supported for variables of this type.
Error in rawDataReader>initDisplayPage (line 716)
jframe.setFigureIcon(jIcon);
Error in rawDataReader (line 165)
ui.figHandle = initDisplayPage(setupJSON.mmWaveDevice);
Here is the code in line 165 of rawDataReader
ui.figHandle = initDisplayPage(setupJSON.mmWaveDevice);
"setupJSON" variable is created using below line
setupJSON = jsondecode(fileread(‘2024_July_07_setup.setup.json’));
Here is the content of file ‘2024_July_07_setup.setup.json’
{
"createdByVersion": "2.1.0",
"createdOn": "2024-07-07T11:52:19.6750601+05:30",
"configUsed": "./data_and_related_files/2024_July_07_mmWave.mmwave.json",
"captureHardware": "DCA1000",
"DCA1000Config": {
"dataLoggingMode": "raw",
"dataTransferMode": "LVDSCapture",
"dataCaptureMode": "ethernetStream",
"packetSequenceEnable": 1,
"packetDelay_us": 25
},
"mmWaveDevice": "awr1843",
"operatingFreq": 77,
"mmWaveDeviceConfig": {
"RS232COMPort": "COM9",
"RS232BaudRate": "921600",
"radarSSFirmware": "xwr18xx_radarss.bin",
"masterSSFirmware": "xwr18xx_masterss.bin"
},
"capturedFiles": {
"numFilesCollected": 1,
"fileBasePath": "./data_and_related_files",
"files": [
{
"rawFileName": "adc_data_Raw_0.bin",
"processedFileName": "2024_July_07_adc_data_256Samples_128Loops_1000Frames.bin",
"processedFileSummary": {
"numZeroFillBytes": 0
}
}
]
}
}
How to resolve this errorHi
I am using MATLAB online. I am getting the following error
Warning: The JavaFrame figure property will be removed in a future release. For more information see UI Alternatives for MATLAB Apps on mathworks.com. > In rawDataReader>initDisplayPage (line 714)
In rawDataReader (line 165)
Dot indexing is not supported for variables of this type.
Error in rawDataReader>initDisplayPage (line 716)
jframe.setFigureIcon(jIcon);
Error in rawDataReader (line 165)
ui.figHandle = initDisplayPage(setupJSON.mmWaveDevice);
Here is the code in line 165 of rawDataReader
ui.figHandle = initDisplayPage(setupJSON.mmWaveDevice);
"setupJSON" variable is created using below line
setupJSON = jsondecode(fileread(‘2024_July_07_setup.setup.json’));
Here is the content of file ‘2024_July_07_setup.setup.json’
{
"createdByVersion": "2.1.0",
"createdOn": "2024-07-07T11:52:19.6750601+05:30",
"configUsed": "./data_and_related_files/2024_July_07_mmWave.mmwave.json",
"captureHardware": "DCA1000",
"DCA1000Config": {
"dataLoggingMode": "raw",
"dataTransferMode": "LVDSCapture",
"dataCaptureMode": "ethernetStream",
"packetSequenceEnable": 1,
"packetDelay_us": 25
},
"mmWaveDevice": "awr1843",
"operatingFreq": 77,
"mmWaveDeviceConfig": {
"RS232COMPort": "COM9",
"RS232BaudRate": "921600",
"radarSSFirmware": "xwr18xx_radarss.bin",
"masterSSFirmware": "xwr18xx_masterss.bin"
},
"capturedFiles": {
"numFilesCollected": 1,
"fileBasePath": "./data_and_related_files",
"files": [
{
"rawFileName": "adc_data_Raw_0.bin",
"processedFileName": "2024_July_07_adc_data_256Samples_128Loops_1000Frames.bin",
"processedFileSummary": {
"numZeroFillBytes": 0
}
}
]
}
}
How to resolve this error Hi
I am using MATLAB online. I am getting the following error
Warning: The JavaFrame figure property will be removed in a future release. For more information see UI Alternatives for MATLAB Apps on mathworks.com. > In rawDataReader>initDisplayPage (line 714)
In rawDataReader (line 165)
Dot indexing is not supported for variables of this type.
Error in rawDataReader>initDisplayPage (line 716)
jframe.setFigureIcon(jIcon);
Error in rawDataReader (line 165)
ui.figHandle = initDisplayPage(setupJSON.mmWaveDevice);
Here is the code in line 165 of rawDataReader
ui.figHandle = initDisplayPage(setupJSON.mmWaveDevice);
"setupJSON" variable is created using below line
setupJSON = jsondecode(fileread(‘2024_July_07_setup.setup.json’));
Here is the content of file ‘2024_July_07_setup.setup.json’
{
"createdByVersion": "2.1.0",
"createdOn": "2024-07-07T11:52:19.6750601+05:30",
"configUsed": "./data_and_related_files/2024_July_07_mmWave.mmwave.json",
"captureHardware": "DCA1000",
"DCA1000Config": {
"dataLoggingMode": "raw",
"dataTransferMode": "LVDSCapture",
"dataCaptureMode": "ethernetStream",
"packetSequenceEnable": 1,
"packetDelay_us": 25
},
"mmWaveDevice": "awr1843",
"operatingFreq": 77,
"mmWaveDeviceConfig": {
"RS232COMPort": "COM9",
"RS232BaudRate": "921600",
"radarSSFirmware": "xwr18xx_radarss.bin",
"masterSSFirmware": "xwr18xx_masterss.bin"
},
"capturedFiles": {
"numFilesCollected": 1,
"fileBasePath": "./data_and_related_files",
"files": [
{
"rawFileName": "adc_data_Raw_0.bin",
"processedFileName": "2024_July_07_adc_data_256Samples_128Loops_1000Frames.bin",
"processedFileSummary": {
"numZeroFillBytes": 0
}
}
]
}
}
How to resolve this error dot indexing, matlab, matlab online, command line, error, resolve MATLAB Answers — New Questions
How to read lines from cell
this time I’m trying to process data from a .txt file.
my goal is to extrat the information at specific lines.
I load my file
temp3 = regexp(fileread(‘DT_Diagra_ScanTool_DT62234_T0410_SHAP_001.txt’), ‘r?n’, ‘split’)’;
I got a 680×1 cell
I made and index to find the line in whic is the value I wnat.
idc = strfind(temp3,’PID 01′);
idx = ~cellfun(‘isempty’,idc);
is there any way to get all the ‘0’ and ‘1’ in that row?
after that I will also need to get the next 4 lines below and end up getting below values
0000 0000
0000 0111
1110 0101
1110 0101
as always any feedback will be high appreciatedthis time I’m trying to process data from a .txt file.
my goal is to extrat the information at specific lines.
I load my file
temp3 = regexp(fileread(‘DT_Diagra_ScanTool_DT62234_T0410_SHAP_001.txt’), ‘r?n’, ‘split’)’;
I got a 680×1 cell
I made and index to find the line in whic is the value I wnat.
idc = strfind(temp3,’PID 01′);
idx = ~cellfun(‘isempty’,idc);
is there any way to get all the ‘0’ and ‘1’ in that row?
after that I will also need to get the next 4 lines below and end up getting below values
0000 0000
0000 0111
1110 0101
1110 0101
as always any feedback will be high appreciated this time I’m trying to process data from a .txt file.
my goal is to extrat the information at specific lines.
I load my file
temp3 = regexp(fileread(‘DT_Diagra_ScanTool_DT62234_T0410_SHAP_001.txt’), ‘r?n’, ‘split’)’;
I got a 680×1 cell
I made and index to find the line in whic is the value I wnat.
idc = strfind(temp3,’PID 01′);
idx = ~cellfun(‘isempty’,idc);
is there any way to get all the ‘0’ and ‘1’ in that row?
after that I will also need to get the next 4 lines below and end up getting below values
0000 0000
0000 0111
1110 0101
1110 0101
as always any feedback will be high appreciated matlab, txt, cell MATLAB Answers — New Questions
Pre R2019b: How can I test the licensing and installation for the worker nodes in my MATLAB Parallel Server cluster?
How can I test the licensing for the MATLAB workers on nodes in my MATLAB Parallel Server cluster?How can I test the licensing for the MATLAB workers on nodes in my MATLAB Parallel Server cluster? How can I test the licensing for the MATLAB workers on nodes in my MATLAB Parallel Server cluster? MATLAB Answers — New Questions
Why does validation fail on the ‘Cluster connection test’ when using the MATLAB Job Scheduler?
Why does validation fail on the "Cluster connection test" when I am using the MATLAB Job Scheduler?
Validation fails with the following error message:
ERROR: Could not contact an MJS lookup service on host ‘ah-hostname’. Possible reasons for this problem are:1. MJS has not been started, has crashed, or has been shut down.
2. A firewall is blocking communication between this computer and ‘ah-hostname’.
3. This computer cannot resolve the hostname of ‘ah-hostname’, it resolves it to an incorrect IP address.
4. ‘ah-hostname’ resolves its own hostname to an incorrect IP address.
5. Network routers are unable to route traffic from this computer to ‘ah-hostname’.
The hostname, ah-hostname, corresponds to the fully qualified hostname ah-hostname.dhcp.mathworks.com.
This computer resolves it to the IP address 111.22.33.44.Why does validation fail on the "Cluster connection test" when I am using the MATLAB Job Scheduler?
Validation fails with the following error message:
ERROR: Could not contact an MJS lookup service on host ‘ah-hostname’. Possible reasons for this problem are:1. MJS has not been started, has crashed, or has been shut down.
2. A firewall is blocking communication between this computer and ‘ah-hostname’.
3. This computer cannot resolve the hostname of ‘ah-hostname’, it resolves it to an incorrect IP address.
4. ‘ah-hostname’ resolves its own hostname to an incorrect IP address.
5. Network routers are unable to route traffic from this computer to ‘ah-hostname’.
The hostname, ah-hostname, corresponds to the fully qualified hostname ah-hostname.dhcp.mathworks.com.
This computer resolves it to the IP address 111.22.33.44. Why does validation fail on the "Cluster connection test" when I am using the MATLAB Job Scheduler?
Validation fails with the following error message:
ERROR: Could not contact an MJS lookup service on host ‘ah-hostname’. Possible reasons for this problem are:1. MJS has not been started, has crashed, or has been shut down.
2. A firewall is blocking communication between this computer and ‘ah-hostname’.
3. This computer cannot resolve the hostname of ‘ah-hostname’, it resolves it to an incorrect IP address.
4. ‘ah-hostname’ resolves its own hostname to an incorrect IP address.
5. Network routers are unable to route traffic from this computer to ‘ah-hostname’.
The hostname, ah-hostname, corresponds to the fully qualified hostname ah-hostname.dhcp.mathworks.com.
This computer resolves it to the IP address 111.22.33.44. MATLAB Answers — New Questions
Hi I have Csv file for voltage and time data and I would like to compute spectrogram to to compute harmonics at different frequencies but my spectrogram looks so much noisy or
%%
folder = ‘C:UsersMinDesktopNew folder (3)’;
filename = ’27o2.csv’;
data = readtable(fullfile(folder, filename));
t = table2array(data(3:end, 1));
x = table2array(data(3:end, 2));
fs = 1 / (t(2) – t(1));
% Plot the spectrogram
figure;
spectrogram(x, 500,100,500, fs, ‘yaxis’);
% Customize the plot
xlabel(‘Time (s)’);
ylabel(‘Frequency (MHz)’);
colormap("hot")
title(‘Spectrogram’);
colorbar;%%
folder = ‘C:UsersMinDesktopNew folder (3)’;
filename = ’27o2.csv’;
data = readtable(fullfile(folder, filename));
t = table2array(data(3:end, 1));
x = table2array(data(3:end, 2));
fs = 1 / (t(2) – t(1));
% Plot the spectrogram
figure;
spectrogram(x, 500,100,500, fs, ‘yaxis’);
% Customize the plot
xlabel(‘Time (s)’);
ylabel(‘Frequency (MHz)’);
colormap("hot")
title(‘Spectrogram’);
colorbar; %%
folder = ‘C:UsersMinDesktopNew folder (3)’;
filename = ’27o2.csv’;
data = readtable(fullfile(folder, filename));
t = table2array(data(3:end, 1));
x = table2array(data(3:end, 2));
fs = 1 / (t(2) – t(1));
% Plot the spectrogram
figure;
spectrogram(x, 500,100,500, fs, ‘yaxis’);
% Customize the plot
xlabel(‘Time (s)’);
ylabel(‘Frequency (MHz)’);
colormap("hot")
title(‘Spectrogram’);
colorbar; signal processing, spectrogram MATLAB Answers — New Questions
problem when running the simulink model connected with arduino mega2560
Below is the error that I faced. How to solve this.
Caused by:
Unable to create a communication link with the serial port. Please check the input argument PORT and verify that a device is connected.
Component:Simulink | Category:Block errorBelow is the error that I faced. How to solve this.
Caused by:
Unable to create a communication link with the serial port. Please check the input argument PORT and verify that a device is connected.
Component:Simulink | Category:Block error Below is the error that I faced. How to solve this.
Caused by:
Unable to create a communication link with the serial port. Please check the input argument PORT and verify that a device is connected.
Component:Simulink | Category:Block error arduino MATLAB Answers — New Questions
CONVERT GRIB TO CSV/MAT
Hello,
I would like to know if there exists anyway to convert GRIB file to CSV/MAT in MATLAB. The GRIB file I downloaded from https://cds.climate.copernicus.eu/cd…e?tab=overview.
Let me know if this can be done in MATLABHello,
I would like to know if there exists anyway to convert GRIB file to CSV/MAT in MATLAB. The GRIB file I downloaded from https://cds.climate.copernicus.eu/cd…e?tab=overview.
Let me know if this can be done in MATLAB Hello,
I would like to know if there exists anyway to convert GRIB file to CSV/MAT in MATLAB. The GRIB file I downloaded from https://cds.climate.copernicus.eu/cd…e?tab=overview.
Let me know if this can be done in MATLAB grib file, copernicus data MATLAB Answers — New Questions
The particle swarm optimization algorithm optimizes the scale factor and quantization factor of the fuzzy PID controller
I want to use the particle swarm optimization algorithm to optimize the scale factor and quantization factor of the fuzzy PID controller, how do I do that? If I want to adjust the temperature of my cabin by controlling the speed of my compressor, can I set the difference between the actual temperature of the cabin and the set temperature as my objective function? My optimization goal was to control the cabin temperature, so that when there was a sudden disturbance from the outside world, my cabin would fluctuate less and correspondingly faster.I want to use the particle swarm optimization algorithm to optimize the scale factor and quantization factor of the fuzzy PID controller, how do I do that? If I want to adjust the temperature of my cabin by controlling the speed of my compressor, can I set the difference between the actual temperature of the cabin and the set temperature as my objective function? My optimization goal was to control the cabin temperature, so that when there was a sudden disturbance from the outside world, my cabin would fluctuate less and correspondingly faster. I want to use the particle swarm optimization algorithm to optimize the scale factor and quantization factor of the fuzzy PID controller, how do I do that? If I want to adjust the temperature of my cabin by controlling the speed of my compressor, can I set the difference between the actual temperature of the cabin and the set temperature as my objective function? My optimization goal was to control the cabin temperature, so that when there was a sudden disturbance from the outside world, my cabin would fluctuate less and correspondingly faster. particle swarm optimization algorithm,, fuzzy pid controller, MATLAB Answers — New Questions
Simulink Coder: no such file or directory
Hey there,
I want to get a s-function with Simulink Coder out of a BMS_strategy_EJ04_Diagmodel. when i run the model,it tell me :"Error(s) encountered while building model "BMS_strategy_EJ04_Diagmodel"".
The detail of the error message:
BMS_strategy_EJ04_Diagmodel.mk:171: D:/Program: No such file or directory
BMS_strategy_EJ04_Diagmodel.mk:171: Files/MATLAB/R2011brtwctoolslcctools.mak: No such file or directory
gmake: *** No rule to make target `Files/MATLAB/R2011brtwctoolslcctools.mak’. Stop.
Well, it seems the path in line 171 is not working right. so i hope you can help me to slove this problem.
thank you !!
yours
miss LeeHey there,
I want to get a s-function with Simulink Coder out of a BMS_strategy_EJ04_Diagmodel. when i run the model,it tell me :"Error(s) encountered while building model "BMS_strategy_EJ04_Diagmodel"".
The detail of the error message:
BMS_strategy_EJ04_Diagmodel.mk:171: D:/Program: No such file or directory
BMS_strategy_EJ04_Diagmodel.mk:171: Files/MATLAB/R2011brtwctoolslcctools.mak: No such file or directory
gmake: *** No rule to make target `Files/MATLAB/R2011brtwctoolslcctools.mak’. Stop.
Well, it seems the path in line 171 is not working right. so i hope you can help me to slove this problem.
thank you !!
yours
miss Lee Hey there,
I want to get a s-function with Simulink Coder out of a BMS_strategy_EJ04_Diagmodel. when i run the model,it tell me :"Error(s) encountered while building model "BMS_strategy_EJ04_Diagmodel"".
The detail of the error message:
BMS_strategy_EJ04_Diagmodel.mk:171: D:/Program: No such file or directory
BMS_strategy_EJ04_Diagmodel.mk:171: Files/MATLAB/R2011brtwctoolslcctools.mak: No such file or directory
gmake: *** No rule to make target `Files/MATLAB/R2011brtwctoolslcctools.mak’. Stop.
Well, it seems the path in line 171 is not working right. so i hope you can help me to slove this problem.
thank you !!
yours
miss Lee stateflow, code generation MATLAB Answers — New Questions
빌드 에러 문의 건
오류:The call to autosar_make_rtw_hook, during the entry hook generated the following error:
Short name ‘FlushHandle_Impl’ (Package /Components/SwcImplementations/FlushHandle_Impl) failed uniqueness tests, because short name ‘FlushHandle_Impl’ (SwcImplementation /Components/SwcImplementations/FlushHandle_Impl) already exists. AUTOSAR constraint 2508 (CONSTR_2508) requires uniqueness tests to be case insensitive. To comply with the constraint, change one of the short names.
The build process will terminate as a result.
원인:
Short name ‘FlushHandle_Impl’ (Package /Components/SwcImplementations/FlushHandle_Impl) failed uniqueness tests, because short name ‘FlushHandle_Impl’ (SwcImplementation /Components/SwcImplementations/FlushHandle_Impl) already exists. AUTOSAR constraint 2508 (CONSTR_2508) requires uniqueness tests to be case insensitive. To comply with the constraint, change one of the short names.
이런 에러가 있는대 어떻게 수정하면 될까요?오류:The call to autosar_make_rtw_hook, during the entry hook generated the following error:
Short name ‘FlushHandle_Impl’ (Package /Components/SwcImplementations/FlushHandle_Impl) failed uniqueness tests, because short name ‘FlushHandle_Impl’ (SwcImplementation /Components/SwcImplementations/FlushHandle_Impl) already exists. AUTOSAR constraint 2508 (CONSTR_2508) requires uniqueness tests to be case insensitive. To comply with the constraint, change one of the short names.
The build process will terminate as a result.
원인:
Short name ‘FlushHandle_Impl’ (Package /Components/SwcImplementations/FlushHandle_Impl) failed uniqueness tests, because short name ‘FlushHandle_Impl’ (SwcImplementation /Components/SwcImplementations/FlushHandle_Impl) already exists. AUTOSAR constraint 2508 (CONSTR_2508) requires uniqueness tests to be case insensitive. To comply with the constraint, change one of the short names.
이런 에러가 있는대 어떻게 수정하면 될까요? 오류:The call to autosar_make_rtw_hook, during the entry hook generated the following error:
Short name ‘FlushHandle_Impl’ (Package /Components/SwcImplementations/FlushHandle_Impl) failed uniqueness tests, because short name ‘FlushHandle_Impl’ (SwcImplementation /Components/SwcImplementations/FlushHandle_Impl) already exists. AUTOSAR constraint 2508 (CONSTR_2508) requires uniqueness tests to be case insensitive. To comply with the constraint, change one of the short names.
The build process will terminate as a result.
원인:
Short name ‘FlushHandle_Impl’ (Package /Components/SwcImplementations/FlushHandle_Impl) failed uniqueness tests, because short name ‘FlushHandle_Impl’ (SwcImplementation /Components/SwcImplementations/FlushHandle_Impl) already exists. AUTOSAR constraint 2508 (CONSTR_2508) requires uniqueness tests to be case insensitive. To comply with the constraint, change one of the short names.
이런 에러가 있는대 어떻게 수정하면 될까요? simulink, code generation MATLAB Answers — New Questions
how do i give flag to this condition
Design an Up-counter using Simulink Blocks:
The counter shall go uptill 10 counts with an incremental of 2.
After 10 counts, it should be reset to 0 and shall set a flag.
The flag (initial value =0) shall be reset after 20.
Display the flag at every sample time.Design an Up-counter using Simulink Blocks:
The counter shall go uptill 10 counts with an incremental of 2.
After 10 counts, it should be reset to 0 and shall set a flag.
The flag (initial value =0) shall be reset after 20.
Display the flag at every sample time. Design an Up-counter using Simulink Blocks:
The counter shall go uptill 10 counts with an incremental of 2.
After 10 counts, it should be reset to 0 and shall set a flag.
The flag (initial value =0) shall be reset after 20.
Display the flag at every sample time. flag, upcounter MATLAB Answers — New Questions
MATLAB FUNDAMENTALS COURSE self paced course
Good evening Sir,
I am doing MATLAB FUNDAMENTALS self-paced online course. In the topic of Accessing multiple elements of an array in last excersise,task1 though i used proper command t extract the elements of a matrix, it is showing error .In the web based browser i am getting correct o/p on the right side pane, but in the course side pane on left it is showing error. Please give solution.Good evening Sir,
I am doing MATLAB FUNDAMENTALS self-paced online course. In the topic of Accessing multiple elements of an array in last excersise,task1 though i used proper command t extract the elements of a matrix, it is showing error .In the web based browser i am getting correct o/p on the right side pane, but in the course side pane on left it is showing error. Please give solution. Good evening Sir,
I am doing MATLAB FUNDAMENTALS self-paced online course. In the topic of Accessing multiple elements of an array in last excersise,task1 though i used proper command t extract the elements of a matrix, it is showing error .In the web based browser i am getting correct o/p on the right side pane, but in the course side pane on left it is showing error. Please give solution. access data in arrays MATLAB Answers — New Questions