Tag Archives: matlab
Data type conversion in simulink
Hi, One of the output of simulink model is complex number represented in fixd point 18 word lenght and 14 fractional length which is then converted into 18 word length and 15 fractional length . how i can convert the real part and imaginary part of complex number into hex number ? in simulinkHi, One of the output of simulink model is complex number represented in fixd point 18 word lenght and 14 fractional length which is then converted into 18 word length and 15 fractional length . how i can convert the real part and imaginary part of complex number into hex number ? in simulink Hi, One of the output of simulink model is complex number represented in fixd point 18 word lenght and 14 fractional length which is then converted into 18 word length and 15 fractional length . how i can convert the real part and imaginary part of complex number into hex number ? in simulink simulink, data type conversion MATLAB Answers — New Questions
When trying to use TCST package for matlab getting this error in MATLAb 2024a “Caught “std::exception” Exception message is: Invalid character code sequence detected.”
I am trying to use TCSTInterface to run and optimize some structures in CST MWS. When I try to open and run any CST file from MATLAB 2024a, the program throws me the error:
Caught "std::exception" Exception message is:
Invalid character code sequence detected.
This error is not observed on an older matlab version.
Kindly help.I am trying to use TCSTInterface to run and optimize some structures in CST MWS. When I try to open and run any CST file from MATLAB 2024a, the program throws me the error:
Caught "std::exception" Exception message is:
Invalid character code sequence detected.
This error is not observed on an older matlab version.
Kindly help. I am trying to use TCSTInterface to run and optimize some structures in CST MWS. When I try to open and run any CST file from MATLAB 2024a, the program throws me the error:
Caught "std::exception" Exception message is:
Invalid character code sequence detected.
This error is not observed on an older matlab version.
Kindly help. matlab MATLAB Answers — New Questions
sometimes in the MATLAB command line window, it will occur ” Caught “std::exception” Exception message is: Invalid character code sequence detected.”
sometimes in the MATLAB command line window, it will occur " Caught "std::exception" Exception message is: Invalid character code sequence detected."sometimes in the MATLAB command line window, it will occur " Caught "std::exception" Exception message is: Invalid character code sequence detected." sometimes in the MATLAB command line window, it will occur " Caught "std::exception" Exception message is: Invalid character code sequence detected." bug, matlab, character coed MATLAB Answers — New Questions
how can i change class properties
i change properties of class in addon functions then i got error here is error code.
user defined classes are not supported
in your version of MATLAB
what should i do?
my matlab version is newest and it is for student.
sorry for my bad englishi change properties of class in addon functions then i got error here is error code.
user defined classes are not supported
in your version of MATLAB
what should i do?
my matlab version is newest and it is for student.
sorry for my bad english i change properties of class in addon functions then i got error here is error code.
user defined classes are not supported
in your version of MATLAB
what should i do?
my matlab version is newest and it is for student.
sorry for my bad english change properties MATLAB Answers — New Questions
I am getting an exception running C++ code generated by MATLAB Coder
The code that is failing is captured in the screen shot. Its an error occurring during a malloc() within the function emxInit_real_T().
<</matlabcentral/answers/uploaded_files/116064/exception1.PNG>>
void emxInit_real_T(emxArray_real_T **pEmxArray, int numDimensions)
{
emxArray_real_T *emxArray;
int i;
*pEmxArray = (emxArray_real_T *)malloc(sizeof(emxArray_real_T));
emxArray = *pEmxArray;
emxArray->data = (double *)NULL;
emxArray->numDimensions = numDimensions;
emxArray->size = (int *)malloc((unsigned int)(sizeof(int) * numDimensions));
emxArray->allocatedSize = 0;
emxArray->canFreeData = true;
for (i = 0; i < numDimensions; i++) {
emxArray->size[i] = 0;
}
}The code that is failing is captured in the screen shot. Its an error occurring during a malloc() within the function emxInit_real_T().
<</matlabcentral/answers/uploaded_files/116064/exception1.PNG>>
void emxInit_real_T(emxArray_real_T **pEmxArray, int numDimensions)
{
emxArray_real_T *emxArray;
int i;
*pEmxArray = (emxArray_real_T *)malloc(sizeof(emxArray_real_T));
emxArray = *pEmxArray;
emxArray->data = (double *)NULL;
emxArray->numDimensions = numDimensions;
emxArray->size = (int *)malloc((unsigned int)(sizeof(int) * numDimensions));
emxArray->allocatedSize = 0;
emxArray->canFreeData = true;
for (i = 0; i < numDimensions; i++) {
emxArray->size[i] = 0;
}
} The code that is failing is captured in the screen shot. Its an error occurring during a malloc() within the function emxInit_real_T().
<</matlabcentral/answers/uploaded_files/116064/exception1.PNG>>
void emxInit_real_T(emxArray_real_T **pEmxArray, int numDimensions)
{
emxArray_real_T *emxArray;
int i;
*pEmxArray = (emxArray_real_T *)malloc(sizeof(emxArray_real_T));
emxArray = *pEmxArray;
emxArray->data = (double *)NULL;
emxArray->numDimensions = numDimensions;
emxArray->size = (int *)malloc((unsigned int)(sizeof(int) * numDimensions));
emxArray->allocatedSize = 0;
emxArray->canFreeData = true;
for (i = 0; i < numDimensions; i++) {
emxArray->size[i] = 0;
}
} coder, exception MATLAB Answers — New Questions
Aspen Plus & Matlab (command to deactivate/activate a transfer block?)
Hi everyone,
I have a model in Aspen Plus that I launch with Matlab to vary some parameters.
I want to deactivate a block and then re-activate it (because it helps to reach the convergence).
How can I do that?(which is the code)
Do you know where I can find a list of useful commands for Matlab-Aspen?
Thank you very much.Hi everyone,
I have a model in Aspen Plus that I launch with Matlab to vary some parameters.
I want to deactivate a block and then re-activate it (because it helps to reach the convergence).
How can I do that?(which is the code)
Do you know where I can find a list of useful commands for Matlab-Aspen?
Thank you very much. Hi everyone,
I have a model in Aspen Plus that I launch with Matlab to vary some parameters.
I want to deactivate a block and then re-activate it (because it helps to reach the convergence).
How can I do that?(which is the code)
Do you know where I can find a list of useful commands for Matlab-Aspen?
Thank you very much. aspen plus, deactivate block MATLAB Answers — New Questions
Changes in camera viewpoint parameters cannot be constrained within the axial coordinate area?
For example, I want to display my drawing in the lower left part of the axis area of the figure window, defining position=[0,0,0.5,0.5], but when I change the camera parameter CameraViewAngle, the drawing fills the entire figure area, any suggestions?
% define my axes visual region, bottom left
ax = axes(Position=[0.0,0.0,0.5,0.5]);
% my plot
[X, Y, Z] = sphere(30);
surf(ax, X, Y, Z,FaceColor="none",EdgeColor="black");
% my camera setting
ax.DataAspectRatio = [1,1,1];
ax.CameraPosition = [0,0,0];
ax.CameraTarget = [1,0,0];
ax.CameraUpVector = [0,0,1];
set camera parameter CameraViewAngle
ax.CameraViewAngle = 100
% ax.Projection = ‘perspective’;%’orthographic’;%’perspective’;
then chage view angle to 20,the area displayed in the figure window has also changed
ax.CameraViewAngle = 20
show result:
The position properties of the axes remains unchanged,while the drawing fills the entire figure area? What can I do to get my drawing within the [0,0,0.5,0.5] lower left area?
References:
Camera Graphics Terminology
View Control with the Camera ToolbarFor example, I want to display my drawing in the lower left part of the axis area of the figure window, defining position=[0,0,0.5,0.5], but when I change the camera parameter CameraViewAngle, the drawing fills the entire figure area, any suggestions?
% define my axes visual region, bottom left
ax = axes(Position=[0.0,0.0,0.5,0.5]);
% my plot
[X, Y, Z] = sphere(30);
surf(ax, X, Y, Z,FaceColor="none",EdgeColor="black");
% my camera setting
ax.DataAspectRatio = [1,1,1];
ax.CameraPosition = [0,0,0];
ax.CameraTarget = [1,0,0];
ax.CameraUpVector = [0,0,1];
set camera parameter CameraViewAngle
ax.CameraViewAngle = 100
% ax.Projection = ‘perspective’;%’orthographic’;%’perspective’;
then chage view angle to 20,the area displayed in the figure window has also changed
ax.CameraViewAngle = 20
show result:
The position properties of the axes remains unchanged,while the drawing fills the entire figure area? What can I do to get my drawing within the [0,0,0.5,0.5] lower left area?
References:
Camera Graphics Terminology
View Control with the Camera Toolbar For example, I want to display my drawing in the lower left part of the axis area of the figure window, defining position=[0,0,0.5,0.5], but when I change the camera parameter CameraViewAngle, the drawing fills the entire figure area, any suggestions?
% define my axes visual region, bottom left
ax = axes(Position=[0.0,0.0,0.5,0.5]);
% my plot
[X, Y, Z] = sphere(30);
surf(ax, X, Y, Z,FaceColor="none",EdgeColor="black");
% my camera setting
ax.DataAspectRatio = [1,1,1];
ax.CameraPosition = [0,0,0];
ax.CameraTarget = [1,0,0];
ax.CameraUpVector = [0,0,1];
set camera parameter CameraViewAngle
ax.CameraViewAngle = 100
% ax.Projection = ‘perspective’;%’orthographic’;%’perspective’;
then chage view angle to 20,the area displayed in the figure window has also changed
ax.CameraViewAngle = 20
show result:
The position properties of the axes remains unchanged,while the drawing fills the entire figure area? What can I do to get my drawing within the [0,0,0.5,0.5] lower left area?
References:
Camera Graphics Terminology
View Control with the Camera Toolbar plot, camera control view MATLAB Answers — New Questions
If f1(x,y)≤z≤f2(x,y), how to draw the range of z?
x=-5:0.1:5;
y=-5:0.1:5;
for m=1:101
for n=1:101
z1(m,n)=x(m)^2+y(n)^2;
z2(m,n)=3*x(m)^3+y(n)^2+1;
end
end
surf(x,y,z1,"EdgeColor","none")
hold on
surf(x,y,z2,"EdgeColor","none")
If the upper and lower limits of z are described by separate functions, how to plot the range of the z function in the direction of the z-axis instead of two surfaces?x=-5:0.1:5;
y=-5:0.1:5;
for m=1:101
for n=1:101
z1(m,n)=x(m)^2+y(n)^2;
z2(m,n)=3*x(m)^3+y(n)^2+1;
end
end
surf(x,y,z1,"EdgeColor","none")
hold on
surf(x,y,z2,"EdgeColor","none")
If the upper and lower limits of z are described by separate functions, how to plot the range of the z function in the direction of the z-axis instead of two surfaces? x=-5:0.1:5;
y=-5:0.1:5;
for m=1:101
for n=1:101
z1(m,n)=x(m)^2+y(n)^2;
z2(m,n)=3*x(m)^3+y(n)^2+1;
end
end
surf(x,y,z1,"EdgeColor","none")
hold on
surf(x,y,z2,"EdgeColor","none")
If the upper and lower limits of z are described by separate functions, how to plot the range of the z function in the direction of the z-axis instead of two surfaces? three-dimensional drawing MATLAB Answers — New Questions
Provide a custom Platform Abstraction Layer. external mode XCP
Hi,
I have implemented a toolchain based on costum target file cxc_ert.tlc
When I use external mode tcpip -> MEX-file name: ext_comm
The code is generated without problems.
Now I am changing for external mode using XCP on TCP/IP. For that on the sl_costumization.m script I add the line:
cm.ExtModeTransports.add(‘cxc_ert.tlc’, ‘XCP on TCP/IP’,’ext_xcp’, ‘Level1’);
After choose XCP on TCP/IP and try to generate the code the following error appears (see image below).
How can I provide a custom Platform Abstraction Layer? What is the meaning of that? I am new on the Embedded Coder. My target HW is ubuntu Core.
Can you help me?
Many thanks in advance
Miguel PintoHi,
I have implemented a toolchain based on costum target file cxc_ert.tlc
When I use external mode tcpip -> MEX-file name: ext_comm
The code is generated without problems.
Now I am changing for external mode using XCP on TCP/IP. For that on the sl_costumization.m script I add the line:
cm.ExtModeTransports.add(‘cxc_ert.tlc’, ‘XCP on TCP/IP’,’ext_xcp’, ‘Level1’);
After choose XCP on TCP/IP and try to generate the code the following error appears (see image below).
How can I provide a custom Platform Abstraction Layer? What is the meaning of that? I am new on the Embedded Coder. My target HW is ubuntu Core.
Can you help me?
Many thanks in advance
Miguel Pinto Hi,
I have implemented a toolchain based on costum target file cxc_ert.tlc
When I use external mode tcpip -> MEX-file name: ext_comm
The code is generated without problems.
Now I am changing for external mode using XCP on TCP/IP. For that on the sl_costumization.m script I add the line:
cm.ExtModeTransports.add(‘cxc_ert.tlc’, ‘XCP on TCP/IP’,’ext_xcp’, ‘Level1’);
After choose XCP on TCP/IP and try to generate the code the following error appears (see image below).
How can I provide a custom Platform Abstraction Layer? What is the meaning of that? I am new on the Embedded Coder. My target HW is ubuntu Core.
Can you help me?
Many thanks in advance
Miguel Pinto external mode, xcp on tcp/ip MATLAB Answers — New Questions
(Document redirection) Online documents do not remind you to select your geographic destination every time you reopen them
As far as I know, starting from MATLAB R2024b, the documentation is defaulted to be accessed online. However, the problem is that every time I open the official online documentation through my browser, it defaults or forcibly redirects to the documentation hosted site for my current geographic location, often with multiple pop-up reminders, which is very annoying!
Suggestion: Could there be an option to set preferences linked to my personal account so that the documentation defaults to my chosen language preference without having to deal with “forced reminders” or “forced redirection” based on my geographic location? I prefer reading the English documentation, but the website automatically redirects me to the Chinese documentation due to my geolocation, which is quite frustrating!As far as I know, starting from MATLAB R2024b, the documentation is defaulted to be accessed online. However, the problem is that every time I open the official online documentation through my browser, it defaults or forcibly redirects to the documentation hosted site for my current geographic location, often with multiple pop-up reminders, which is very annoying!
Suggestion: Could there be an option to set preferences linked to my personal account so that the documentation defaults to my chosen language preference without having to deal with “forced reminders” or “forced redirection” based on my geographic location? I prefer reading the English documentation, but the website automatically redirects me to the Chinese documentation due to my geolocation, which is quite frustrating! As far as I know, starting from MATLAB R2024b, the documentation is defaulted to be accessed online. However, the problem is that every time I open the official online documentation through my browser, it defaults or forcibly redirects to the documentation hosted site for my current geographic location, often with multiple pop-up reminders, which is very annoying!
Suggestion: Could there be an option to set preferences linked to my personal account so that the documentation defaults to my chosen language preference without having to deal with “forced reminders” or “forced redirection” based on my geographic location? I prefer reading the English documentation, but the website automatically redirects me to the Chinese documentation due to my geolocation, which is quite frustrating! doc, documentation, online MATLAB Answers — New Questions
How can I read an image of size 2048*2048 pixels using Matlab 2013 by the “imread()” command ?
Please, how can I read an image of size 2048*2048 pixels using Matlab 2013 by the "imread()" command ? thank you.Please, how can I read an image of size 2048*2048 pixels using Matlab 2013 by the "imread()" command ? thank you. Please, how can I read an image of size 2048*2048 pixels using Matlab 2013 by the "imread()" command ? thank you. image processing, image acquisition MATLAB Answers — New Questions
Failure of RoadRunner and CARLA co-simulation
I have purchased a new computer and want to run a simulation using RoadRunner and CARLA.
I have installed Carla, Unreal Engine 4, and RoadRunner.
I have run the “Run a RoadRunner Scenario Co-simulation with CARLA Visualization” on the site [1].
[1]https://jp.mathworks.com/help/roadrunner-scenario/ug/run-roadrunner-scenario-and-carla-cosimulations.html
Then the following error appears in the RoadRunner output and the simulation with CARLA does not start.
> ——————– Simulation STARTED ——————–
> WARNING: Unable to locate a simulator for actor behavior ‘{b63406a3-fd5d-409e-8026-d5af7017d251}’, applying RoadRunner default behavior to this actor.
Invalid actor behavior:.
– Behavior asset: Assets/Behaviors/CARLA.rrbehavior
– Platform type: External
– Platform name: CARLA
The following simulation clients are active:
– {3aeba7e8-97af-4a44-aef4-919779dbfbce}: RoadRunner
Try updating the MATLAB and CARLA paths in C:/Users/im_admin/AppData/Roaming/MathWorks/RoadRunner/R2024a/Scenario/Config/ SimulationConfiguration.xml
> (id: CARLA Bridge ) : CARLA Bridge: Connected to CARLA at localhost:2000.
The command prompt is as follows.
No module named ‘carla’.
Attempting to add C:/carla/Build/UE4Carla/91c2e42-dirty/WindowsNoEditor/PythonAPI/carla/distcarla-0.9.14-py3.8-win-amd64.egg to system path.
Connecting to Scenario Simulation Engine …
Registered Scenario Simulation Engine Client successfully
Done.
Updating the MATLAB and CARLA paths in SimulationConfiguration.xml does not fix this error.
What should I do?
Environment:
Windows 10
Carla 0.9.14
RoadRunner 2024a
Unreal Engine 4.26I have purchased a new computer and want to run a simulation using RoadRunner and CARLA.
I have installed Carla, Unreal Engine 4, and RoadRunner.
I have run the “Run a RoadRunner Scenario Co-simulation with CARLA Visualization” on the site [1].
[1]https://jp.mathworks.com/help/roadrunner-scenario/ug/run-roadrunner-scenario-and-carla-cosimulations.html
Then the following error appears in the RoadRunner output and the simulation with CARLA does not start.
> ——————– Simulation STARTED ——————–
> WARNING: Unable to locate a simulator for actor behavior ‘{b63406a3-fd5d-409e-8026-d5af7017d251}’, applying RoadRunner default behavior to this actor.
Invalid actor behavior:.
– Behavior asset: Assets/Behaviors/CARLA.rrbehavior
– Platform type: External
– Platform name: CARLA
The following simulation clients are active:
– {3aeba7e8-97af-4a44-aef4-919779dbfbce}: RoadRunner
Try updating the MATLAB and CARLA paths in C:/Users/im_admin/AppData/Roaming/MathWorks/RoadRunner/R2024a/Scenario/Config/ SimulationConfiguration.xml
> (id: CARLA Bridge ) : CARLA Bridge: Connected to CARLA at localhost:2000.
The command prompt is as follows.
No module named ‘carla’.
Attempting to add C:/carla/Build/UE4Carla/91c2e42-dirty/WindowsNoEditor/PythonAPI/carla/distcarla-0.9.14-py3.8-win-amd64.egg to system path.
Connecting to Scenario Simulation Engine …
Registered Scenario Simulation Engine Client successfully
Done.
Updating the MATLAB and CARLA paths in SimulationConfiguration.xml does not fix this error.
What should I do?
Environment:
Windows 10
Carla 0.9.14
RoadRunner 2024a
Unreal Engine 4.26 I have purchased a new computer and want to run a simulation using RoadRunner and CARLA.
I have installed Carla, Unreal Engine 4, and RoadRunner.
I have run the “Run a RoadRunner Scenario Co-simulation with CARLA Visualization” on the site [1].
[1]https://jp.mathworks.com/help/roadrunner-scenario/ug/run-roadrunner-scenario-and-carla-cosimulations.html
Then the following error appears in the RoadRunner output and the simulation with CARLA does not start.
> ——————– Simulation STARTED ——————–
> WARNING: Unable to locate a simulator for actor behavior ‘{b63406a3-fd5d-409e-8026-d5af7017d251}’, applying RoadRunner default behavior to this actor.
Invalid actor behavior:.
– Behavior asset: Assets/Behaviors/CARLA.rrbehavior
– Platform type: External
– Platform name: CARLA
The following simulation clients are active:
– {3aeba7e8-97af-4a44-aef4-919779dbfbce}: RoadRunner
Try updating the MATLAB and CARLA paths in C:/Users/im_admin/AppData/Roaming/MathWorks/RoadRunner/R2024a/Scenario/Config/ SimulationConfiguration.xml
> (id: CARLA Bridge ) : CARLA Bridge: Connected to CARLA at localhost:2000.
The command prompt is as follows.
No module named ‘carla’.
Attempting to add C:/carla/Build/UE4Carla/91c2e42-dirty/WindowsNoEditor/PythonAPI/carla/distcarla-0.9.14-py3.8-win-amd64.egg to system path.
Connecting to Scenario Simulation Engine …
Registered Scenario Simulation Engine Client successfully
Done.
Updating the MATLAB and CARLA paths in SimulationConfiguration.xml does not fix this error.
What should I do?
Environment:
Windows 10
Carla 0.9.14
RoadRunner 2024a
Unreal Engine 4.26 roadrunner, carla, simulate, actor behavior MATLAB Answers — New Questions
how do I load zip file in matlab code?
for i = 1:length(files)
file = fullfile(‘c:sar’, files(i).name);
disp(file);
% Load and preprocess the data
source = loadProduct(file); % Define or replace this function with actual data loading
it gives following errors
>> SAR_preprocessing
c:sarS1A_IW_GRDH_1SDV_20240823T005527_20240823T005552_055333_06BF4D_21CD.SAFE.zip
Error in SAR_preprocessing>main (line 44)
source = loadProduct(file); % Define or replace this function with actual data loading
Unrecognized function or variable ‘loadProduct’.
Please suggest me how to load zip file for further processing.
Kuldeepfor i = 1:length(files)
file = fullfile(‘c:sar’, files(i).name);
disp(file);
% Load and preprocess the data
source = loadProduct(file); % Define or replace this function with actual data loading
it gives following errors
>> SAR_preprocessing
c:sarS1A_IW_GRDH_1SDV_20240823T005527_20240823T005552_055333_06BF4D_21CD.SAFE.zip
Error in SAR_preprocessing>main (line 44)
source = loadProduct(file); % Define or replace this function with actual data loading
Unrecognized function or variable ‘loadProduct’.
Please suggest me how to load zip file for further processing.
Kuldeep for i = 1:length(files)
file = fullfile(‘c:sar’, files(i).name);
disp(file);
% Load and preprocess the data
source = loadProduct(file); % Define or replace this function with actual data loading
it gives following errors
>> SAR_preprocessing
c:sarS1A_IW_GRDH_1SDV_20240823T005527_20240823T005552_055333_06BF4D_21CD.SAFE.zip
Error in SAR_preprocessing>main (line 44)
source = loadProduct(file); % Define or replace this function with actual data loading
Unrecognized function or variable ‘loadProduct’.
Please suggest me how to load zip file for further processing.
Kuldeep how do i load zip file in matlab code? MATLAB Answers — New Questions
plot limit problem for x sides
the code show to me my plot just for x=12 i need it to work for x=0
i did the xlim and the ylim but i havn’t no think !
semilogy(vec_SNR_dB,var_ber, ‘c’, ‘MarkerSize’, 3 );
ylim( [ 1e-6, 100 ] ); xlim( [ 0, 20 ] );
grid on;
hold on ;
can some one help me plz !the code show to me my plot just for x=12 i need it to work for x=0
i did the xlim and the ylim but i havn’t no think !
semilogy(vec_SNR_dB,var_ber, ‘c’, ‘MarkerSize’, 3 );
ylim( [ 1e-6, 100 ] ); xlim( [ 0, 20 ] );
grid on;
hold on ;
can some one help me plz ! the code show to me my plot just for x=12 i need it to work for x=0
i did the xlim and the ylim but i havn’t no think !
semilogy(vec_SNR_dB,var_ber, ‘c’, ‘MarkerSize’, 3 );
ylim( [ 1e-6, 100 ] ); xlim( [ 0, 20 ] );
grid on;
hold on ;
can some one help me plz ! plot, xlim, error MATLAB Answers — New Questions
I’m trying to solve jeffry hamel equation using RK4 but it’s not giving output as expected.
%%%% Jeffry-Hamel equation stability analysis %%%%
%%% ode:(U”’ +2sUU’ = 0) such that U’ = g, g’ = h, h’ = -2*s*U*g %%%
%%% where s = S/a and a = slope of the wall %%%
%%% BC: U =1,g =0 at y =0 && U = 0, g= 10 (Kn = 0.1) at y = 1 %%%
%%% Find h(0) such that g(1) = 10 %%%
%% Range of Variable %%
y_cl = 0;
y_chw = 1;
Re = 0.68e5;
S = 6;
%% Boundary conditions %%
U0 = 1;
U1 = 0;
g0 = 0;
g1 = 10;
h0 = [0.1 0.3];
%% Improved step size and error tolerance %%
d_y = 0.001; % Reduce step size for better accuracy
N = (y_chw -y_cl)/d_y;
err = 1;
max_iter = 6e5; % Limit the maximum number of iterations
iter_count = 0;
%% initializing solution %%
y = y_cl : d_y : y_chw; % y coordinate for plot function
while err > 1e-15 && iter_count < max_iter
iter_count = iter_count + 1;
for j = 1:2
F = zeros(N+1, 3); % Initialize solution matrix
F(1, 🙂 = [U0 g0 h0(j)];
% Runge-Kutta 4th order method
for i = 1:N
k1 = d_y * [F(i, 2) F(i, 3) -(F(i, 1) * F(i, 2)) * 2 * S];
k2 = d_y * [F(i, 2) + k1(2)/2 F(i, 3) + k1(3)/2 -( (F(i, 1) + k1(1)/2) * (F(i, 2) + k1(2)/2) ) * 2 * S];
k3 = d_y * [F(i, 2) + k2(2)/2 F(i, 3) + k2(3)/2 -( (F(i, 1) + k2(1)/2) * (F(i, 2) + k2(2)/2) ) * 2 * S];
k4 = d_y * [F(i, 2) + k3(2) F(i, 3) + k3(3) -( (F(i, 1) + k3(1)) * (F(i, 2) + k3(2)) ) * 2 * S];
F(i+1, 🙂 = F(i, 🙂 + (1/6) * (k1 + 2*k2 + 2*k3 + k4);
end
g_1(j) = F(end, 2); % Store g(1) for each trial
end
% Compute error and update h0
[err, index] = max(abs(g1 – g_1));
P = diff(g_1);
if P ~= 0
h0_new = h0(1) + (diff(h0) / diff(g_1)) * (g1 – g_1(1));
h0(index) = h0_new;
end
end
% Final check on iteration count
if iter_count >= max_iter
warning(‘Max iterations reached. Convergence may not be achieved.’);
end
%% plotting
f1=figure;
f1.Units = ‘normalized’;
f1.Position = [0.1 0.1 0.8 0.6];
plot(F,y’,’LineWidth’,1);
xlim([0 1]);
ylim([0 1]);
axis square
yticks(0:0.2:1);
yticklabels({‘0′,’0.2′,’0.4′,’0.6′,’0.8′,’1’});
xticks(0:0.2:1);
xticklabels({‘0′,’0.2′,’0.4′,’0.6′,’0.8′,’1’});
grid on
title(‘Jeffry Hamel solution’);
xlabel(‘y’);
legend(‘U’,’U"’,’U"”’);
I’m also inserting a plot the I want to see:
please help me in getting this resolved.
Thanks in advance.%%%% Jeffry-Hamel equation stability analysis %%%%
%%% ode:(U”’ +2sUU’ = 0) such that U’ = g, g’ = h, h’ = -2*s*U*g %%%
%%% where s = S/a and a = slope of the wall %%%
%%% BC: U =1,g =0 at y =0 && U = 0, g= 10 (Kn = 0.1) at y = 1 %%%
%%% Find h(0) such that g(1) = 10 %%%
%% Range of Variable %%
y_cl = 0;
y_chw = 1;
Re = 0.68e5;
S = 6;
%% Boundary conditions %%
U0 = 1;
U1 = 0;
g0 = 0;
g1 = 10;
h0 = [0.1 0.3];
%% Improved step size and error tolerance %%
d_y = 0.001; % Reduce step size for better accuracy
N = (y_chw -y_cl)/d_y;
err = 1;
max_iter = 6e5; % Limit the maximum number of iterations
iter_count = 0;
%% initializing solution %%
y = y_cl : d_y : y_chw; % y coordinate for plot function
while err > 1e-15 && iter_count < max_iter
iter_count = iter_count + 1;
for j = 1:2
F = zeros(N+1, 3); % Initialize solution matrix
F(1, 🙂 = [U0 g0 h0(j)];
% Runge-Kutta 4th order method
for i = 1:N
k1 = d_y * [F(i, 2) F(i, 3) -(F(i, 1) * F(i, 2)) * 2 * S];
k2 = d_y * [F(i, 2) + k1(2)/2 F(i, 3) + k1(3)/2 -( (F(i, 1) + k1(1)/2) * (F(i, 2) + k1(2)/2) ) * 2 * S];
k3 = d_y * [F(i, 2) + k2(2)/2 F(i, 3) + k2(3)/2 -( (F(i, 1) + k2(1)/2) * (F(i, 2) + k2(2)/2) ) * 2 * S];
k4 = d_y * [F(i, 2) + k3(2) F(i, 3) + k3(3) -( (F(i, 1) + k3(1)) * (F(i, 2) + k3(2)) ) * 2 * S];
F(i+1, 🙂 = F(i, 🙂 + (1/6) * (k1 + 2*k2 + 2*k3 + k4);
end
g_1(j) = F(end, 2); % Store g(1) for each trial
end
% Compute error and update h0
[err, index] = max(abs(g1 – g_1));
P = diff(g_1);
if P ~= 0
h0_new = h0(1) + (diff(h0) / diff(g_1)) * (g1 – g_1(1));
h0(index) = h0_new;
end
end
% Final check on iteration count
if iter_count >= max_iter
warning(‘Max iterations reached. Convergence may not be achieved.’);
end
%% plotting
f1=figure;
f1.Units = ‘normalized’;
f1.Position = [0.1 0.1 0.8 0.6];
plot(F,y’,’LineWidth’,1);
xlim([0 1]);
ylim([0 1]);
axis square
yticks(0:0.2:1);
yticklabels({‘0′,’0.2′,’0.4′,’0.6′,’0.8′,’1’});
xticks(0:0.2:1);
xticklabels({‘0′,’0.2′,’0.4′,’0.6′,’0.8′,’1’});
grid on
title(‘Jeffry Hamel solution’);
xlabel(‘y’);
legend(‘U’,’U"’,’U"”’);
I’m also inserting a plot the I want to see:
please help me in getting this resolved.
Thanks in advance. %%%% Jeffry-Hamel equation stability analysis %%%%
%%% ode:(U”’ +2sUU’ = 0) such that U’ = g, g’ = h, h’ = -2*s*U*g %%%
%%% where s = S/a and a = slope of the wall %%%
%%% BC: U =1,g =0 at y =0 && U = 0, g= 10 (Kn = 0.1) at y = 1 %%%
%%% Find h(0) such that g(1) = 10 %%%
%% Range of Variable %%
y_cl = 0;
y_chw = 1;
Re = 0.68e5;
S = 6;
%% Boundary conditions %%
U0 = 1;
U1 = 0;
g0 = 0;
g1 = 10;
h0 = [0.1 0.3];
%% Improved step size and error tolerance %%
d_y = 0.001; % Reduce step size for better accuracy
N = (y_chw -y_cl)/d_y;
err = 1;
max_iter = 6e5; % Limit the maximum number of iterations
iter_count = 0;
%% initializing solution %%
y = y_cl : d_y : y_chw; % y coordinate for plot function
while err > 1e-15 && iter_count < max_iter
iter_count = iter_count + 1;
for j = 1:2
F = zeros(N+1, 3); % Initialize solution matrix
F(1, 🙂 = [U0 g0 h0(j)];
% Runge-Kutta 4th order method
for i = 1:N
k1 = d_y * [F(i, 2) F(i, 3) -(F(i, 1) * F(i, 2)) * 2 * S];
k2 = d_y * [F(i, 2) + k1(2)/2 F(i, 3) + k1(3)/2 -( (F(i, 1) + k1(1)/2) * (F(i, 2) + k1(2)/2) ) * 2 * S];
k3 = d_y * [F(i, 2) + k2(2)/2 F(i, 3) + k2(3)/2 -( (F(i, 1) + k2(1)/2) * (F(i, 2) + k2(2)/2) ) * 2 * S];
k4 = d_y * [F(i, 2) + k3(2) F(i, 3) + k3(3) -( (F(i, 1) + k3(1)) * (F(i, 2) + k3(2)) ) * 2 * S];
F(i+1, 🙂 = F(i, 🙂 + (1/6) * (k1 + 2*k2 + 2*k3 + k4);
end
g_1(j) = F(end, 2); % Store g(1) for each trial
end
% Compute error and update h0
[err, index] = max(abs(g1 – g_1));
P = diff(g_1);
if P ~= 0
h0_new = h0(1) + (diff(h0) / diff(g_1)) * (g1 – g_1(1));
h0(index) = h0_new;
end
end
% Final check on iteration count
if iter_count >= max_iter
warning(‘Max iterations reached. Convergence may not be achieved.’);
end
%% plotting
f1=figure;
f1.Units = ‘normalized’;
f1.Position = [0.1 0.1 0.8 0.6];
plot(F,y’,’LineWidth’,1);
xlim([0 1]);
ylim([0 1]);
axis square
yticks(0:0.2:1);
yticklabels({‘0′,’0.2′,’0.4′,’0.6′,’0.8′,’1’});
xticks(0:0.2:1);
xticklabels({‘0′,’0.2′,’0.4′,’0.6′,’0.8′,’1’});
grid on
title(‘Jeffry Hamel solution’);
xlabel(‘y’);
legend(‘U’,’U"’,’U"”’);
I’m also inserting a plot the I want to see:
please help me in getting this resolved.
Thanks in advance. rk4, matlab, channelflow MATLAB Answers — New Questions
Encoding the image using Huffman transform and converting to non-overlapping blocks
Hi, I encoded an image with huffman transform and converted the image into a contiguous bit string. I want to convert this bit string into 4×4 blocks. Can anyone guide me?Hi, I encoded an image with huffman transform and converted the image into a contiguous bit string. I want to convert this bit string into 4×4 blocks. Can anyone guide me? Hi, I encoded an image with huffman transform and converted the image into a contiguous bit string. I want to convert this bit string into 4×4 blocks. Can anyone guide me? huffman, image processing, binary MATLAB Answers — New Questions
Graphics Incompatibilities in Control System Toolbox between R2024a and R2024b
A1 = 1; wp1 = 10;
A2 = -2; wp2 = 20;
s = tf(‘s’);
H1 = A1 / (1 + s/wp1); H2 = A2 / (1 + s/wp2);
H = H1 + H2;
figure;
bp = bodeplot(H, H1, H2);
hLines = findobj(gcf, Type=’line’);
set(hLines, LineWidth=2); % not working in R2024b?
set(hLines(6), LineWidth=6, DisplayName=’H2′); % not working in R2024b?
set(hLines(3), LineWidth=6, DisplayName=’H2′); % not working in R2024b?
set(findall(gcf, ‘Type’, ‘axes’), LineWidth=1.5, Box="off", fontsize=12); % not working in R2024b?
% Any correct/equivalent/recommended practice in R2024b?
figure;
pzmap(H, H1, H2);
set(gca, YTick=[], Box="off", LineWidth=1.5, XAxisLocation=’origin’, YAxisLocation=’origin’);
% get an R2024b Error using controllib.chart.PZPlot/set Unrecognized property YTick for class PZPlot.
% Any correct/equivalent/recommended practice in R2024b?
R2024a:
R2024b:
The "Version History" of "BodePlot" and "PZPlot" does point out changes in "gca", but for the "Chart Object" mentioned in it, I Googled it and couldn’t find the relevant documentation, so I don’t know how to get axes from Chart Object. Since the R2024b version is too new, I don’t know where to find the information.A1 = 1; wp1 = 10;
A2 = -2; wp2 = 20;
s = tf(‘s’);
H1 = A1 / (1 + s/wp1); H2 = A2 / (1 + s/wp2);
H = H1 + H2;
figure;
bp = bodeplot(H, H1, H2);
hLines = findobj(gcf, Type=’line’);
set(hLines, LineWidth=2); % not working in R2024b?
set(hLines(6), LineWidth=6, DisplayName=’H2′); % not working in R2024b?
set(hLines(3), LineWidth=6, DisplayName=’H2′); % not working in R2024b?
set(findall(gcf, ‘Type’, ‘axes’), LineWidth=1.5, Box="off", fontsize=12); % not working in R2024b?
% Any correct/equivalent/recommended practice in R2024b?
figure;
pzmap(H, H1, H2);
set(gca, YTick=[], Box="off", LineWidth=1.5, XAxisLocation=’origin’, YAxisLocation=’origin’);
% get an R2024b Error using controllib.chart.PZPlot/set Unrecognized property YTick for class PZPlot.
% Any correct/equivalent/recommended practice in R2024b?
R2024a:
R2024b:
The "Version History" of "BodePlot" and "PZPlot" does point out changes in "gca", but for the "Chart Object" mentioned in it, I Googled it and couldn’t find the relevant documentation, so I don’t know how to get axes from Chart Object. Since the R2024b version is too new, I don’t know where to find the information. A1 = 1; wp1 = 10;
A2 = -2; wp2 = 20;
s = tf(‘s’);
H1 = A1 / (1 + s/wp1); H2 = A2 / (1 + s/wp2);
H = H1 + H2;
figure;
bp = bodeplot(H, H1, H2);
hLines = findobj(gcf, Type=’line’);
set(hLines, LineWidth=2); % not working in R2024b?
set(hLines(6), LineWidth=6, DisplayName=’H2′); % not working in R2024b?
set(hLines(3), LineWidth=6, DisplayName=’H2′); % not working in R2024b?
set(findall(gcf, ‘Type’, ‘axes’), LineWidth=1.5, Box="off", fontsize=12); % not working in R2024b?
% Any correct/equivalent/recommended practice in R2024b?
figure;
pzmap(H, H1, H2);
set(gca, YTick=[], Box="off", LineWidth=1.5, XAxisLocation=’origin’, YAxisLocation=’origin’);
% get an R2024b Error using controllib.chart.PZPlot/set Unrecognized property YTick for class PZPlot.
% Any correct/equivalent/recommended practice in R2024b?
R2024a:
R2024b:
The "Version History" of "BodePlot" and "PZPlot" does point out changes in "gca", but for the "Chart Object" mentioned in it, I Googled it and couldn’t find the relevant documentation, so I don’t know how to get axes from Chart Object. Since the R2024b version is too new, I don’t know where to find the information. graphics, figure, axis, handles MATLAB Answers — New Questions
Why does the signal become thicker after noise reduction and the dots on both sides diverge?
I want to apply a voice noise reduction program similar to the one below to my own 1D signal, but I found that after noise reduction, the 1D signal becomes thicker and the points at both ends of the signal become divergent, and I can’t find the cause of this phenomenon and how to fix it. Hope to get your help. Have a great day!
the program is that:
Dereverberate Speech Using Deep Learning Networks – MATLAB & Simulink – MathWorks 中国
my result is as follow:
the red is clean signal, the yellow is signal with noise, and the green is signal after denoisng.I want to apply a voice noise reduction program similar to the one below to my own 1D signal, but I found that after noise reduction, the 1D signal becomes thicker and the points at both ends of the signal become divergent, and I can’t find the cause of this phenomenon and how to fix it. Hope to get your help. Have a great day!
the program is that:
Dereverberate Speech Using Deep Learning Networks – MATLAB & Simulink – MathWorks 中国
my result is as follow:
the red is clean signal, the yellow is signal with noise, and the green is signal after denoisng. I want to apply a voice noise reduction program similar to the one below to my own 1D signal, but I found that after noise reduction, the 1D signal becomes thicker and the points at both ends of the signal become divergent, and I can’t find the cause of this phenomenon and how to fix it. Hope to get your help. Have a great day!
the program is that:
Dereverberate Speech Using Deep Learning Networks – MATLAB & Simulink – MathWorks 中国
my result is as follow:
the red is clean signal, the yellow is signal with noise, and the green is signal after denoisng. neural network, audio, cnn, signal denoise MATLAB Answers — New Questions
How do I solve this Python error message “No module named ‘numpy’ ” in MATLAB Online ?
I tried this block "CustomPythonModelPredict" by Statistics and Machine Learning Toolbox.
See below link.
Predict Responses Using Custom Python Model in Simulink
I opened slexCustomPythonModelPredictExample.slx as this documentation.
I executed PredictResponsesUsingCustomPythonModelExample.mlx but
I got this error.
I looked into MATLAB Answer community and found similar posts but I couldn’t figure out the solution.
Also I did this command
system(‘python -m pip install numpy’)
but
/usr/bin/python: No module named pip
shows up. I’m not sure….
In the case of MATLAB Online, how do you solve this issue?
It’d be nice if you could give me any advice.
Here is the result I did pyversion command.
>>pyversion
version: ‘3.10’
executable: ‘/usr/bin/python3’
library: ‘libpython3.10.so.1.0’
home: ‘/usr’
isloaded: 1I tried this block "CustomPythonModelPredict" by Statistics and Machine Learning Toolbox.
See below link.
Predict Responses Using Custom Python Model in Simulink
I opened slexCustomPythonModelPredictExample.slx as this documentation.
I executed PredictResponsesUsingCustomPythonModelExample.mlx but
I got this error.
I looked into MATLAB Answer community and found similar posts but I couldn’t figure out the solution.
Also I did this command
system(‘python -m pip install numpy’)
but
/usr/bin/python: No module named pip
shows up. I’m not sure….
In the case of MATLAB Online, how do you solve this issue?
It’d be nice if you could give me any advice.
Here is the result I did pyversion command.
>>pyversion
version: ‘3.10’
executable: ‘/usr/bin/python3’
library: ‘libpython3.10.so.1.0’
home: ‘/usr’
isloaded: 1 I tried this block "CustomPythonModelPredict" by Statistics and Machine Learning Toolbox.
See below link.
Predict Responses Using Custom Python Model in Simulink
I opened slexCustomPythonModelPredictExample.slx as this documentation.
I executed PredictResponsesUsingCustomPythonModelExample.mlx but
I got this error.
I looked into MATLAB Answer community and found similar posts but I couldn’t figure out the solution.
Also I did this command
system(‘python -m pip install numpy’)
but
/usr/bin/python: No module named pip
shows up. I’m not sure….
In the case of MATLAB Online, how do you solve this issue?
It’d be nice if you could give me any advice.
Here is the result I did pyversion command.
>>pyversion
version: ‘3.10’
executable: ‘/usr/bin/python3’
library: ‘libpython3.10.so.1.0’
home: ‘/usr’
isloaded: 1 python, simulink, machine learning, toolbox MATLAB Answers — New Questions
ROS with Simulink : Exception in thread “ROS Executor Thread”: java.lang.OutOfMemoryError: Direct buffer memory
I use simulink connect with ROS. However, it always report error after a while ( about 2400 seconds)
Exception in thread "ROS Executor Thread": java.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(Bits.java:694)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123)
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)
at org.jboss.netty.channel.socket.nio.SocketSendBufferPool$Preallocation.<init>(SocketSendBufferPool.java:158)
at org.jboss.netty.channel.socket.nio.SocketSendBufferPool.<init>(SocketSendBufferPool.java:40)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.<init>(AbstractNioWorker.java:123)
at org.jboss.netty.channel.socket.nio.NioWorker.<init>(NioWorker.java:44)
at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:34)
at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:26)
at org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool.<init>(AbstractNioWorkerPool.java:58)
at org.jboss.netty.channel.socket.nio.NioWorkerPool.<init>(NioWorkerPool.java:29)
at org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory.<init>(NioClientSocketChannelFactory.java:149)
at org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory.<init>(NioClientSocketChannelFactory.java:114)
at org.ros.internal.transport.tcp.TcpClient.<init>(TcpClient.java:71)
at org.ros.internal.transport.tcp.TcpClientManager.connect(TcpClientManager.java:67)
at org.ros.internal.node.topic.DefaultSubscriber.addPublisher(DefaultSubscriber.java:158)
at org.ros.internal.node.topic.UpdatePublisherRunnable.run(UpdatePublisherRunnable.java:73)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
The simulink model is shown as below ,include one rospublisher(geomeory_msg/Point) and two rossubsribers(geomeory_msg/PointStamped, geomeory_msg/PoseStamped):I use simulink connect with ROS. However, it always report error after a while ( about 2400 seconds)
Exception in thread "ROS Executor Thread": java.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(Bits.java:694)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123)
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)
at org.jboss.netty.channel.socket.nio.SocketSendBufferPool$Preallocation.<init>(SocketSendBufferPool.java:158)
at org.jboss.netty.channel.socket.nio.SocketSendBufferPool.<init>(SocketSendBufferPool.java:40)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.<init>(AbstractNioWorker.java:123)
at org.jboss.netty.channel.socket.nio.NioWorker.<init>(NioWorker.java:44)
at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:34)
at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:26)
at org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool.<init>(AbstractNioWorkerPool.java:58)
at org.jboss.netty.channel.socket.nio.NioWorkerPool.<init>(NioWorkerPool.java:29)
at org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory.<init>(NioClientSocketChannelFactory.java:149)
at org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory.<init>(NioClientSocketChannelFactory.java:114)
at org.ros.internal.transport.tcp.TcpClient.<init>(TcpClient.java:71)
at org.ros.internal.transport.tcp.TcpClientManager.connect(TcpClientManager.java:67)
at org.ros.internal.node.topic.DefaultSubscriber.addPublisher(DefaultSubscriber.java:158)
at org.ros.internal.node.topic.UpdatePublisherRunnable.run(UpdatePublisherRunnable.java:73)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
The simulink model is shown as below ,include one rospublisher(geomeory_msg/Point) and two rossubsribers(geomeory_msg/PointStamped, geomeory_msg/PoseStamped): I use simulink connect with ROS. However, it always report error after a while ( about 2400 seconds)
Exception in thread "ROS Executor Thread": java.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(Bits.java:694)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123)
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)
at org.jboss.netty.channel.socket.nio.SocketSendBufferPool$Preallocation.<init>(SocketSendBufferPool.java:158)
at org.jboss.netty.channel.socket.nio.SocketSendBufferPool.<init>(SocketSendBufferPool.java:40)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.<init>(AbstractNioWorker.java:123)
at org.jboss.netty.channel.socket.nio.NioWorker.<init>(NioWorker.java:44)
at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:34)
at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:26)
at org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool.<init>(AbstractNioWorkerPool.java:58)
at org.jboss.netty.channel.socket.nio.NioWorkerPool.<init>(NioWorkerPool.java:29)
at org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory.<init>(NioClientSocketChannelFactory.java:149)
at org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory.<init>(NioClientSocketChannelFactory.java:114)
at org.ros.internal.transport.tcp.TcpClient.<init>(TcpClient.java:71)
at org.ros.internal.transport.tcp.TcpClientManager.connect(TcpClientManager.java:67)
at org.ros.internal.node.topic.DefaultSubscriber.addPublisher(DefaultSubscriber.java:158)
at org.ros.internal.node.topic.UpdatePublisherRunnable.run(UpdatePublisherRunnable.java:73)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
The simulink model is shown as below ,include one rospublisher(geomeory_msg/Point) and two rossubsribers(geomeory_msg/PointStamped, geomeory_msg/PoseStamped): ros, simunlink, direct buffer memory MATLAB Answers — New Questions