Category: Matlab
Category Archives: Matlab
How should I handle streaming inputs and outputs for my Simulink Compiler model (TCP/UDP, visualization, disp, S-function, C Caller, etc.)?
I have a model that I plan on deploying with Simulink Compiler. I would like to stream the inputs and outputs to the model, for example:Stream inputs/outputs with TCP/UDPPublish subscribe with ROS OPC client-server communicationRead from or write to a file or databaseStream to a live output visualization
I tried putting the input and output handling inside the model itself, with specific I/O blocks however I ran into problems with blocks not being supported for Rapid Accelerator mode. What is the recommended method to do this?I have a model that I plan on deploying with Simulink Compiler. I would like to stream the inputs and outputs to the model, for example:Stream inputs/outputs with TCP/UDPPublish subscribe with ROS OPC client-server communicationRead from or write to a file or databaseStream to a live output visualization
I tried putting the input and output handling inside the model itself, with specific I/O blocks however I ran into problems with blocks not being supported for Rapid Accelerator mode. What is the recommended method to do this? I have a model that I plan on deploying with Simulink Compiler. I would like to stream the inputs and outputs to the model, for example:Stream inputs/outputs with TCP/UDPPublish subscribe with ROS OPC client-server communicationRead from or write to a file or databaseStream to a live output visualization
I tried putting the input and output handling inside the model itself, with specific I/O blocks however I ran into problems with blocks not being supported for Rapid Accelerator mode. What is the recommended method to do this? simulinkcompiler, deployment, simulink, compiler, io MATLAB Answers — New Questions
Unable to create ROS2 node
I am trying to create a ROS2 node on Windows 11, MATLAB R2025b.
While either trying to create a node, or even testing with "ros2 node list", I receive an error:
>> node = ros2node("matlab_node");
Error using ros2node/createNode (line 552)
Error creating the ROS 2 node matlab_node.
Error in
ros2node (line 166)
createNode(obj, parser.Results.name, parser.Results.id);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Caused by:
Error using
ros.internal.Node/create
Server failed to start. Details: Transport stopped.
This was working hours ago…
reinstalling ROS toolbox and even MATLAB did not change outcome.
Thanks!I am trying to create a ROS2 node on Windows 11, MATLAB R2025b.
While either trying to create a node, or even testing with "ros2 node list", I receive an error:
>> node = ros2node("matlab_node");
Error using ros2node/createNode (line 552)
Error creating the ROS 2 node matlab_node.
Error in
ros2node (line 166)
createNode(obj, parser.Results.name, parser.Results.id);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Caused by:
Error using
ros.internal.Node/create
Server failed to start. Details: Transport stopped.
This was working hours ago…
reinstalling ROS toolbox and even MATLAB did not change outcome.
Thanks! I am trying to create a ROS2 node on Windows 11, MATLAB R2025b.
While either trying to create a node, or even testing with "ros2 node list", I receive an error:
>> node = ros2node("matlab_node");
Error using ros2node/createNode (line 552)
Error creating the ROS 2 node matlab_node.
Error in
ros2node (line 166)
createNode(obj, parser.Results.name, parser.Results.id);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Caused by:
Error using
ros.internal.Node/create
Server failed to start. Details: Transport stopped.
This was working hours ago…
reinstalling ROS toolbox and even MATLAB did not change outcome.
Thanks! ros2 node list, ros2node MATLAB Answers — New Questions
Deep Learning HDL Workflow “Data size mismatch” after deployment – Possible device tree / AXI DMA configuration issue (ZCU111)
Hello,
I am working with Deep Learning HDL Toolbox on a custom reference design
with the Xilinx ZCU111 RFSoC board. I am able to successfully compile the network,
but I am encountering a deployment error.
Setup: – Board: ZCU111 RFSoC – Interface: PS GEM Ethernet – Reference design:
Custom (based on AXI-Stream DDR Memory Access : 3-AXIM) – Tool versions:
Vivado 2024.1, MATLAB (Deep Learning HDL Toolbox)
Workflow: I compile and deploy the network using: 1. compile(hW) 2.
deploy(hW) 3. predict(…)
Problem: The FPGA is programmed successfully, and the system reboots
correctly: – SSH connection is restored – Ping works
However, during deployment/predict, I get the following error on MATLAB:
Connection to the bitstream is no longer valid caused by error: Data
size mismatch.
Observations: – Bitstream programming is completed successfully – Device
tree is loaded and system boots – The error happens after deployment,
during runtime communication with FPGA.
Device Tree Concern: I suspect that the issue may be related to my device
tree definitions, especially: – dlprocessor IP – AXI stream to
memory-mapped interface (AXIS2AXIM / AXI2SMM) – DMA nodes (MM2S / S2MM)
Possible causes: Incorrect child node definitions
Questions: 1. What are the common causes of “Data size mismatch” in Deep
Learning HDL deployments? 2. Can this error be caused by incorrect
device tree configuration ? 3. Are there specific DTB
requirements for dlprocessor, AXIS2AXIM, and DMA nodes? 4. How can I
verify MATLAB runtime correctly binds to DTB nodes?
Also is there any official or working example of devicetree_dlhdl.dtb for:
Deep Learning HDL Toolbox
AXI-Stream DDR Memory Access (3-AXIM) reference design
ZCU111 (or similar Zynq UltraScale+ platforms)
I am especially interested in correct definitions for:
dlprocessor
AXIS2AXIM / AXI2SMM
DMA nodes (MM2S / S2MM)
mathworks-specific properties (mwipcore, channels, etc.)
If anyone has a working DTB or can point to an example (documentation, repo, or generated output), it would be very helpful.
Thanks!Hello,
I am working with Deep Learning HDL Toolbox on a custom reference design
with the Xilinx ZCU111 RFSoC board. I am able to successfully compile the network,
but I am encountering a deployment error.
Setup: – Board: ZCU111 RFSoC – Interface: PS GEM Ethernet – Reference design:
Custom (based on AXI-Stream DDR Memory Access : 3-AXIM) – Tool versions:
Vivado 2024.1, MATLAB (Deep Learning HDL Toolbox)
Workflow: I compile and deploy the network using: 1. compile(hW) 2.
deploy(hW) 3. predict(…)
Problem: The FPGA is programmed successfully, and the system reboots
correctly: – SSH connection is restored – Ping works
However, during deployment/predict, I get the following error on MATLAB:
Connection to the bitstream is no longer valid caused by error: Data
size mismatch.
Observations: – Bitstream programming is completed successfully – Device
tree is loaded and system boots – The error happens after deployment,
during runtime communication with FPGA.
Device Tree Concern: I suspect that the issue may be related to my device
tree definitions, especially: – dlprocessor IP – AXI stream to
memory-mapped interface (AXIS2AXIM / AXI2SMM) – DMA nodes (MM2S / S2MM)
Possible causes: Incorrect child node definitions
Questions: 1. What are the common causes of “Data size mismatch” in Deep
Learning HDL deployments? 2. Can this error be caused by incorrect
device tree configuration ? 3. Are there specific DTB
requirements for dlprocessor, AXIS2AXIM, and DMA nodes? 4. How can I
verify MATLAB runtime correctly binds to DTB nodes?
Also is there any official or working example of devicetree_dlhdl.dtb for:
Deep Learning HDL Toolbox
AXI-Stream DDR Memory Access (3-AXIM) reference design
ZCU111 (or similar Zynq UltraScale+ platforms)
I am especially interested in correct definitions for:
dlprocessor
AXIS2AXIM / AXI2SMM
DMA nodes (MM2S / S2MM)
mathworks-specific properties (mwipcore, channels, etc.)
If anyone has a working DTB or can point to an example (documentation, repo, or generated output), it would be very helpful.
Thanks! Hello,
I am working with Deep Learning HDL Toolbox on a custom reference design
with the Xilinx ZCU111 RFSoC board. I am able to successfully compile the network,
but I am encountering a deployment error.
Setup: – Board: ZCU111 RFSoC – Interface: PS GEM Ethernet – Reference design:
Custom (based on AXI-Stream DDR Memory Access : 3-AXIM) – Tool versions:
Vivado 2024.1, MATLAB (Deep Learning HDL Toolbox)
Workflow: I compile and deploy the network using: 1. compile(hW) 2.
deploy(hW) 3. predict(…)
Problem: The FPGA is programmed successfully, and the system reboots
correctly: – SSH connection is restored – Ping works
However, during deployment/predict, I get the following error on MATLAB:
Connection to the bitstream is no longer valid caused by error: Data
size mismatch.
Observations: – Bitstream programming is completed successfully – Device
tree is loaded and system boots – The error happens after deployment,
during runtime communication with FPGA.
Device Tree Concern: I suspect that the issue may be related to my device
tree definitions, especially: – dlprocessor IP – AXI stream to
memory-mapped interface (AXIS2AXIM / AXI2SMM) – DMA nodes (MM2S / S2MM)
Possible causes: Incorrect child node definitions
Questions: 1. What are the common causes of “Data size mismatch” in Deep
Learning HDL deployments? 2. Can this error be caused by incorrect
device tree configuration ? 3. Are there specific DTB
requirements for dlprocessor, AXIS2AXIM, and DMA nodes? 4. How can I
verify MATLAB runtime correctly binds to DTB nodes?
Also is there any official or working example of devicetree_dlhdl.dtb for:
Deep Learning HDL Toolbox
AXI-Stream DDR Memory Access (3-AXIM) reference design
ZCU111 (or similar Zynq UltraScale+ platforms)
I am especially interested in correct definitions for:
dlprocessor
AXIS2AXIM / AXI2SMM
DMA nodes (MM2S / S2MM)
mathworks-specific properties (mwipcore, channels, etc.)
If anyone has a working DTB or can point to an example (documentation, repo, or generated output), it would be very helpful.
Thanks! deep learning, cnn, deep learning hdl toolbox, vivado, zcu111 rfsoc board, fpga MATLAB Answers — New Questions
How to correct the grouping variables in splitapply ?
Hi
Kindly see my attached function. It is a callback function for a switch button
I have already converted both my grouping variables to categorical arrrays, still I am getting the message saying: "A grouping variable must be a vector."
I dont understand what more can be and should be done to the grouping variables.
value = app.Switch.Value;
if strcmpi(value, ‘on’)
weightpercentages = [app.Callingapp.Osmotisk_data.Weight_percent_best_salt_1 app.Callingapp.Osmotisk_data.Weight_percent_best_salt_2];
weightpercentages=categorical(weightpercentages);
Combo=categorical(app.Callingapp.Osmotisk_data.Combinations_of_salts);
[g,id1,id2]=findgroups(Combo, weightpercentages);
hold(app.UIAxes, ‘on’)
splitapply(@(x,y)scatter(app.UIAxes,x,y,’filled’),app.temperature,app.Callingapp.Total_water_activity,g)
legend(app.UIAxes,string(id1) + ", "+string(id2) ,’location’,’northwest’)
xlabel(app.UIAxes,’Temperature’), ylabel(app.UIAxes,’Water activity’)
endHi
Kindly see my attached function. It is a callback function for a switch button
I have already converted both my grouping variables to categorical arrrays, still I am getting the message saying: "A grouping variable must be a vector."
I dont understand what more can be and should be done to the grouping variables.
value = app.Switch.Value;
if strcmpi(value, ‘on’)
weightpercentages = [app.Callingapp.Osmotisk_data.Weight_percent_best_salt_1 app.Callingapp.Osmotisk_data.Weight_percent_best_salt_2];
weightpercentages=categorical(weightpercentages);
Combo=categorical(app.Callingapp.Osmotisk_data.Combinations_of_salts);
[g,id1,id2]=findgroups(Combo, weightpercentages);
hold(app.UIAxes, ‘on’)
splitapply(@(x,y)scatter(app.UIAxes,x,y,’filled’),app.temperature,app.Callingapp.Total_water_activity,g)
legend(app.UIAxes,string(id1) + ", "+string(id2) ,’location’,’northwest’)
xlabel(app.UIAxes,’Temperature’), ylabel(app.UIAxes,’Water activity’)
end Hi
Kindly see my attached function. It is a callback function for a switch button
I have already converted both my grouping variables to categorical arrrays, still I am getting the message saying: "A grouping variable must be a vector."
I dont understand what more can be and should be done to the grouping variables.
value = app.Switch.Value;
if strcmpi(value, ‘on’)
weightpercentages = [app.Callingapp.Osmotisk_data.Weight_percent_best_salt_1 app.Callingapp.Osmotisk_data.Weight_percent_best_salt_2];
weightpercentages=categorical(weightpercentages);
Combo=categorical(app.Callingapp.Osmotisk_data.Combinations_of_salts);
[g,id1,id2]=findgroups(Combo, weightpercentages);
hold(app.UIAxes, ‘on’)
splitapply(@(x,y)scatter(app.UIAxes,x,y,’filled’),app.temperature,app.Callingapp.Total_water_activity,g)
legend(app.UIAxes,string(id1) + ", "+string(id2) ,’location’,’northwest’)
xlabel(app.UIAxes,’Temperature’), ylabel(app.UIAxes,’Water activity’)
end splitapply, matlab, groupingvariables MATLAB Answers — New Questions
Want to know the output format of audioread of .wav file captured by hydrophone
Geospectrum M36-600 with porpoise datalogger was used to capture noise. The code and respective output are given below. I want to know what is the output format of audioread? Is it normalized or volts or Pa?
CODE:
info = audioinfo(‘D:NIOTDSMmatlab codeNoiseMatlab PC4.06.2025 HydrophoneVFDNear Motor20250604154138 199-203s.wav’);
disp(info)
[y,Fs] = audioread(‘D:NIOTDSMmatlab codeNoiseMatlab PC4.06.2025 HydrophoneVFDNear Motor20250604154138 199-203s.wav’); % default: scaled floating-point
[yN,FsN] = audioread(‘D:NIOTDSMmatlab codeNoiseMatlab PC4.06.2025 HydrophoneVFDNear Motor20250604154138 199-203s.wav’,"native"); % native format when available
class(y)
min(y)
max(y)
OUTPUT:
class(yN)NoiseMatlab PC4.06.2025 HydrophoneVFDNear Motor20250604154138 199-203s.wav’
CompressionMethod: ‘Uncompressed’
NumChannels: 1
SampleRate: 32000
TotalSamples: 129024
Duration: 4.0320
Title: []
Comment: []
Artist: []
BitsPerSample: 16
ans = ‘double’
ans = -1.5259e-04
ans = 1.5259e-04
ans = ‘int16’Geospectrum M36-600 with porpoise datalogger was used to capture noise. The code and respective output are given below. I want to know what is the output format of audioread? Is it normalized or volts or Pa?
CODE:
info = audioinfo(‘D:NIOTDSMmatlab codeNoiseMatlab PC4.06.2025 HydrophoneVFDNear Motor20250604154138 199-203s.wav’);
disp(info)
[y,Fs] = audioread(‘D:NIOTDSMmatlab codeNoiseMatlab PC4.06.2025 HydrophoneVFDNear Motor20250604154138 199-203s.wav’); % default: scaled floating-point
[yN,FsN] = audioread(‘D:NIOTDSMmatlab codeNoiseMatlab PC4.06.2025 HydrophoneVFDNear Motor20250604154138 199-203s.wav’,"native"); % native format when available
class(y)
min(y)
max(y)
OUTPUT:
class(yN)NoiseMatlab PC4.06.2025 HydrophoneVFDNear Motor20250604154138 199-203s.wav’
CompressionMethod: ‘Uncompressed’
NumChannels: 1
SampleRate: 32000
TotalSamples: 129024
Duration: 4.0320
Title: []
Comment: []
Artist: []
BitsPerSample: 16
ans = ‘double’
ans = -1.5259e-04
ans = 1.5259e-04
ans = ‘int16’ Geospectrum M36-600 with porpoise datalogger was used to capture noise. The code and respective output are given below. I want to know what is the output format of audioread? Is it normalized or volts or Pa?
CODE:
info = audioinfo(‘D:NIOTDSMmatlab codeNoiseMatlab PC4.06.2025 HydrophoneVFDNear Motor20250604154138 199-203s.wav’);
disp(info)
[y,Fs] = audioread(‘D:NIOTDSMmatlab codeNoiseMatlab PC4.06.2025 HydrophoneVFDNear Motor20250604154138 199-203s.wav’); % default: scaled floating-point
[yN,FsN] = audioread(‘D:NIOTDSMmatlab codeNoiseMatlab PC4.06.2025 HydrophoneVFDNear Motor20250604154138 199-203s.wav’,"native"); % native format when available
class(y)
min(y)
max(y)
OUTPUT:
class(yN)NoiseMatlab PC4.06.2025 HydrophoneVFDNear Motor20250604154138 199-203s.wav’
CompressionMethod: ‘Uncompressed’
NumChannels: 1
SampleRate: 32000
TotalSamples: 129024
Duration: 4.0320
Title: []
Comment: []
Artist: []
BitsPerSample: 16
ans = ‘double’
ans = -1.5259e-04
ans = 1.5259e-04
ans = ‘int16’ audioread, hydrophone, porpoisedatalogger MATLAB Answers — New Questions
Bidirectional DC-DC Converter crashes during mode transition (charging to discharging) due to infinite di/dt
Hi everyone,
I am building a microgrid model in Simulink and I am hitting a brick wall during a specific weather transient event.
The Setup:
I have a 48V battery connected to a 200V DC Bus via a Bidirectional DC-DC Converter.
The DC Bus has a constant 1500W load, supported by Wind and Solar sources.
The converter uses cascaded PI controllers (Outer Voltage Loop, Inner Current Loop) to generate a PWM duty cycle via a Relational Operator and Triangle Wave (10 kHz).
The powergui is set to Discrete with a sample time of 1e-5.
The Problem:For the first 14.9 seconds, the Wind and Solar easily supply the load, and the excess power is pushed into the battery. The battery is charging (current is flowing in reverse).
At exactly t = 15.0 seconds, the wind and solar drop. The battery must instantly reverse current flow to discharge and support the 1500W load. At this exact millisecond, the simulation aborts. Scopes show a massive, instantaneous current spike as the current tries to reverse direction, causing the math solver to fail.
What I Have Already Tried:
Swapped to modern Discrete PID blocks with Anti-Windup (Clamping) to prevent integrator explosion.
Lowered the PI gains significantly to stop the controller from aggressively overreacting.
Disabled zero-crossing detection on the PID blocks.
Capped the maximum Duty Cycle at 0.85 to prevent infinite voltage commands.
I have attached a screenshot of my control loop and the scope showing the crash at 15.0s. Any advice or guidance on power electronics best practices in Simulink would be greatly appreciated!Hi everyone,
I am building a microgrid model in Simulink and I am hitting a brick wall during a specific weather transient event.
The Setup:
I have a 48V battery connected to a 200V DC Bus via a Bidirectional DC-DC Converter.
The DC Bus has a constant 1500W load, supported by Wind and Solar sources.
The converter uses cascaded PI controllers (Outer Voltage Loop, Inner Current Loop) to generate a PWM duty cycle via a Relational Operator and Triangle Wave (10 kHz).
The powergui is set to Discrete with a sample time of 1e-5.
The Problem:For the first 14.9 seconds, the Wind and Solar easily supply the load, and the excess power is pushed into the battery. The battery is charging (current is flowing in reverse).
At exactly t = 15.0 seconds, the wind and solar drop. The battery must instantly reverse current flow to discharge and support the 1500W load. At this exact millisecond, the simulation aborts. Scopes show a massive, instantaneous current spike as the current tries to reverse direction, causing the math solver to fail.
What I Have Already Tried:
Swapped to modern Discrete PID blocks with Anti-Windup (Clamping) to prevent integrator explosion.
Lowered the PI gains significantly to stop the controller from aggressively overreacting.
Disabled zero-crossing detection on the PID blocks.
Capped the maximum Duty Cycle at 0.85 to prevent infinite voltage commands.
I have attached a screenshot of my control loop and the scope showing the crash at 15.0s. Any advice or guidance on power electronics best practices in Simulink would be greatly appreciated! Hi everyone,
I am building a microgrid model in Simulink and I am hitting a brick wall during a specific weather transient event.
The Setup:
I have a 48V battery connected to a 200V DC Bus via a Bidirectional DC-DC Converter.
The DC Bus has a constant 1500W load, supported by Wind and Solar sources.
The converter uses cascaded PI controllers (Outer Voltage Loop, Inner Current Loop) to generate a PWM duty cycle via a Relational Operator and Triangle Wave (10 kHz).
The powergui is set to Discrete with a sample time of 1e-5.
The Problem:For the first 14.9 seconds, the Wind and Solar easily supply the load, and the excess power is pushed into the battery. The battery is charging (current is flowing in reverse).
At exactly t = 15.0 seconds, the wind and solar drop. The battery must instantly reverse current flow to discharge and support the 1500W load. At this exact millisecond, the simulation aborts. Scopes show a massive, instantaneous current spike as the current tries to reverse direction, causing the math solver to fail.
What I Have Already Tried:
Swapped to modern Discrete PID blocks with Anti-Windup (Clamping) to prevent integrator explosion.
Lowered the PI gains significantly to stop the controller from aggressively overreacting.
Disabled zero-crossing detection on the PID blocks.
Capped the maximum Duty Cycle at 0.85 to prevent infinite voltage commands.
I have attached a screenshot of my control loop and the scope showing the crash at 15.0s. Any advice or guidance on power electronics best practices in Simulink would be greatly appreciated! dc, inverter, crash MATLAB Answers — New Questions
How to add a shared ylabel on the right hand-side of a figure, when combining tiledlayout and yyaxis?
In addition to a shared ylabel on the left hand-side of a figure, I want to put a shared ylabel on the right hand-side of the tiledlayout, when also using yyaxis. How can I achieve this? I have prepared the following MWE:
figure
t = tiledlayout(4,1);
for i = 1:4
nexttile
title("Tile"+i)
yyaxis left
plot(rand(1,10))
yyaxis right
plot(rand(1,10))
end
title(t,"Tiles")
xlabel(t,"x")
ylabel(t,"y left")
% ylabel(t,"y right")
Thanks in advance!
Edit:
My yticklabels on the left as well as on the right hand-side are relatively long, therefore, both shared ylabels need to factor the necessary distance in. The shared ylabel on the left hand-side does this automatically, the one on the right hand-side should do the same. I have updated the MWE (unfortunately, it now acts a bit buggy but it should illustrate the point, nonetheless):
figure
t = tiledlayout(4,1);
longYTickLabels_left = ["negative yticklabel left" "0" "positive yticklabel left" ];%edit: added
longYTickLabels_right = ["negative yticklabel right" "0" "positive yticklabel right"];%edit: added
for i = 1:4
nexttile
title("Tile"+i)
yyaxis left
plot(rand(1,10))
yticklabels(longYTickLabels_left)%edit: added
yyaxis right
plot(rand(1,10))
yticklabels(longYTickLabels_right)%edit: added
end
title(t,"Tiles")
xlabel(t,"x")
ylabel(t,"y left")
% ylabel(t,"y right")In addition to a shared ylabel on the left hand-side of a figure, I want to put a shared ylabel on the right hand-side of the tiledlayout, when also using yyaxis. How can I achieve this? I have prepared the following MWE:
figure
t = tiledlayout(4,1);
for i = 1:4
nexttile
title("Tile"+i)
yyaxis left
plot(rand(1,10))
yyaxis right
plot(rand(1,10))
end
title(t,"Tiles")
xlabel(t,"x")
ylabel(t,"y left")
% ylabel(t,"y right")
Thanks in advance!
Edit:
My yticklabels on the left as well as on the right hand-side are relatively long, therefore, both shared ylabels need to factor the necessary distance in. The shared ylabel on the left hand-side does this automatically, the one on the right hand-side should do the same. I have updated the MWE (unfortunately, it now acts a bit buggy but it should illustrate the point, nonetheless):
figure
t = tiledlayout(4,1);
longYTickLabels_left = ["negative yticklabel left" "0" "positive yticklabel left" ];%edit: added
longYTickLabels_right = ["negative yticklabel right" "0" "positive yticklabel right"];%edit: added
for i = 1:4
nexttile
title("Tile"+i)
yyaxis left
plot(rand(1,10))
yticklabels(longYTickLabels_left)%edit: added
yyaxis right
plot(rand(1,10))
yticklabels(longYTickLabels_right)%edit: added
end
title(t,"Tiles")
xlabel(t,"x")
ylabel(t,"y left")
% ylabel(t,"y right") In addition to a shared ylabel on the left hand-side of a figure, I want to put a shared ylabel on the right hand-side of the tiledlayout, when also using yyaxis. How can I achieve this? I have prepared the following MWE:
figure
t = tiledlayout(4,1);
for i = 1:4
nexttile
title("Tile"+i)
yyaxis left
plot(rand(1,10))
yyaxis right
plot(rand(1,10))
end
title(t,"Tiles")
xlabel(t,"x")
ylabel(t,"y left")
% ylabel(t,"y right")
Thanks in advance!
Edit:
My yticklabels on the left as well as on the right hand-side are relatively long, therefore, both shared ylabels need to factor the necessary distance in. The shared ylabel on the left hand-side does this automatically, the one on the right hand-side should do the same. I have updated the MWE (unfortunately, it now acts a bit buggy but it should illustrate the point, nonetheless):
figure
t = tiledlayout(4,1);
longYTickLabels_left = ["negative yticklabel left" "0" "positive yticklabel left" ];%edit: added
longYTickLabels_right = ["negative yticklabel right" "0" "positive yticklabel right"];%edit: added
for i = 1:4
nexttile
title("Tile"+i)
yyaxis left
plot(rand(1,10))
yticklabels(longYTickLabels_left)%edit: added
yyaxis right
plot(rand(1,10))
yticklabels(longYTickLabels_right)%edit: added
end
title(t,"Tiles")
xlabel(t,"x")
ylabel(t,"y left")
% ylabel(t,"y right") tiledlayout, yyaxis, ylabel, figure MATLAB Answers — New Questions
How can I : Develop equations to define geometric primitives?
I am trying to develop a code that will define geometric primitives using equations. the shapes to be identified are, square, circle, rectangle and triangle. When i run my programme it seems to detect all shapes as rectangle.I am trying to develop a code that will define geometric primitives using equations. the shapes to be identified are, square, circle, rectangle and triangle. When i run my programme it seems to detect all shapes as rectangle. I am trying to develop a code that will define geometric primitives using equations. the shapes to be identified are, square, circle, rectangle and triangle. When i run my programme it seems to detect all shapes as rectangle. image processing MATLAB Answers — New Questions
I am not able to use learn MATLAB in offline
When I open MATLAB R2025b with my Demo license , when I go to home page and Click on ‘Learn MATLAB’ it takes me to browser , and when i try to learn course in browser it is saying it is recommend to use MATLAB software , but i am not finding any way how can i start the course in matlab softwareWhen I open MATLAB R2025b with my Demo license , when I go to home page and Click on ‘Learn MATLAB’ it takes me to browser , and when i try to learn course in browser it is saying it is recommend to use MATLAB software , but i am not finding any way how can i start the course in matlab software When I open MATLAB R2025b with my Demo license , when I go to home page and Click on ‘Learn MATLAB’ it takes me to browser , and when i try to learn course in browser it is saying it is recommend to use MATLAB software , but i am not finding any way how can i start the course in matlab software learn matlab, simulink, onramp MATLAB Answers — New Questions
Matlab App Designer Scatterplot
I want to display scatterplot on my axes but when I push the button to display it It displays an error.
also, any suggestions on plotting waveform and phasor of 8-qam
Thank you for any helpI want to display scatterplot on my axes but when I push the button to display it It displays an error.
also, any suggestions on plotting waveform and phasor of 8-qam
Thank you for any help I want to display scatterplot on my axes but when I push the button to display it It displays an error.
also, any suggestions on plotting waveform and phasor of 8-qam
Thank you for any help scattterplot, uiaxes, appdesigner, axes, ui MATLAB Answers — New Questions
Set MATLAB as default for .m files in Ubuntu without opening an empty editor
According to the previous thread, MATLAB can be made to open .m files by default in Ubuntu by editing the matlab.desktop file (usually in /usr/share/applications) and changing:
Exec=matlab -desktop
to
Exec=matlab -desktop -r "edit %f"
https://uk.mathworks.com/matlabcentral/answers/565784-defautl-to-open-m-files-in-matlab-linux
This has the side effect that opening MATLAB from its icon causes an empty editor window to be open. Can anyone advise how to avoid this? It looks like using X-Ayatana-Desktop-Shortcuts may help, but I cannot figure out how to make just opening the command window the default and opening the editor to happen only if a file is specified.According to the previous thread, MATLAB can be made to open .m files by default in Ubuntu by editing the matlab.desktop file (usually in /usr/share/applications) and changing:
Exec=matlab -desktop
to
Exec=matlab -desktop -r "edit %f"
https://uk.mathworks.com/matlabcentral/answers/565784-defautl-to-open-m-files-in-matlab-linux
This has the side effect that opening MATLAB from its icon causes an empty editor window to be open. Can anyone advise how to avoid this? It looks like using X-Ayatana-Desktop-Shortcuts may help, but I cannot figure out how to make just opening the command window the default and opening the editor to happen only if a file is specified. According to the previous thread, MATLAB can be made to open .m files by default in Ubuntu by editing the matlab.desktop file (usually in /usr/share/applications) and changing:
Exec=matlab -desktop
to
Exec=matlab -desktop -r "edit %f"
https://uk.mathworks.com/matlabcentral/answers/565784-defautl-to-open-m-files-in-matlab-linux
This has the side effect that opening MATLAB from its icon causes an empty editor window to be open. Can anyone advise how to avoid this? It looks like using X-Ayatana-Desktop-Shortcuts may help, but I cannot figure out how to make just opening the command window the default and opening the editor to happen only if a file is specified. linux, ubuntu, x-ayatana-desktop-shortcuts MATLAB Answers — New Questions
Symbolic solve not returning all values
Hello everyone! I am new to MATLAB, and I am trying to use it to solve for some variables in a system of equations (this is for the node-voltage equations of a filter, but that isn’t fully relevant)
syms Va Vi Vhp Vlp Vbp R2 R3 R1 Rf R s C RH RB RL RF Vo
eqn0 = (( (Va-Vi)/R2) + ( (Va-Vbp)/R3) )== 0;
eqn1 = ( ((Va-Vlp)/R1) + ( (Va-Vhp)/Rf) )==0 ;
eqn2 = (-(Vhp/R) -(Vbp*s*C))==0;
eqn3 = (-(Vbp/R) – (Vlp*s*C))==0;
eqn4 = (-Vhp/RH -Vbp/RB -Vlp/RL – Vo/RF==0);
S = solve(eqn1, eqn2, eqn3, eqn0, eqn4)
Va, Vi, Vhp, Vlp, Vbp, and Vo are all "unknowns", while the rest are supposed to be treated as constants. Ideally, I want it to solve for H(s) = (Vo/Vi) .. Or really, I’d prefer to just be able to find out what every term rearranges to (i.e solving for Vbp, Vhp, Vlp, in terms of the other ones).
But when I run "solve", I get as follows.
Va: [2×1 sym]
Vbp: [2×1 sym]
Vhp: [2×1 sym]
Vi: [2×1 sym]
s: [2×1 sym]
Within these solutions are two (? why? is it not linear?.. Im not sure..) different expressions.
% For S.Vbp
ans =
-(Vlp*(RH – (-(RH*(4*RB^2*RF*Vlp + 4*RB^2*RL*Vo – RF*RH*RL*Vlp))/(RF*RL*Vlp))^(1/2)))/(2*RB)
-(Vlp*(RH + (-(RH*(4*RB^2*RF*Vlp + 4*RB^2*RL*Vo – RF*RH*RL*Vlp))/(RF*RL*Vlp))^(1/2)))/(2*RB)
%Besides the fact there’s *two* equations, this is what I want: just a big
%list of rearranged variables. But again: why two equations!
I am new to MATLAB and I do not really have a concept of the nature of linear equations (I haven’t taken linear algebra) besides "you need one for every variable you want to find", so I do not know where this issue may be coming from. Is it because all the other "variables" (constants) are being treated as variables and there aren’t enough equations? I’ve checked my equations with two friends and I am confident there’s nothing wrong with them.
Thanks!Hello everyone! I am new to MATLAB, and I am trying to use it to solve for some variables in a system of equations (this is for the node-voltage equations of a filter, but that isn’t fully relevant)
syms Va Vi Vhp Vlp Vbp R2 R3 R1 Rf R s C RH RB RL RF Vo
eqn0 = (( (Va-Vi)/R2) + ( (Va-Vbp)/R3) )== 0;
eqn1 = ( ((Va-Vlp)/R1) + ( (Va-Vhp)/Rf) )==0 ;
eqn2 = (-(Vhp/R) -(Vbp*s*C))==0;
eqn3 = (-(Vbp/R) – (Vlp*s*C))==0;
eqn4 = (-Vhp/RH -Vbp/RB -Vlp/RL – Vo/RF==0);
S = solve(eqn1, eqn2, eqn3, eqn0, eqn4)
Va, Vi, Vhp, Vlp, Vbp, and Vo are all "unknowns", while the rest are supposed to be treated as constants. Ideally, I want it to solve for H(s) = (Vo/Vi) .. Or really, I’d prefer to just be able to find out what every term rearranges to (i.e solving for Vbp, Vhp, Vlp, in terms of the other ones).
But when I run "solve", I get as follows.
Va: [2×1 sym]
Vbp: [2×1 sym]
Vhp: [2×1 sym]
Vi: [2×1 sym]
s: [2×1 sym]
Within these solutions are two (? why? is it not linear?.. Im not sure..) different expressions.
% For S.Vbp
ans =
-(Vlp*(RH – (-(RH*(4*RB^2*RF*Vlp + 4*RB^2*RL*Vo – RF*RH*RL*Vlp))/(RF*RL*Vlp))^(1/2)))/(2*RB)
-(Vlp*(RH + (-(RH*(4*RB^2*RF*Vlp + 4*RB^2*RL*Vo – RF*RH*RL*Vlp))/(RF*RL*Vlp))^(1/2)))/(2*RB)
%Besides the fact there’s *two* equations, this is what I want: just a big
%list of rearranged variables. But again: why two equations!
I am new to MATLAB and I do not really have a concept of the nature of linear equations (I haven’t taken linear algebra) besides "you need one for every variable you want to find", so I do not know where this issue may be coming from. Is it because all the other "variables" (constants) are being treated as variables and there aren’t enough equations? I’ve checked my equations with two friends and I am confident there’s nothing wrong with them.
Thanks! Hello everyone! I am new to MATLAB, and I am trying to use it to solve for some variables in a system of equations (this is for the node-voltage equations of a filter, but that isn’t fully relevant)
syms Va Vi Vhp Vlp Vbp R2 R3 R1 Rf R s C RH RB RL RF Vo
eqn0 = (( (Va-Vi)/R2) + ( (Va-Vbp)/R3) )== 0;
eqn1 = ( ((Va-Vlp)/R1) + ( (Va-Vhp)/Rf) )==0 ;
eqn2 = (-(Vhp/R) -(Vbp*s*C))==0;
eqn3 = (-(Vbp/R) – (Vlp*s*C))==0;
eqn4 = (-Vhp/RH -Vbp/RB -Vlp/RL – Vo/RF==0);
S = solve(eqn1, eqn2, eqn3, eqn0, eqn4)
Va, Vi, Vhp, Vlp, Vbp, and Vo are all "unknowns", while the rest are supposed to be treated as constants. Ideally, I want it to solve for H(s) = (Vo/Vi) .. Or really, I’d prefer to just be able to find out what every term rearranges to (i.e solving for Vbp, Vhp, Vlp, in terms of the other ones).
But when I run "solve", I get as follows.
Va: [2×1 sym]
Vbp: [2×1 sym]
Vhp: [2×1 sym]
Vi: [2×1 sym]
s: [2×1 sym]
Within these solutions are two (? why? is it not linear?.. Im not sure..) different expressions.
% For S.Vbp
ans =
-(Vlp*(RH – (-(RH*(4*RB^2*RF*Vlp + 4*RB^2*RL*Vo – RF*RH*RL*Vlp))/(RF*RL*Vlp))^(1/2)))/(2*RB)
-(Vlp*(RH + (-(RH*(4*RB^2*RF*Vlp + 4*RB^2*RL*Vo – RF*RH*RL*Vlp))/(RF*RL*Vlp))^(1/2)))/(2*RB)
%Besides the fact there’s *two* equations, this is what I want: just a big
%list of rearranged variables. But again: why two equations!
I am new to MATLAB and I do not really have a concept of the nature of linear equations (I haven’t taken linear algebra) besides "you need one for every variable you want to find", so I do not know where this issue may be coming from. Is it because all the other "variables" (constants) are being treated as variables and there aren’t enough equations? I’ve checked my equations with two friends and I am confident there’s nothing wrong with them.
Thanks! symbolic MATLAB Answers — New Questions
I’d like to run the example that uses the Support Package for Parrot Drones to perform the basic flight operations. What’s the proc
Here is the MATLAB script. The drone is already connected to PC:
p = parrot();
takeoff(p);
pause (2);
land(p);
takeoff(p);
movement_step = 1;
while(movement_step <= 4 && p.BatteryLevel > 10)
moveforward(p, 2);
turn(p, deg2rad(90));
movement_step = movement_step + 1;
end
land(p);
takeoff(p);
move(p, 5, ‘Roll’, deg2rad(4), ‘RotationSpeed’, deg2rad(120));
land(p);
takeoff(p);
move(p, 5, ‘Pitch’, deg2rad(-4), ‘Roll’, deg2rad(4));
land(p);
clear p;Here is the MATLAB script. The drone is already connected to PC:
p = parrot();
takeoff(p);
pause (2);
land(p);
takeoff(p);
movement_step = 1;
while(movement_step <= 4 && p.BatteryLevel > 10)
moveforward(p, 2);
turn(p, deg2rad(90));
movement_step = movement_step + 1;
end
land(p);
takeoff(p);
move(p, 5, ‘Roll’, deg2rad(4), ‘RotationSpeed’, deg2rad(120));
land(p);
takeoff(p);
move(p, 5, ‘Pitch’, deg2rad(-4), ‘Roll’, deg2rad(4));
land(p);
clear p; Here is the MATLAB script. The drone is already connected to PC:
p = parrot();
takeoff(p);
pause (2);
land(p);
takeoff(p);
movement_step = 1;
while(movement_step <= 4 && p.BatteryLevel > 10)
moveforward(p, 2);
turn(p, deg2rad(90));
movement_step = movement_step + 1;
end
land(p);
takeoff(p);
move(p, 5, ‘Roll’, deg2rad(4), ‘RotationSpeed’, deg2rad(120));
land(p);
takeoff(p);
move(p, 5, ‘Pitch’, deg2rad(-4), ‘Roll’, deg2rad(4));
land(p);
clear p; script, matlab MATLAB Answers — New Questions
Good day my good people, how can we plot the classical variables and the main equations under variation of parameters in bvp4c?
And the classical variables are:
The bvp4c code of the problem is:
function sisko5
% Parameter initialization
A = 1;
M = 1;
n = 2;
m = 1;
gamma = 1;
Nt = 1;
Nb = 1;
GrT = 1;
GrC = 2;
Rd = 1;
Sc = 1;
Pr = 1;
Ec = 1;
% Constant calculation
Costant = (m*(2*n – 1) + 1) / (n + 1);
% System of ODE
function dydx = odefun(~, y)
%f = y(1), f’ = y(2), f” = y(3), theta = y(4), theta’ = y(5), phi = y(6), phi’ = y(7)
dydx = zeros(7, 1);
dydx(1) = y(2);
dydx(2) = y(3);
dydx(3) = (-Costant*y(1)*y(3) + m*y(2)^2 – GrT*y(4) – GrC*y(6) + M*y(2))/(A + n*(-y(3))^(n-1));
dydx(4) = y(5);
dydx(5) = (-Costant*y(1)*y(5) – Nb*y(5)*y(7) – Nt*y(5)^2 – Ec*A*y(3)^2 – Ec*(-y(3))^(n+1) – M*Ec*y(2)^2)/((1+4/3*Rd)/Pr);
dydx(6) = y(7);
dydx(7) = -Sc*Costant*y(1)*y(7) – (Nt/Nb)*dydx(5) + gamma*y(6);
end
% Nested function: Boundary conditions
function res = bcfun(ya, yb)
res = zeros(7, 1);
res(1) = ya(2)-1; % y(2) = 1 at eta = 0
res(2) = ya(1); % y(1) = 0 at eta = 0
res(3) = ya(4)-1; % y(4) = 1 at eta = 0
res(4) = Nb*ya(7) + Nt*ya(5); % Boundary condition at eta = 0
res(5) = yb(2); % y(2) = 0 at eta = 10
res(6) = yb(4); % y(4) = 0 at eta = 10
res(7) = yb(6); % y(6) = 0 at eta = 10
end
solinit=bvpinit(linspace(0,10,10),[0 0 0 0 0 0 0]);
sol=bvp4c(@odefun,@bcfun,solinit);
eta=linspace(0,10,100);
y=deval(sol,eta);
plot(eta,y(6,:))
end
Is it possible to do plot under variation of parameter in bvp4c method? It has been a chalenge for me honestly. Can anyone help my good peolple?And the classical variables are:
The bvp4c code of the problem is:
function sisko5
% Parameter initialization
A = 1;
M = 1;
n = 2;
m = 1;
gamma = 1;
Nt = 1;
Nb = 1;
GrT = 1;
GrC = 2;
Rd = 1;
Sc = 1;
Pr = 1;
Ec = 1;
% Constant calculation
Costant = (m*(2*n – 1) + 1) / (n + 1);
% System of ODE
function dydx = odefun(~, y)
%f = y(1), f’ = y(2), f” = y(3), theta = y(4), theta’ = y(5), phi = y(6), phi’ = y(7)
dydx = zeros(7, 1);
dydx(1) = y(2);
dydx(2) = y(3);
dydx(3) = (-Costant*y(1)*y(3) + m*y(2)^2 – GrT*y(4) – GrC*y(6) + M*y(2))/(A + n*(-y(3))^(n-1));
dydx(4) = y(5);
dydx(5) = (-Costant*y(1)*y(5) – Nb*y(5)*y(7) – Nt*y(5)^2 – Ec*A*y(3)^2 – Ec*(-y(3))^(n+1) – M*Ec*y(2)^2)/((1+4/3*Rd)/Pr);
dydx(6) = y(7);
dydx(7) = -Sc*Costant*y(1)*y(7) – (Nt/Nb)*dydx(5) + gamma*y(6);
end
% Nested function: Boundary conditions
function res = bcfun(ya, yb)
res = zeros(7, 1);
res(1) = ya(2)-1; % y(2) = 1 at eta = 0
res(2) = ya(1); % y(1) = 0 at eta = 0
res(3) = ya(4)-1; % y(4) = 1 at eta = 0
res(4) = Nb*ya(7) + Nt*ya(5); % Boundary condition at eta = 0
res(5) = yb(2); % y(2) = 0 at eta = 10
res(6) = yb(4); % y(4) = 0 at eta = 10
res(7) = yb(6); % y(6) = 0 at eta = 10
end
solinit=bvpinit(linspace(0,10,10),[0 0 0 0 0 0 0]);
sol=bvp4c(@odefun,@bcfun,solinit);
eta=linspace(0,10,100);
y=deval(sol,eta);
plot(eta,y(6,:))
end
Is it possible to do plot under variation of parameter in bvp4c method? It has been a chalenge for me honestly. Can anyone help my good peolple? And the classical variables are:
The bvp4c code of the problem is:
function sisko5
% Parameter initialization
A = 1;
M = 1;
n = 2;
m = 1;
gamma = 1;
Nt = 1;
Nb = 1;
GrT = 1;
GrC = 2;
Rd = 1;
Sc = 1;
Pr = 1;
Ec = 1;
% Constant calculation
Costant = (m*(2*n – 1) + 1) / (n + 1);
% System of ODE
function dydx = odefun(~, y)
%f = y(1), f’ = y(2), f” = y(3), theta = y(4), theta’ = y(5), phi = y(6), phi’ = y(7)
dydx = zeros(7, 1);
dydx(1) = y(2);
dydx(2) = y(3);
dydx(3) = (-Costant*y(1)*y(3) + m*y(2)^2 – GrT*y(4) – GrC*y(6) + M*y(2))/(A + n*(-y(3))^(n-1));
dydx(4) = y(5);
dydx(5) = (-Costant*y(1)*y(5) – Nb*y(5)*y(7) – Nt*y(5)^2 – Ec*A*y(3)^2 – Ec*(-y(3))^(n+1) – M*Ec*y(2)^2)/((1+4/3*Rd)/Pr);
dydx(6) = y(7);
dydx(7) = -Sc*Costant*y(1)*y(7) – (Nt/Nb)*dydx(5) + gamma*y(6);
end
% Nested function: Boundary conditions
function res = bcfun(ya, yb)
res = zeros(7, 1);
res(1) = ya(2)-1; % y(2) = 1 at eta = 0
res(2) = ya(1); % y(1) = 0 at eta = 0
res(3) = ya(4)-1; % y(4) = 1 at eta = 0
res(4) = Nb*ya(7) + Nt*ya(5); % Boundary condition at eta = 0
res(5) = yb(2); % y(2) = 0 at eta = 10
res(6) = yb(4); % y(4) = 0 at eta = 10
res(7) = yb(6); % y(6) = 0 at eta = 10
end
solinit=bvpinit(linspace(0,10,10),[0 0 0 0 0 0 0]);
sol=bvp4c(@odefun,@bcfun,solinit);
eta=linspace(0,10,100);
y=deval(sol,eta);
plot(eta,y(6,:))
end
Is it possible to do plot under variation of parameter in bvp4c method? It has been a chalenge for me honestly. Can anyone help my good peolple? bvp4c, fluid dynamics MATLAB Answers — New Questions
Code generation fails with PLCnext Target for Simulink: pxc_plcn_make_rtw_hook error “Unrecognized method, property, or field ‘Identifier’ for class ‘MException'”
I am trying to generate code from a Simulink model using PLCnext Target for Simulink.
The model runs correctly in simulation, but code generation fails during the build process.
The build stops with the following error:
The call to pxc_plcn_make_rtw_hook, during the exit hook generated the following error:
Unrecognized method, property, or field ‘Identifier’ for class ‘MException’.
The build process will terminate as a result.
Caused by:
Unrecognized method, property, or field ‘Identifier’ for class ‘MException’.
This happens when runs “generate code”
Model configuration:
System target file: pxc_plcn.tlc
Template makefile: pxc_plcn.tmf
Generate code only: enabled
Language: C++
The error appears in the pxc_plcn_make_rtw_hook during the exit hook phase.
Is this related to an incompatibility between the PLCnext Target for Simulink and the MATLAB version, or is there a known issue with this hook?I am trying to generate code from a Simulink model using PLCnext Target for Simulink.
The model runs correctly in simulation, but code generation fails during the build process.
The build stops with the following error:
The call to pxc_plcn_make_rtw_hook, during the exit hook generated the following error:
Unrecognized method, property, or field ‘Identifier’ for class ‘MException’.
The build process will terminate as a result.
Caused by:
Unrecognized method, property, or field ‘Identifier’ for class ‘MException’.
This happens when runs “generate code”
Model configuration:
System target file: pxc_plcn.tlc
Template makefile: pxc_plcn.tmf
Generate code only: enabled
Language: C++
The error appears in the pxc_plcn_make_rtw_hook during the exit hook phase.
Is this related to an incompatibility between the PLCnext Target for Simulink and the MATLAB version, or is there a known issue with this hook? I am trying to generate code from a Simulink model using PLCnext Target for Simulink.
The model runs correctly in simulation, but code generation fails during the build process.
The build stops with the following error:
The call to pxc_plcn_make_rtw_hook, during the exit hook generated the following error:
Unrecognized method, property, or field ‘Identifier’ for class ‘MException’.
The build process will terminate as a result.
Caused by:
Unrecognized method, property, or field ‘Identifier’ for class ‘MException’.
This happens when runs “generate code”
Model configuration:
System target file: pxc_plcn.tlc
Template makefile: pxc_plcn.tmf
Generate code only: enabled
Language: C++
The error appears in the pxc_plcn_make_rtw_hook during the exit hook phase.
Is this related to an incompatibility between the PLCnext Target for Simulink and the MATLAB version, or is there a known issue with this hook? simulink, code-generation, plcnext MATLAB Answers — New Questions
How to disable interactions with DonutChart objects?
Hi everyone,
I’m using the donutchart function (which returns a DonutChart object) and I’m looking for a supported way to disable chart interactions—specifically:
Data tips
The export interaction
For conventional plots (for example, line plots, scatter plots), I can usually disable interactions at the axes level. However, for donut charts I haven’t found an approach that reliably disables these interactions on the DonutChart object itself.
If anyone has a method (or knows whether this is currently not configurable for DonutChart), I’d really appreciate guidance.
Thanks a lot!
Best regards,
RalfHi everyone,
I’m using the donutchart function (which returns a DonutChart object) and I’m looking for a supported way to disable chart interactions—specifically:
Data tips
The export interaction
For conventional plots (for example, line plots, scatter plots), I can usually disable interactions at the axes level. However, for donut charts I haven’t found an approach that reliably disables these interactions on the DonutChart object itself.
If anyone has a method (or knows whether this is currently not configurable for DonutChart), I’d really appreciate guidance.
Thanks a lot!
Best regards,
Ralf Hi everyone,
I’m using the donutchart function (which returns a DonutChart object) and I’m looking for a supported way to disable chart interactions—specifically:
Data tips
The export interaction
For conventional plots (for example, line plots, scatter plots), I can usually disable interactions at the axes level. However, for donut charts I haven’t found an approach that reliably disables these interactions on the DonutChart object itself.
If anyone has a method (or knows whether this is currently not configurable for DonutChart), I’d really appreciate guidance.
Thanks a lot!
Best regards,
Ralf donutchart, donut chart MATLAB Answers — New Questions
I want to install Matlab 2010b on a new (2026) HP desktop
How do I install an old version of Matlab (2010b I believe) on a brand new HP desktop running Windows 11? I have the original CDs, but not a valid PLP. (personal license passcode). LeoHow do I install an old version of Matlab (2010b I believe) on a brand new HP desktop running Windows 11? I have the original CDs, but not a valid PLP. (personal license passcode). Leo How do I install an old version of Matlab (2010b I believe) on a brand new HP desktop running Windows 11? I have the original CDs, but not a valid PLP. (personal license passcode). Leo install on a new machine MATLAB Answers — New Questions
Running uitests in parallel
I have a large app with many test cases that I would like to be able run in parallel. However the uitest framework functions (type, press etc. ) all fail when run in parallel due to MATLAB:uiautomation:Driver:NoDisplay. Is there a way to set up the parpool to allow this?
I provide an example of this with a simple file selector app that uses uigetfile to select a file. If the file exists then the first line is written to a label in the app, otherwise an error message is written. The testing utilizes the uitest framework function "press" in both tests and it failes due to the error above when run in parallel. When run without parallel processes both tests pass without errors.
(I borrowed the original code base from the example provided in the answer linked below and modified it for this question)
https://www.mathworks.com/matlabcentral/answers/1989568-create-a-test-case-with-uitest-class-using-uigetfile-and-uiputfileI have a large app with many test cases that I would like to be able run in parallel. However the uitest framework functions (type, press etc. ) all fail when run in parallel due to MATLAB:uiautomation:Driver:NoDisplay. Is there a way to set up the parpool to allow this?
I provide an example of this with a simple file selector app that uses uigetfile to select a file. If the file exists then the first line is written to a label in the app, otherwise an error message is written. The testing utilizes the uitest framework function "press" in both tests and it failes due to the error above when run in parallel. When run without parallel processes both tests pass without errors.
(I borrowed the original code base from the example provided in the answer linked below and modified it for this question)
https://www.mathworks.com/matlabcentral/answers/1989568-create-a-test-case-with-uitest-class-using-uigetfile-and-uiputfile I have a large app with many test cases that I would like to be able run in parallel. However the uitest framework functions (type, press etc. ) all fail when run in parallel due to MATLAB:uiautomation:Driver:NoDisplay. Is there a way to set up the parpool to allow this?
I provide an example of this with a simple file selector app that uses uigetfile to select a file. If the file exists then the first line is written to a label in the app, otherwise an error message is written. The testing utilizes the uitest framework function "press" in both tests and it failes due to the error above when run in parallel. When run without parallel processes both tests pass without errors.
(I borrowed the original code base from the example provided in the answer linked below and modified it for this question)
https://www.mathworks.com/matlabcentral/answers/1989568-create-a-test-case-with-uitest-class-using-uigetfile-and-uiputfile parallel computing, uitest, unittest MATLAB Answers — New Questions
Unable to connect to given URL.
url = ‘https://fred.stlouisfed.org/’;
c = fred(url);
Unable to connect to given URL.url = ‘https://fred.stlouisfed.org/’;
c = fred(url);
Unable to connect to given URL. url = ‘https://fred.stlouisfed.org/’;
c = fred(url);
Unable to connect to given URL. fred MATLAB Answers — New Questions
I am using the UCIe 2.0 Standard Package Signal Integrity Kit. Could you tell me where the VTF script is located?
I would like to ask for your guidance regarding my use of the UCIe 2.0 Standard Package Signal Integrity Kit.
In the documentation, a script (run_plotVTF.m) for calculating the VTF is mentioned, as illustrated in the figure below. However, I was not able to locate this file after searching through the provided package.
I also have an additional question: is it possible to run the VTF calculation tool independently, without waiting for the coupled widebus simulation to be completed?
Based on my understanding, the VTF simulation itself is essentially a passive simulation.I would like to ask for your guidance regarding my use of the UCIe 2.0 Standard Package Signal Integrity Kit.
In the documentation, a script (run_plotVTF.m) for calculating the VTF is mentioned, as illustrated in the figure below. However, I was not able to locate this file after searching through the provided package.
I also have an additional question: is it possible to run the VTF calculation tool independently, without waiting for the coupled widebus simulation to be completed?
Based on my understanding, the VTF simulation itself is essentially a passive simulation. I would like to ask for your guidance regarding my use of the UCIe 2.0 Standard Package Signal Integrity Kit.
In the documentation, a script (run_plotVTF.m) for calculating the VTF is mentioned, as illustrated in the figure below. However, I was not able to locate this file after searching through the provided package.
I also have an additional question: is it possible to run the VTF calculation tool independently, without waiting for the coupled widebus simulation to be completed?
Based on my understanding, the VTF simulation itself is essentially a passive simulation. ucie 2.0, parallel link designer, vtf, script MATLAB Answers — New Questions









