Category: Matlab
Category Archives: Matlab
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
how to calculate magnitude and phase angle of a complex number
for example -7+13i
how do i calculate and display the magnitude and phase angle of thisfor example -7+13i
how do i calculate and display the magnitude and phase angle of this for example -7+13i
how do i calculate and display the magnitude and phase angle of this complex, number, phase angle, magnitude MATLAB Answers — New Questions
reagrding implementation of meta learning algorithm selection
Hello,
could someone answer?
Can we apply meta learning algorithm selection(a model with can select a better image processing technique for a given image) in MATLAB.
Is it possible?Hello,
could someone answer?
Can we apply meta learning algorithm selection(a model with can select a better image processing technique for a given image) in MATLAB.
Is it possible? Hello,
could someone answer?
Can we apply meta learning algorithm selection(a model with can select a better image processing technique for a given image) in MATLAB.
Is it possible? meta learning, image processing MATLAB Answers — New Questions
Error in index returned by max() in the second dimension in obscure case
Attaced is AAA.mat which contains the matrix that generates the issue, as well as a code that reproduces the problem.
Following, copied from code, shows what the issue is, essentially, if I do max in the first dimension of permute(AAA,[2,1,3,4]) then everything works fine. But if I do max in the second dimension of AAA —which should give exact same answer— then the max-values are reported correctly but the max-indexes are incorrect.
%% The problematic example
load AAA.mat
[vv1,ii1]=max(AAA,[],2);
[vv2,ii2]=max(permute(AAA,[2,1,3,4]),[],1);
squeeze(vv1)-squeeze(vv2) % all zeros as expected
squeeze(ii1)-squeeze(ii2) % many non-zeros, which should not happen
% Note: vv1 is correct, but ii1 is incorrect
% E.g., vv1(1,1,1,2)=-2.6733
% Which is correct, and the same as vv2(1,1,1,2)=-2.6733
% By comparison, ii1(1,1,1,2)=3081
% But the correct answer is ii2(1,1,1,2)=1
% We can see this because AAA(1,3081,1,2)=-5.1175, which is not vv1
% By comparison, AAA(1,1,1,2)=-2.6733, which is exactly what we expect it to be
% Unless I am missing something, [vv1,ii1]=max(AAA,[],2); is returning the incorrect index for the max.
% Note: (:,:,1,1) gets the indexes correct, but the indexes corresponding to most other 3rd and 4th
% dimension points, like (:,:,1,5) and (:,:,5,1) are wrong.
I don’t know what about AAA causes this error to occur. The "max2derror.m" tries a bunch of things I thought of but they all work correctly.
Pretty sure I am getting this right 😐
I ran this in R2023b.Attaced is AAA.mat which contains the matrix that generates the issue, as well as a code that reproduces the problem.
Following, copied from code, shows what the issue is, essentially, if I do max in the first dimension of permute(AAA,[2,1,3,4]) then everything works fine. But if I do max in the second dimension of AAA —which should give exact same answer— then the max-values are reported correctly but the max-indexes are incorrect.
%% The problematic example
load AAA.mat
[vv1,ii1]=max(AAA,[],2);
[vv2,ii2]=max(permute(AAA,[2,1,3,4]),[],1);
squeeze(vv1)-squeeze(vv2) % all zeros as expected
squeeze(ii1)-squeeze(ii2) % many non-zeros, which should not happen
% Note: vv1 is correct, but ii1 is incorrect
% E.g., vv1(1,1,1,2)=-2.6733
% Which is correct, and the same as vv2(1,1,1,2)=-2.6733
% By comparison, ii1(1,1,1,2)=3081
% But the correct answer is ii2(1,1,1,2)=1
% We can see this because AAA(1,3081,1,2)=-5.1175, which is not vv1
% By comparison, AAA(1,1,1,2)=-2.6733, which is exactly what we expect it to be
% Unless I am missing something, [vv1,ii1]=max(AAA,[],2); is returning the incorrect index for the max.
% Note: (:,:,1,1) gets the indexes correct, but the indexes corresponding to most other 3rd and 4th
% dimension points, like (:,:,1,5) and (:,:,5,1) are wrong.
I don’t know what about AAA causes this error to occur. The "max2derror.m" tries a bunch of things I thought of but they all work correctly.
Pretty sure I am getting this right 😐
I ran this in R2023b. Attaced is AAA.mat which contains the matrix that generates the issue, as well as a code that reproduces the problem.
Following, copied from code, shows what the issue is, essentially, if I do max in the first dimension of permute(AAA,[2,1,3,4]) then everything works fine. But if I do max in the second dimension of AAA —which should give exact same answer— then the max-values are reported correctly but the max-indexes are incorrect.
%% The problematic example
load AAA.mat
[vv1,ii1]=max(AAA,[],2);
[vv2,ii2]=max(permute(AAA,[2,1,3,4]),[],1);
squeeze(vv1)-squeeze(vv2) % all zeros as expected
squeeze(ii1)-squeeze(ii2) % many non-zeros, which should not happen
% Note: vv1 is correct, but ii1 is incorrect
% E.g., vv1(1,1,1,2)=-2.6733
% Which is correct, and the same as vv2(1,1,1,2)=-2.6733
% By comparison, ii1(1,1,1,2)=3081
% But the correct answer is ii2(1,1,1,2)=1
% We can see this because AAA(1,3081,1,2)=-5.1175, which is not vv1
% By comparison, AAA(1,1,1,2)=-2.6733, which is exactly what we expect it to be
% Unless I am missing something, [vv1,ii1]=max(AAA,[],2); is returning the incorrect index for the max.
% Note: (:,:,1,1) gets the indexes correct, but the indexes corresponding to most other 3rd and 4th
% dimension points, like (:,:,1,5) and (:,:,5,1) are wrong.
I don’t know what about AAA causes this error to occur. The "max2derror.m" tries a bunch of things I thought of but they all work correctly.
Pretty sure I am getting this right 😐
I ran this in R2023b. max MATLAB Answers — New Questions
Print windows in matlab
Hi
I was making an application using GUIDE in matlab, my interface uses uicontrols, tables, and images, I’m trying how to print the whole information in the GUI application, i.e. the whole window but I cannot print it using the _print_ command. Is it possible to print or export as file the active window?Hi
I was making an application using GUIDE in matlab, my interface uses uicontrols, tables, and images, I’m trying how to print the whole information in the GUI application, i.e. the whole window but I cannot print it using the _print_ command. Is it possible to print or export as file the active window? Hi
I was making an application using GUIDE in matlab, my interface uses uicontrols, tables, and images, I’m trying how to print the whole information in the GUI application, i.e. the whole window but I cannot print it using the _print_ command. Is it possible to print or export as file the active window? guide, gui, print MATLAB Answers — New Questions
What does the sim(‘model’,[0 1]) do in the 2011a Matlab syntax
What does the array [0 1] do in the "sim(‘model’,[0 1]) command of an old simulink model, 2011-ish?What does the array [0 1] do in the "sim(‘model’,[0 1]) command of an old simulink model, 2011-ish? What does the array [0 1] do in the "sim(‘model’,[0 1]) command of an old simulink model, 2011-ish? array input to sim function MATLAB Answers — New Questions
3D radiation pattern / array factor of planar array in cylindrical coordinates
Dear MatLab Central Community,
I would like to plot the 3D array factor of a planar (2D) antenna array in cylindrical coordinates.
I have calculated the array factor in spherical coordinates AF(theta, phi) and I can easily plot it in spherical coordinates (using
[x,y,z] = sph2cart(THETA,PHI,R)
for coordinate conversion and then "surf(x,y,z)" or "mesh(x,y,z)" for 3D plotting), but I do not know how to do that in cylindrical coordinates.
In other words, I want the domain of the 2D function on the xy plane to be a grid in RHO, THETA and for each point plot the Z = AF value.
I tried to use other coordinate transformations but I did not manage to do that.
Thank you very much for any help.Dear MatLab Central Community,
I would like to plot the 3D array factor of a planar (2D) antenna array in cylindrical coordinates.
I have calculated the array factor in spherical coordinates AF(theta, phi) and I can easily plot it in spherical coordinates (using
[x,y,z] = sph2cart(THETA,PHI,R)
for coordinate conversion and then "surf(x,y,z)" or "mesh(x,y,z)" for 3D plotting), but I do not know how to do that in cylindrical coordinates.
In other words, I want the domain of the 2D function on the xy plane to be a grid in RHO, THETA and for each point plot the Z = AF value.
I tried to use other coordinate transformations but I did not manage to do that.
Thank you very much for any help. Dear MatLab Central Community,
I would like to plot the 3D array factor of a planar (2D) antenna array in cylindrical coordinates.
I have calculated the array factor in spherical coordinates AF(theta, phi) and I can easily plot it in spherical coordinates (using
[x,y,z] = sph2cart(THETA,PHI,R)
for coordinate conversion and then "surf(x,y,z)" or "mesh(x,y,z)" for 3D plotting), but I do not know how to do that in cylindrical coordinates.
In other words, I want the domain of the 2D function on the xy plane to be a grid in RHO, THETA and for each point plot the Z = AF value.
I tried to use other coordinate transformations but I did not manage to do that.
Thank you very much for any help. radiation pattern, 3d plots, array factor, cylindrical coordinates, cylindrical, antenna array, antenna pattern MATLAB Answers — New Questions
How can I plot the candle line into two figures with one time series object?
Hello everyone,
I am now doing a project about the stock .And now I need to plot a candle line,
I plotted it successesfully,However ,because I have about 300 days to plot into one figure,It is too small to regonize the details.I am know wondering if I can plot two figures with successive time,
ex:the time of first figure is from 01/01 ~05/03 ,and the other one is from 05/03~07/07
but I have no idea how to do it? any idea?
My candle code is simple :candle(DATA(:,2),DATA(:,3),DATA(:,4),DATA(:,1),’b’)Hello everyone,
I am now doing a project about the stock .And now I need to plot a candle line,
I plotted it successesfully,However ,because I have about 300 days to plot into one figure,It is too small to regonize the details.I am know wondering if I can plot two figures with successive time,
ex:the time of first figure is from 01/01 ~05/03 ,and the other one is from 05/03~07/07
but I have no idea how to do it? any idea?
My candle code is simple :candle(DATA(:,2),DATA(:,3),DATA(:,4),DATA(:,1),’b’) Hello everyone,
I am now doing a project about the stock .And now I need to plot a candle line,
I plotted it successesfully,However ,because I have about 300 days to plot into one figure,It is too small to regonize the details.I am know wondering if I can plot two figures with successive time,
ex:the time of first figure is from 01/01 ~05/03 ,and the other one is from 05/03~07/07
but I have no idea how to do it? any idea?
My candle code is simple :candle(DATA(:,2),DATA(:,3),DATA(:,4),DATA(:,1),’b’) plot, financial, graph MATLAB Answers — New Questions
Problem with the Transformer model in matlab simulink
When I run the simulation without the transformer block, everything works fine. However, when I add the transformer to the network, the waves become rectangular, and I receive the following error message:
"Warning: Could not evaluate MaskDisplay commands of block IEEE34bus_v2019b_Discrete_ZIPload/Three-Phase Transformer (Two Windings)1′: Unable to resolve the name ST.satx."
The model involves connecting the transformer to a three-phase load with a constant current of 150 kW and 75 kVAR. How can I resolve this issue?When I run the simulation without the transformer block, everything works fine. However, when I add the transformer to the network, the waves become rectangular, and I receive the following error message:
"Warning: Could not evaluate MaskDisplay commands of block IEEE34bus_v2019b_Discrete_ZIPload/Three-Phase Transformer (Two Windings)1′: Unable to resolve the name ST.satx."
The model involves connecting the transformer to a three-phase load with a constant current of 150 kW and 75 kVAR. How can I resolve this issue? When I run the simulation without the transformer block, everything works fine. However, when I add the transformer to the network, the waves become rectangular, and I receive the following error message:
"Warning: Could not evaluate MaskDisplay commands of block IEEE34bus_v2019b_Discrete_ZIPload/Three-Phase Transformer (Two Windings)1′: Unable to resolve the name ST.satx."
The model involves connecting the transformer to a three-phase load with a constant current of 150 kW and 75 kVAR. How can I resolve this issue? simulation, transformer, error, waveform, ieee34bu MATLAB Answers — New Questions