Category: News
As of R2025ab, are all figures now uifigures?
Prior to R2025, the result of the code below was tf=0. Have the figure and uifigure frameworks been unified somehow? Is that why tf is now 1?
fig=figure; plot(1:5);
tf = matlab.ui.internal.isUIFigure(fig)Prior to R2025, the result of the code below was tf=0. Have the figure and uifigure frameworks been unified somehow? Is that why tf is now 1?
fig=figure; plot(1:5);
tf = matlab.ui.internal.isUIFigure(fig) Prior to R2025, the result of the code below was tf=0. Have the figure and uifigure frameworks been unified somehow? Is that why tf is now 1?
fig=figure; plot(1:5);
tf = matlab.ui.internal.isUIFigure(fig) figure, uifigure, matlab.ui.internal.isuifigure, graphics MATLAB Answers — New Questions
New Pixhawk Cube Orange+ hardware incompatible with MATLAB PX4 Toolbox (PX4 v1.14.x)?
Hi all,
It appears that the Pixhawk Cube Orange+ has undergone a hardware change since the MATLAB R2024a PX4 Support Package (PX4 v1.14.0) was released. In my lab we use Cube Orange+ for custom flight control law testing, and a recent purchase of four Cube Orange+ units (ordered August 2025) has revealed a serious compatibility issue:
Older Cube Orange+ boards (purchased before Summer 2025) work perfectly with MATLAB R2024a PX4 Toolbox (PX4 v1.14.0).
Newer Cube Orange+ boards (purchased Aug 2025) are unusable with PX4 v1.14.x–based MATLAB builds, but work fine with newer stock PX4 firmware.
On the newer Cube Orange+ boards, I observe the following behavior:
Stock PX4 v1.15, v1.16, and v1.17 build and flash without issue. RC input works correctly, and peripherals such as GPS, TFmini LiDAR, and airspeed sensors behave as expected.
MATLAB R2024a PX4 toolbox builds (PX4 v1.14.0), which still work on older Cube Orange+ boards, cause the Cube to play the “error tune” immediately after boot when flashed to the newer boards.
RC input is completely missing. The Radio setup screen in QGroundControl shows no channels, and MAVLink Inspector shows no RC_CHANNELS or RC_CHANNELS_RAW messages being published.
RCIN does not respond to standard SBUS input.
When ELRS/CRSF drivers are enabled, some switch activity appears in the Radio screen but is glitchy and not reliably received by the Pixhawk.
TFmini LiDAR modules no longer publish to DISTANCE_SENSOR in MAVLink Inspector.
PWM_MAIN channels 1–8 are disabled after uploading the v1.14.0 firmware.
PWM_MAIN_TIM* parameters are missing, similar to the behavior reported previously on the Pixhawk 6C.
From what I have seen so far, this issue appears to persist with MATLAB R2025a+ (PX4 v1.14.3 firmware), so the proposed 1.14.3 fix that helped the 6C does not appear to resolve this for newer Cube Orange+ boards.
Tests I have already tried on the newer Cube Orange+ units include:
Flashing stock PX4 v1.17, fully setting up the board in QGroundControl, verifying that RC and TFmini work, then flashing MATLAB-generated PX4 v1.14.0 firmware (that still works on older cubes) → error tune and no RC/TFmini.
Flashing stock PX4 v1.16, setting up the board, verifying RC and TFmini, then flashing MATLAB-generated PX4 v1.14.0 firmware → error tune and no RC/TFmini.
Flashing stock PX4 v1.15, setting up the board, verifying RC and TFmini, then flashing MATLAB-generated PX4 v1.14.0 firmware → error tune and no RC/TFmini.
Flashing stock PX4 v1.14.0 directly from the PX4 GitHub repository and setting up the board → error tune and the same loss of RC/TFmini.
Performing a full wipe (SD card erase and parameter reset), then flashing MATLAB-generated PX4 v1.14.0 firmware that still works on older Cube Orange+ units → error tune and no RC/TFmini.
From these tests, I have deduced the following:
The same MATLAB PX4 v1.14.0 firmware remains fully functional on older Cube Orange+ boards.
The same newer Cube Orange+ hardware works correctly with stock PX4 v1.15 and newer.
The newer Cube Orange+ hardware consistently shows broken RC/IO/TFmini behavior with PX4 v1.14.x (both stock builds and MATLAB-generated builds).
This makes me suspect that there has been a hardware revision in the Cube Orange+ and that the IO/RC/PWM layer in PX4 v1.14.x (including the IO firmware) is no longer fully compatible with these newer boards.
A few questions:
Is MathWorks aware of this issue with newer Pixhawk Cube Orange+ hardware and the PX4 v1.14.x–based support packages (R2024a–R2025b)?
Is MATLAB R2026a (or a future PX4 Support Package update) planning to move to PX4 v1.15 or newer, which appears to work reliably on these newer Cube Orange+ boards?
Has anyone else seen this behavior on newer Cube Orange+ units, and if so, has anyone found a workaround or partial solution (e.g., custom IO firmware, patched board configuration, or updated support package)?
Has anyone confirmed whether this issue is also present in the Cube Orange (non +) variants?
Thank you in advance for any guidance, support, or suggestions you may have.
-AHi all,
It appears that the Pixhawk Cube Orange+ has undergone a hardware change since the MATLAB R2024a PX4 Support Package (PX4 v1.14.0) was released. In my lab we use Cube Orange+ for custom flight control law testing, and a recent purchase of four Cube Orange+ units (ordered August 2025) has revealed a serious compatibility issue:
Older Cube Orange+ boards (purchased before Summer 2025) work perfectly with MATLAB R2024a PX4 Toolbox (PX4 v1.14.0).
Newer Cube Orange+ boards (purchased Aug 2025) are unusable with PX4 v1.14.x–based MATLAB builds, but work fine with newer stock PX4 firmware.
On the newer Cube Orange+ boards, I observe the following behavior:
Stock PX4 v1.15, v1.16, and v1.17 build and flash without issue. RC input works correctly, and peripherals such as GPS, TFmini LiDAR, and airspeed sensors behave as expected.
MATLAB R2024a PX4 toolbox builds (PX4 v1.14.0), which still work on older Cube Orange+ boards, cause the Cube to play the “error tune” immediately after boot when flashed to the newer boards.
RC input is completely missing. The Radio setup screen in QGroundControl shows no channels, and MAVLink Inspector shows no RC_CHANNELS or RC_CHANNELS_RAW messages being published.
RCIN does not respond to standard SBUS input.
When ELRS/CRSF drivers are enabled, some switch activity appears in the Radio screen but is glitchy and not reliably received by the Pixhawk.
TFmini LiDAR modules no longer publish to DISTANCE_SENSOR in MAVLink Inspector.
PWM_MAIN channels 1–8 are disabled after uploading the v1.14.0 firmware.
PWM_MAIN_TIM* parameters are missing, similar to the behavior reported previously on the Pixhawk 6C.
From what I have seen so far, this issue appears to persist with MATLAB R2025a+ (PX4 v1.14.3 firmware), so the proposed 1.14.3 fix that helped the 6C does not appear to resolve this for newer Cube Orange+ boards.
Tests I have already tried on the newer Cube Orange+ units include:
Flashing stock PX4 v1.17, fully setting up the board in QGroundControl, verifying that RC and TFmini work, then flashing MATLAB-generated PX4 v1.14.0 firmware (that still works on older cubes) → error tune and no RC/TFmini.
Flashing stock PX4 v1.16, setting up the board, verifying RC and TFmini, then flashing MATLAB-generated PX4 v1.14.0 firmware → error tune and no RC/TFmini.
Flashing stock PX4 v1.15, setting up the board, verifying RC and TFmini, then flashing MATLAB-generated PX4 v1.14.0 firmware → error tune and no RC/TFmini.
Flashing stock PX4 v1.14.0 directly from the PX4 GitHub repository and setting up the board → error tune and the same loss of RC/TFmini.
Performing a full wipe (SD card erase and parameter reset), then flashing MATLAB-generated PX4 v1.14.0 firmware that still works on older Cube Orange+ units → error tune and no RC/TFmini.
From these tests, I have deduced the following:
The same MATLAB PX4 v1.14.0 firmware remains fully functional on older Cube Orange+ boards.
The same newer Cube Orange+ hardware works correctly with stock PX4 v1.15 and newer.
The newer Cube Orange+ hardware consistently shows broken RC/IO/TFmini behavior with PX4 v1.14.x (both stock builds and MATLAB-generated builds).
This makes me suspect that there has been a hardware revision in the Cube Orange+ and that the IO/RC/PWM layer in PX4 v1.14.x (including the IO firmware) is no longer fully compatible with these newer boards.
A few questions:
Is MathWorks aware of this issue with newer Pixhawk Cube Orange+ hardware and the PX4 v1.14.x–based support packages (R2024a–R2025b)?
Is MATLAB R2026a (or a future PX4 Support Package update) planning to move to PX4 v1.15 or newer, which appears to work reliably on these newer Cube Orange+ boards?
Has anyone else seen this behavior on newer Cube Orange+ units, and if so, has anyone found a workaround or partial solution (e.g., custom IO firmware, patched board configuration, or updated support package)?
Has anyone confirmed whether this issue is also present in the Cube Orange (non +) variants?
Thank you in advance for any guidance, support, or suggestions you may have.
-A Hi all,
It appears that the Pixhawk Cube Orange+ has undergone a hardware change since the MATLAB R2024a PX4 Support Package (PX4 v1.14.0) was released. In my lab we use Cube Orange+ for custom flight control law testing, and a recent purchase of four Cube Orange+ units (ordered August 2025) has revealed a serious compatibility issue:
Older Cube Orange+ boards (purchased before Summer 2025) work perfectly with MATLAB R2024a PX4 Toolbox (PX4 v1.14.0).
Newer Cube Orange+ boards (purchased Aug 2025) are unusable with PX4 v1.14.x–based MATLAB builds, but work fine with newer stock PX4 firmware.
On the newer Cube Orange+ boards, I observe the following behavior:
Stock PX4 v1.15, v1.16, and v1.17 build and flash without issue. RC input works correctly, and peripherals such as GPS, TFmini LiDAR, and airspeed sensors behave as expected.
MATLAB R2024a PX4 toolbox builds (PX4 v1.14.0), which still work on older Cube Orange+ boards, cause the Cube to play the “error tune” immediately after boot when flashed to the newer boards.
RC input is completely missing. The Radio setup screen in QGroundControl shows no channels, and MAVLink Inspector shows no RC_CHANNELS or RC_CHANNELS_RAW messages being published.
RCIN does not respond to standard SBUS input.
When ELRS/CRSF drivers are enabled, some switch activity appears in the Radio screen but is glitchy and not reliably received by the Pixhawk.
TFmini LiDAR modules no longer publish to DISTANCE_SENSOR in MAVLink Inspector.
PWM_MAIN channels 1–8 are disabled after uploading the v1.14.0 firmware.
PWM_MAIN_TIM* parameters are missing, similar to the behavior reported previously on the Pixhawk 6C.
From what I have seen so far, this issue appears to persist with MATLAB R2025a+ (PX4 v1.14.3 firmware), so the proposed 1.14.3 fix that helped the 6C does not appear to resolve this for newer Cube Orange+ boards.
Tests I have already tried on the newer Cube Orange+ units include:
Flashing stock PX4 v1.17, fully setting up the board in QGroundControl, verifying that RC and TFmini work, then flashing MATLAB-generated PX4 v1.14.0 firmware (that still works on older cubes) → error tune and no RC/TFmini.
Flashing stock PX4 v1.16, setting up the board, verifying RC and TFmini, then flashing MATLAB-generated PX4 v1.14.0 firmware → error tune and no RC/TFmini.
Flashing stock PX4 v1.15, setting up the board, verifying RC and TFmini, then flashing MATLAB-generated PX4 v1.14.0 firmware → error tune and no RC/TFmini.
Flashing stock PX4 v1.14.0 directly from the PX4 GitHub repository and setting up the board → error tune and the same loss of RC/TFmini.
Performing a full wipe (SD card erase and parameter reset), then flashing MATLAB-generated PX4 v1.14.0 firmware that still works on older Cube Orange+ units → error tune and no RC/TFmini.
From these tests, I have deduced the following:
The same MATLAB PX4 v1.14.0 firmware remains fully functional on older Cube Orange+ boards.
The same newer Cube Orange+ hardware works correctly with stock PX4 v1.15 and newer.
The newer Cube Orange+ hardware consistently shows broken RC/IO/TFmini behavior with PX4 v1.14.x (both stock builds and MATLAB-generated builds).
This makes me suspect that there has been a hardware revision in the Cube Orange+ and that the IO/RC/PWM layer in PX4 v1.14.x (including the IO firmware) is no longer fully compatible with these newer boards.
A few questions:
Is MathWorks aware of this issue with newer Pixhawk Cube Orange+ hardware and the PX4 v1.14.x–based support packages (R2024a–R2025b)?
Is MATLAB R2026a (or a future PX4 Support Package update) planning to move to PX4 v1.15 or newer, which appears to work reliably on these newer Cube Orange+ boards?
Has anyone else seen this behavior on newer Cube Orange+ units, and if so, has anyone found a workaround or partial solution (e.g., custom IO firmware, patched board configuration, or updated support package)?
Has anyone confirmed whether this issue is also present in the Cube Orange (non +) variants?
Thank you in advance for any guidance, support, or suggestions you may have.
-A px4, pixhawk MATLAB Answers — New Questions
Attach buttons to graph elements
I’ve created an app using the app designer that creates a graph from user inputs with buttons for adding nodes and edges separately, updating the graph each time a node or edge is added. I want each node and edge to be clickable buttons which open a new dialogue in which additional data can be inputted and viewed in the form of a table or database. Any ideas on how I could achieve this?
The inputs occur like this currently in case it’s helpful:
function NewNodeButtonPushed(app, event)
%get basic node data from user
nodetemp = inputdlg(["Node Name", "Latitude", "Longitude"], "Node Details");
%add code to start
nodeinp = addvars(cell2table(transpose(nodetemp),’VariableNames’,{‘Name’,’Latitude’, …
‘Longitude’}), app.index, ‘before’, 1,’NewVariableNames’,{‘Code’});
%update graph with node data
app.NodeTable=[app.NodeTable; nodeinp];
%app.G=graph(app.EdgeTable,app.NodeTable);
app.G=addnode(app.G,nodeinp);
%display graph
plot(app.UIAxes,app.G,’NodeLabel’,app.G.Nodes.Name,’EdgeLabel’,app.G.Edges.Distance)%plot graph
app.UITable.Data = app.NodeTable;
app.index = app.index + 1; %increment node counter
endI’ve created an app using the app designer that creates a graph from user inputs with buttons for adding nodes and edges separately, updating the graph each time a node or edge is added. I want each node and edge to be clickable buttons which open a new dialogue in which additional data can be inputted and viewed in the form of a table or database. Any ideas on how I could achieve this?
The inputs occur like this currently in case it’s helpful:
function NewNodeButtonPushed(app, event)
%get basic node data from user
nodetemp = inputdlg(["Node Name", "Latitude", "Longitude"], "Node Details");
%add code to start
nodeinp = addvars(cell2table(transpose(nodetemp),’VariableNames’,{‘Name’,’Latitude’, …
‘Longitude’}), app.index, ‘before’, 1,’NewVariableNames’,{‘Code’});
%update graph with node data
app.NodeTable=[app.NodeTable; nodeinp];
%app.G=graph(app.EdgeTable,app.NodeTable);
app.G=addnode(app.G,nodeinp);
%display graph
plot(app.UIAxes,app.G,’NodeLabel’,app.G.Nodes.Name,’EdgeLabel’,app.G.Edges.Distance)%plot graph
app.UITable.Data = app.NodeTable;
app.index = app.index + 1; %increment node counter
end I’ve created an app using the app designer that creates a graph from user inputs with buttons for adding nodes and edges separately, updating the graph each time a node or edge is added. I want each node and edge to be clickable buttons which open a new dialogue in which additional data can be inputted and viewed in the form of a table or database. Any ideas on how I could achieve this?
The inputs occur like this currently in case it’s helpful:
function NewNodeButtonPushed(app, event)
%get basic node data from user
nodetemp = inputdlg(["Node Name", "Latitude", "Longitude"], "Node Details");
%add code to start
nodeinp = addvars(cell2table(transpose(nodetemp),’VariableNames’,{‘Name’,’Latitude’, …
‘Longitude’}), app.index, ‘before’, 1,’NewVariableNames’,{‘Code’});
%update graph with node data
app.NodeTable=[app.NodeTable; nodeinp];
%app.G=graph(app.EdgeTable,app.NodeTable);
app.G=addnode(app.G,nodeinp);
%display graph
plot(app.UIAxes,app.G,’NodeLabel’,app.G.Nodes.Name,’EdgeLabel’,app.G.Edges.Distance)%plot graph
app.UITable.Data = app.NodeTable;
app.index = app.index + 1; %increment node counter
end appdesigner, app designer, graph, figure, table, buttons, input MATLAB Answers — New Questions
How to add traction force (F = p/v) to vehicle body block simscape?
Hello,
For the following Simscape model, I would like to add the resistance force (F = P/v) from a drive cycle of an existing vehicle. The goal is to match the torque/speed of the wheels with real-world conditions. Does anyone have tips on how to add this force externally?
Kind regards,
SietseHello,
For the following Simscape model, I would like to add the resistance force (F = P/v) from a drive cycle of an existing vehicle. The goal is to match the torque/speed of the wheels with real-world conditions. Does anyone have tips on how to add this force externally?
Kind regards,
Sietse Hello,
For the following Simscape model, I would like to add the resistance force (F = P/v) from a drive cycle of an existing vehicle. The goal is to match the torque/speed of the wheels with real-world conditions. Does anyone have tips on how to add this force externally?
Kind regards,
Sietse vehicle body, simscape, resistance force, drive cycle, torque MATLAB Answers — New Questions
How to plot and calculate 95% confidence interval
Hello,
I have two vectors of the actual values and predicted values and I want to calculate and plot 95% confidenence interval just like the image I have attached. Colud you please help me?
thanks a lot.Hello,
I have two vectors of the actual values and predicted values and I want to calculate and plot 95% confidenence interval just like the image I have attached. Colud you please help me?
thanks a lot. Hello,
I have two vectors of the actual values and predicted values and I want to calculate and plot 95% confidenence interval just like the image I have attached. Colud you please help me?
thanks a lot. matlab, plot, machine learning MATLAB Answers — New Questions
Increasing the line width of box plot whiskers
I have written some code to produce 2 boxplots side by side using tiledlayout. I would like to increase the line weight of the boxes and the whiskers and have written the code to do so as follows:
figure()
t = tiledlayout(1,2,’tilespacing’,’none’);
nexttile
boxplot(T_toPlot,’BoxStyle’,’outline’,’Color’, ‘b’, ‘Symbol’,’xk’, ‘OutlierSize’,8,’Labels’, labels);
bx1 = findobj(‘Tag’,’boxplot’);
set(bx1.Children,’LineWidth’,2)
h = findobj(gca,’Tag’,’Box’);
for j=1:length(h)
patch(get(h(j),’XData’),get(h(j),’YData’),get(h(j),’Color’),’FaceAlpha’,.5);
end
clear h j
nexttile
boxplot(S_toPlot,’BoxStyle’,’outline’,’Color’, ‘b’, ‘Symbol’,’xk’, ‘OutlierSize’,8,’Labels’, labels);
bx2 = findobj(‘Tag’,’boxplot’);
set(bx2.Children,’LineWidth’,2)
h = findobj(gca,’Tag’,’Box’);
for j=1:length(h)
patch(get(h(j),’XData’),get(h(j),’YData’),get(h(j),’Color’),’FaceAlpha’,.5);
end
clear h j
The first time I run this code, the first tile runs successfully and I get the following error message for the second tile:
Error using matlab.graphics.primitive.Line/set
Invalid parameter/value pair arguments.
Error in Filename (line XXX)
set(bx2.Children,’LineWidth’,2)
If I then do nothing, just hit enter again to re-run the cell, it then fails with the same error, but now for the first tile – and does not reach the second tile. Even if I clear the workspace and re-run the data processing from scratch, subsequent re-runs will fail for the first tile unless I restart the program. How can I increase the line weight of the boxplots (particularly the whiskers) without running into this problem? Thanks!I have written some code to produce 2 boxplots side by side using tiledlayout. I would like to increase the line weight of the boxes and the whiskers and have written the code to do so as follows:
figure()
t = tiledlayout(1,2,’tilespacing’,’none’);
nexttile
boxplot(T_toPlot,’BoxStyle’,’outline’,’Color’, ‘b’, ‘Symbol’,’xk’, ‘OutlierSize’,8,’Labels’, labels);
bx1 = findobj(‘Tag’,’boxplot’);
set(bx1.Children,’LineWidth’,2)
h = findobj(gca,’Tag’,’Box’);
for j=1:length(h)
patch(get(h(j),’XData’),get(h(j),’YData’),get(h(j),’Color’),’FaceAlpha’,.5);
end
clear h j
nexttile
boxplot(S_toPlot,’BoxStyle’,’outline’,’Color’, ‘b’, ‘Symbol’,’xk’, ‘OutlierSize’,8,’Labels’, labels);
bx2 = findobj(‘Tag’,’boxplot’);
set(bx2.Children,’LineWidth’,2)
h = findobj(gca,’Tag’,’Box’);
for j=1:length(h)
patch(get(h(j),’XData’),get(h(j),’YData’),get(h(j),’Color’),’FaceAlpha’,.5);
end
clear h j
The first time I run this code, the first tile runs successfully and I get the following error message for the second tile:
Error using matlab.graphics.primitive.Line/set
Invalid parameter/value pair arguments.
Error in Filename (line XXX)
set(bx2.Children,’LineWidth’,2)
If I then do nothing, just hit enter again to re-run the cell, it then fails with the same error, but now for the first tile – and does not reach the second tile. Even if I clear the workspace and re-run the data processing from scratch, subsequent re-runs will fail for the first tile unless I restart the program. How can I increase the line weight of the boxplots (particularly the whiskers) without running into this problem? Thanks! I have written some code to produce 2 boxplots side by side using tiledlayout. I would like to increase the line weight of the boxes and the whiskers and have written the code to do so as follows:
figure()
t = tiledlayout(1,2,’tilespacing’,’none’);
nexttile
boxplot(T_toPlot,’BoxStyle’,’outline’,’Color’, ‘b’, ‘Symbol’,’xk’, ‘OutlierSize’,8,’Labels’, labels);
bx1 = findobj(‘Tag’,’boxplot’);
set(bx1.Children,’LineWidth’,2)
h = findobj(gca,’Tag’,’Box’);
for j=1:length(h)
patch(get(h(j),’XData’),get(h(j),’YData’),get(h(j),’Color’),’FaceAlpha’,.5);
end
clear h j
nexttile
boxplot(S_toPlot,’BoxStyle’,’outline’,’Color’, ‘b’, ‘Symbol’,’xk’, ‘OutlierSize’,8,’Labels’, labels);
bx2 = findobj(‘Tag’,’boxplot’);
set(bx2.Children,’LineWidth’,2)
h = findobj(gca,’Tag’,’Box’);
for j=1:length(h)
patch(get(h(j),’XData’),get(h(j),’YData’),get(h(j),’Color’),’FaceAlpha’,.5);
end
clear h j
The first time I run this code, the first tile runs successfully and I get the following error message for the second tile:
Error using matlab.graphics.primitive.Line/set
Invalid parameter/value pair arguments.
Error in Filename (line XXX)
set(bx2.Children,’LineWidth’,2)
If I then do nothing, just hit enter again to re-run the cell, it then fails with the same error, but now for the first tile – and does not reach the second tile. Even if I clear the workspace and re-run the data processing from scratch, subsequent re-runs will fail for the first tile unless I restart the program. How can I increase the line weight of the boxplots (particularly the whiskers) without running into this problem? Thanks! boxplot, matlab MATLAB Answers — New Questions
what is power spectrum value mean (‘pspectrum’)
I used the following code.
This is a code that perform STFT on time series pressure data.
[p, f, t] = pspectrum(Pascal, sample_rate, ‘TimeResolution’, 1, ‘spectrogram’);
The MATLAB hompage explanation says the output(‘p’) represents the power spectrum value.
I want to ask what is a power spectrum value’s physical meaning, How is it related to my input, ‘Pascal’ ?
Thank you.I used the following code.
This is a code that perform STFT on time series pressure data.
[p, f, t] = pspectrum(Pascal, sample_rate, ‘TimeResolution’, 1, ‘spectrogram’);
The MATLAB hompage explanation says the output(‘p’) represents the power spectrum value.
I want to ask what is a power spectrum value’s physical meaning, How is it related to my input, ‘Pascal’ ?
Thank you. I used the following code.
This is a code that perform STFT on time series pressure data.
[p, f, t] = pspectrum(Pascal, sample_rate, ‘TimeResolution’, 1, ‘spectrogram’);
The MATLAB hompage explanation says the output(‘p’) represents the power spectrum value.
I want to ask what is a power spectrum value’s physical meaning, How is it related to my input, ‘Pascal’ ?
Thank you. fft, stft, noise, signal MATLAB Answers — New Questions
Error using assignin in a nested m function
Error using assignin
Attempt to add "q" to a static workspace.
Error in syms (line 283)
assignin(‘caller’, x, xsym);
Error in mywork/myfunction (line 66)
syms a(t) q
This error occurs when running mywork.m but not myfunction alone.Error using assignin
Attempt to add "q" to a static workspace.
Error in syms (line 283)
assignin(‘caller’, x, xsym);
Error in mywork/myfunction (line 66)
syms a(t) q
This error occurs when running mywork.m but not myfunction alone. Error using assignin
Attempt to add "q" to a static workspace.
Error in syms (line 283)
assignin(‘caller’, x, xsym);
Error in mywork/myfunction (line 66)
syms a(t) q
This error occurs when running mywork.m but not myfunction alone. syms MATLAB Answers — New Questions
Managing large number of large set of parameter
Hello All,
Do you have some tips for managing a lot of design data. I give you my usecase, maybe you can share yours to improve way to manage data under our models.
My simulink models are component-based with many subsystems reference, each subsystem reference are a variant model of several subsystem reference.
each component of my composition can be instancited many times with different parameters.
I build a kind of framework with mask to path different parameters for each instance.
My paramters are manage like that :
CmpObj.Param.MyParam.v
I’ve got as many m-files as instance of my component. So I have a lot of m-files splitted into many folder which is a nightmare.
What do you think ? How did you do ?Hello All,
Do you have some tips for managing a lot of design data. I give you my usecase, maybe you can share yours to improve way to manage data under our models.
My simulink models are component-based with many subsystems reference, each subsystem reference are a variant model of several subsystem reference.
each component of my composition can be instancited many times with different parameters.
I build a kind of framework with mask to path different parameters for each instance.
My paramters are manage like that :
CmpObj.Param.MyParam.v
I’ve got as many m-files as instance of my component. So I have a lot of m-files splitted into many folder which is a nightmare.
What do you think ? How did you do ? Hello All,
Do you have some tips for managing a lot of design data. I give you my usecase, maybe you can share yours to improve way to manage data under our models.
My simulink models are component-based with many subsystems reference, each subsystem reference are a variant model of several subsystem reference.
each component of my composition can be instancited many times with different parameters.
I build a kind of framework with mask to path different parameters for each instance.
My paramters are manage like that :
CmpObj.Param.MyParam.v
I’ve got as many m-files as instance of my component. So I have a lot of m-files splitted into many folder which is a nightmare.
What do you think ? How did you do ? simulink MATLAB Answers — New Questions
Copilot’s Temporary Chat
Temporary Chat is Copilot’s Response to Similar Features in Other AI Chat Apps
I guess I must have missed the memo about the introduction of temporary chat sessions for Microsoft 365 Copilot (BizChat), but the facility to conduct a chat with Copilot has apparently existed for a couple of months (Figure 1). Temporary chats can be conducted using work or web resource. However, a temporary chat doesn’t seem to be able to use GPT-5 (at least not yet). Perhaps this will be possible when GPT-5 becomes the default by the end of November (MC1176368, last updated 30 October 2025).

A temporary chat is one that doesn’t contribute to the memories maintained by Copilot maintains for normal chats. Similar features are available for ChatGPT, Perplexity, and Gemini, all of which were added in late summer 2025. According to Microsoft’s Copilot Chat roadmap, temporary chat is in the “being currently being built” category, but that’s likely just outdated documentation.

All of the other tools like citation sources work as expected. The only thing that’s missing is the chat thread that usually stores prompts and responses created during a session. A chat thread (listed under “Conversations”) can be loaded into Copilot chat to continue a conversation. Because the chat thread is discarded once a temporary chat ceases, there’s no way to restart the conversation. If you want to save the results of a temporary chat, use Copilot pages (and optionally edit the results in Word).
According to Copilot, a temporary chat is ideal for brainstorming new ideas, generating draft proposals, or asking confidential questions without having the results captured in a chat thread. Remember that information generated for chat responses can resurface in future Copilot responses saved as a memory or in Copilot pages, so if you want the results of interaction with Copilot to disappear once the session is over, a temporary chat is a good way to achieve the goal.
Interaction Records for Temporary Chats
Although temporary chats disappear from user view and won’t be recycled by Copilot, audit events for the interactions in a temporary chat are still captured in the Microsoft 365 audit log and can be reviewed by administrators using audit log searches, accessing the compliance copies stored in the hidden TeamsMessagesData folder in user mailboxes, or by using the Graph AiInteractionHistory API to retrieve a user’s chat history. In other words, if someone uses temporary chats for a purpose that wouldn’t be approved by the organization, their activity might be detected through an administrative scan of interaction records.
For example, here’s the record for the prompt shown in Figure 2 as captured by the AiInteractionHistory API (the user who submitted the prompt is known because their account identifier is needed to submit the API request):
id : 1762780547334
sessionId : 19:VYCrQOrG6IkiZRiJA3uckyFPbKwxjnYSkzS6CkRCyqE1@thread.v2
requestId : 2c8c0203-15d1-4779-8bc8-2ff277f9e18f
appClass : IPM.SkypeTeams.Message.Copilot.PrivateChat
interactionType : userPrompt
conversationType : appchat
etag : 1762780547334
createdDateTime : 10/11/2025 13:15:47
locale : en-us
contexts : {}
from : @{@odata.type=#microsoft.graph.chatMessageFromIdentitySet; application=; device=; user=}
body : @{contentType=text; content=What's happening with Copilot Temporary Chat?}
attachments : {}
links : {}
mentions : {}
The Nature of Recycled Thoughts
I’m not sure when I will ever use a temporary chat, but I’m sure that some will find a use for this feature (apart from kicking the tires, that is). I understand that leaving no trace behind after a chat might be good in some situations. Who wants Copilot to recycle information discussed in a chat? Oh wait, isn’t recycling information what Generative AI’s all about?
Keep up to date with developments like what’s happening with Microsoft 365 Copilot by subscribing to the Office 365 for IT Pros eBook. Our monthly updates make sure that our subscribers understand the most important changes happening across Office 365.
pcolor plot: how to scale the smoothing differently in x and y directions
I have data of say this type (this is a simplified example):
A = [0 0 0 0 0 0
0 0 2 0 0 0
0 0 9 0 0 0
0 0 1 1 0 0
0 0 0 8 0 0
0 0 0 1 0 0
0 0 0 0 0 0];
If I do:
figure; pcolor(A); shading interp
then I get two distinct "peaks":
Now the thing is that I know from the property of the data (two-dimensional gas chromatography) that it is actually the same peak, it is normal that in each column the peak is moving by some pixels downward (in my simplified example here it is moving by two pixels, in the actual data it is even more). I would like to tell pcolor that distance in the x and y direction does not count the same (a sort of weighting maybe?), so that pcolor instead understands that these are one and the same "peak" and plot that as a single "peak". (This must also be directional: if the peak "goes down" in the next column (by approximately the right extent), then it should be considered the same peak. Essentially, instead of considering x and y distances, I want somehow to consider the distance at an angle)… Is there an option to do that easily?I have data of say this type (this is a simplified example):
A = [0 0 0 0 0 0
0 0 2 0 0 0
0 0 9 0 0 0
0 0 1 1 0 0
0 0 0 8 0 0
0 0 0 1 0 0
0 0 0 0 0 0];
If I do:
figure; pcolor(A); shading interp
then I get two distinct "peaks":
Now the thing is that I know from the property of the data (two-dimensional gas chromatography) that it is actually the same peak, it is normal that in each column the peak is moving by some pixels downward (in my simplified example here it is moving by two pixels, in the actual data it is even more). I would like to tell pcolor that distance in the x and y direction does not count the same (a sort of weighting maybe?), so that pcolor instead understands that these are one and the same "peak" and plot that as a single "peak". (This must also be directional: if the peak "goes down" in the next column (by approximately the right extent), then it should be considered the same peak. Essentially, instead of considering x and y distances, I want somehow to consider the distance at an angle)… Is there an option to do that easily? I have data of say this type (this is a simplified example):
A = [0 0 0 0 0 0
0 0 2 0 0 0
0 0 9 0 0 0
0 0 1 1 0 0
0 0 0 8 0 0
0 0 0 1 0 0
0 0 0 0 0 0];
If I do:
figure; pcolor(A); shading interp
then I get two distinct "peaks":
Now the thing is that I know from the property of the data (two-dimensional gas chromatography) that it is actually the same peak, it is normal that in each column the peak is moving by some pixels downward (in my simplified example here it is moving by two pixels, in the actual data it is even more). I would like to tell pcolor that distance in the x and y direction does not count the same (a sort of weighting maybe?), so that pcolor instead understands that these are one and the same "peak" and plot that as a single "peak". (This must also be directional: if the peak "goes down" in the next column (by approximately the right extent), then it should be considered the same peak. Essentially, instead of considering x and y distances, I want somehow to consider the distance at an angle)… Is there an option to do that easily? pcolor x-y distortion MATLAB Answers — New Questions
How to couple Simscape Thermal Liquid/Thermal models with an Electrical Subsystem in Simulink?
Hi, I am building a closed-loop heating system powered electically in Simulink with Simscape using:
Yellow blocks: Thermal Liquid (pipes, tank, valves)
Orange blocks: Thermal domain (to model heat losses, etc.)
Electrical subsystem: done in Simulink ( black blocks)
I am making the main "components" of the heating system: E-boiler, Heat Pump, Water Tank and heating demand, made of the different types of components mentioned above. The water gets heated at the heat pump and e-boiler, gets stored in the water tank and then goes to the heating demand.
I’m stuck on how to connect the electrical part to the thermal/thermal-liquid part. For example, the e-boiler in the thermal-liquid loop is being electrical powered then it heats the water that then flows though the whole heating system. Is this possible?
I was also considering for a while to remake the electrical part with Simscape electrical, thinking it would be easier to connect. Is that the case?
I tried looking for components that can do this directly, but couldn’t find any.
My experience with MATLAB/Simulink is mostly from school projects, so I’m sure I’m missing a lot of things.
Any tips or advice would be very helpful. Thank you!Hi, I am building a closed-loop heating system powered electically in Simulink with Simscape using:
Yellow blocks: Thermal Liquid (pipes, tank, valves)
Orange blocks: Thermal domain (to model heat losses, etc.)
Electrical subsystem: done in Simulink ( black blocks)
I am making the main "components" of the heating system: E-boiler, Heat Pump, Water Tank and heating demand, made of the different types of components mentioned above. The water gets heated at the heat pump and e-boiler, gets stored in the water tank and then goes to the heating demand.
I’m stuck on how to connect the electrical part to the thermal/thermal-liquid part. For example, the e-boiler in the thermal-liquid loop is being electrical powered then it heats the water that then flows though the whole heating system. Is this possible?
I was also considering for a while to remake the electrical part with Simscape electrical, thinking it would be easier to connect. Is that the case?
I tried looking for components that can do this directly, but couldn’t find any.
My experience with MATLAB/Simulink is mostly from school projects, so I’m sure I’m missing a lot of things.
Any tips or advice would be very helpful. Thank you! Hi, I am building a closed-loop heating system powered electically in Simulink with Simscape using:
Yellow blocks: Thermal Liquid (pipes, tank, valves)
Orange blocks: Thermal domain (to model heat losses, etc.)
Electrical subsystem: done in Simulink ( black blocks)
I am making the main "components" of the heating system: E-boiler, Heat Pump, Water Tank and heating demand, made of the different types of components mentioned above. The water gets heated at the heat pump and e-boiler, gets stored in the water tank and then goes to the heating demand.
I’m stuck on how to connect the electrical part to the thermal/thermal-liquid part. For example, the e-boiler in the thermal-liquid loop is being electrical powered then it heats the water that then flows though the whole heating system. Is this possible?
I was also considering for a while to remake the electrical part with Simscape electrical, thinking it would be easier to connect. Is that the case?
I tried looking for components that can do this directly, but couldn’t find any.
My experience with MATLAB/Simulink is mostly from school projects, so I’m sure I’m missing a lot of things.
Any tips or advice would be very helpful. Thank you! simscape, thermal-liquid MATLAB Answers — New Questions
Receiver Position Not Updated in Radar Example?
I am working through this example on passively sensing radar:
https://www.mathworks.com/help/phased/ug/signal-parameter-estimations-in-a-radar-warning-receiver.html
But I’m confused about how the txPulseTrain is received by the collector. It appears that they are injested by the collector at a single angle, rather than at changing angles over time:
[~, tgtAng] = rangeangle(radarPos,rwrPos);
yr = collector(txPulseTrain,tgtAng);
This may be an okay approximation, but it seems like a more accurate approach is to model the receiver at each timestep, in the loop within helperRWR.simulateTransmission.
Also, in the above code, the rwrPos variable above is equal to its original value when the pulses were emitted, not when they were collected, which seems like an oversight?
Please let me know if I’m missing something with both of these issues. Thank you for putting together the example!I am working through this example on passively sensing radar:
https://www.mathworks.com/help/phased/ug/signal-parameter-estimations-in-a-radar-warning-receiver.html
But I’m confused about how the txPulseTrain is received by the collector. It appears that they are injested by the collector at a single angle, rather than at changing angles over time:
[~, tgtAng] = rangeangle(radarPos,rwrPos);
yr = collector(txPulseTrain,tgtAng);
This may be an okay approximation, but it seems like a more accurate approach is to model the receiver at each timestep, in the loop within helperRWR.simulateTransmission.
Also, in the above code, the rwrPos variable above is equal to its original value when the pulses were emitted, not when they were collected, which seems like an oversight?
Please let me know if I’m missing something with both of these issues. Thank you for putting together the example! I am working through this example on passively sensing radar:
https://www.mathworks.com/help/phased/ug/signal-parameter-estimations-in-a-radar-warning-receiver.html
But I’m confused about how the txPulseTrain is received by the collector. It appears that they are injested by the collector at a single angle, rather than at changing angles over time:
[~, tgtAng] = rangeangle(radarPos,rwrPos);
yr = collector(txPulseTrain,tgtAng);
This may be an okay approximation, but it seems like a more accurate approach is to model the receiver at each timestep, in the loop within helperRWR.simulateTransmission.
Also, in the above code, the rwrPos variable above is equal to its original value when the pulses were emitted, not when they were collected, which seems like an oversight?
Please let me know if I’m missing something with both of these issues. Thank you for putting together the example! pulse MATLAB Answers — New Questions
Create Figure Without Displaying it
Hi,
I’d like to create a figure and save it in the background without displaying it.
I’ve heard of setting the "visibility" setting to "off", but the figure window still pops up.
I’d rather just have the figure be created and saved in its specified folder without having to see it.
Any way to do this?
Thanks,
JFHi,
I’d like to create a figure and save it in the background without displaying it.
I’ve heard of setting the "visibility" setting to "off", but the figure window still pops up.
I’d rather just have the figure be created and saved in its specified folder without having to see it.
Any way to do this?
Thanks,
JF Hi,
I’d like to create a figure and save it in the background without displaying it.
I’ve heard of setting the "visibility" setting to "off", but the figure window still pops up.
I’d rather just have the figure be created and saved in its specified folder without having to see it.
Any way to do this?
Thanks,
JF figure, visible, visibility, background, image, create MATLAB Answers — New Questions
Infinite scale: The architecture behind the Azure AI superfactory
Today, we are unveiling the next Fairwater site of Azure AI datacenters in Atlanta, Georgia. This purpose-built datacenter is connected to our first Fairwater site in Wisconsin, prior generations of AI supercomputers and the broader Azure global datacenter footprint to create the world’s first planet-scale AI superfactory. By packing computing power more densely than ever before, each Fairwater site is built to efficiently meet unprecedented demand for AI compute, push the frontiers of model intelligence and empower every person and organization on the planet to achieve more.
To meet this demand, we have reinvented how we design AI datacenters and the systems we run inside of them. Fairwater is a departure from the traditional cloud datacenter model and uses a single flat network that can integrate hundreds of thousands of the latest NVIDIA GB200 and GB300 GPUs into a massive supercomputer. These innovations are a product of decades of experience designing datacenters and networks, as well as learnings from supporting some of the largest AI training jobs on the planet.
While the Fairwater datacenter design is well suited for training the next generation of frontier models, it is also built with fungibility in mind. Training has evolved from a single monolithic job into a range of workloads with different requirements (such as pre-training, fine-tuning, reinforcement learning and synthetic data generation). Microsoft has deployed a dedicated AI WAN backbone to integrate each Fairwater site into a broader elastic system that enables dynamic allocation of diverse AI workloads and maximizes GPU utilization of the combined system.
Below, we walk through some of the exciting technical innovations that support Fairwater, from the way we build datacenters to the networking within and across the sites.
Maximum density of compute
Modern AI infrastructure is increasingly constrained by the laws of physics. The speed of light is now a key bottleneck in our ability to tightly integrate accelerators, compute and storage with performant latency. Fairwater is designed to maximize the density of compute to minimize latency within and across racks and maximize system performance.
One of the key levers for driving density is improving cooling at scale. AI servers in the Fairwater datacenters are connected to a facility-wide cooling system designed for longevity, with a closed-loop approach that reuses the liquid continuously after the initial fill with no evaporation. The water used in the initial fill is equivalent to what 20 homes consume in a year and is only replaced if water chemistry indicates it is needed (it is designed for 6-plus years), making it extremely efficient and sustainable.
Liquid-based cooling also provides much higher heat transfer, enabling us to maximize rack and row-level power (~140kW per rack, 1,360 kW per row) to pack compute as densely as possible inside the datacenter. State-of-the-art cooling also helps us maximize utilization of this dense compute in steady-state operations, enabling large training jobs to run performantly at high scale. After cycling through a system of cold plate paths across the GPU fleet, heat is dissipated by one of the largest chiller plants on the planet.

Another way we are driving compute density is with a two-story datacenter building design. Many AI workloads are very sensitive to latency, which means cable run lengths can meaningfully impact cluster performance. Every GPU in Fairwater is connected to every other GPU, so the two-story datacenter building approach allows for placement of racks in three dimensions to minimize cable lengths, which in turn improves latency, bandwidth, reliability and cost.

High-availability, low-cost power
We are pushing the envelope in serving this compute with cost-efficient, reliable power. The Atlanta site was selected with resilient utility power in mind and is capable of achieving 4×9 availability at 3×9 cost. By securing highly available grid power, we can also forgo traditional resiliency approaches for the GPU fleet (such as on-site generation, UPS systems and dual-corded distribution), driving cost savings for customers and faster time-to-market for Microsoft.
We have also worked with our industry partners to codevelop power-management solutions to mitigate power oscillations created by large scale jobs, a growing challenge in maintaining grid stability as AI demand scales. This includes a software-driven solution that introduces supplementary workloads during periods of reduced activity, a hardware-driven solution where the GPUs enforce their own power thresholds and an on-site energy storage solution to further mask power fluctuations without utilizing excess power.
Cutting-edge accelerators and networking systems
Fairwater’s world-class datacenter design is powered by purpose-built servers, cutting-edge AI accelerators and novel networking systems. Each Fairwater datacenter runs a single, coherent cluster of interconnected NVIDIA Blackwell GPUs, with an advanced network architecture that can scale reliably beyond traditional Clos network limits with current-gen switches (hundreds of thousands of GPUs on a single flat network). This required innovation across scale-up networking, scale-out networking and networking protocol.
In terms of scale-up, each rack of AI accelerators houses up to 72 NVIDIA Blackwell GPUs, connected via NVLink for ultra-low-latency communication within the rack. Blackwell accelerators provide the highest compute density available today, with support for low-precision number formats like FP4 to increase total FLOPS and enable efficient memory use. Each rack provides 1.8 TB of GPU-to-GPU bandwidth, with over 14 TB of pooled memory available to each GPU.

These racks then use scale-out networking to create pods and clusters that enable all GPUs to function as a single supercomputer with minimal hop counts. We achieve this with a two-tier, ethernet-based backend network that supports massive cluster sizes with 800 Gbps GPU-to-GPU connectivity. Relying on a broad ethernet ecosystem and SONiC (Software for Open Network in the Cloud – which is our own operating system for our network switches) also helps us avoid vendor lock-in and manage cost, as we can use commodity hardware instead of proprietary solutions.
Improvements across packet trimming, packet spray and high-frequency telemetry are core components of our optimized AI network. We are also working to enable deeper control and optimization of network routes. Together, these technologies deliver advanced congestion control, rapid detection and retransmission and agile load balancing, ensuring ultra-reliable, low-latency performance for modern AI workloads.
Planet scale
Even with these innovations, compute demands for large training jobs (now measured in trillions of parameters) are quickly outpacing the power and space constraints of a single facility. To serve these needs, we have built a dedicated AI WAN optical network to extend Fairwater’s scale-up and scale-out networks. Leveraging our scale and decades of hyperscale expertise, we delivered over 120,000 new fiber miles across the US last year — expanding AI network reach and reliability nationwide.
With this high-performance, high-resiliency backbone, we can directly connect different generations of supercomputers into an AI superfactory that exceeds the capabilities of a single site across geographically diverse locations. This empowers AI developers to tap our broader network of Azure AI datacenters, segmenting traffic based on their needs across scale-up and scale-out networks within a site, as well as across sites via the continent spanning AI WAN.
This is a meaningful departure from the past, where all traffic had to ride the scale-out network regardless of the requirements of the workload. Not only does it provide customers with fit-for-purpose networking at a more granular level, it also helps create fungibility to maximize the flexibility and utilization of our infrastructure.
Putting it all together
The new Fairwater site in Atlanta represents the next leap in the Azure AI infrastructure and reflects our experience running the largest AI training jobs on the planet. It combines breakthrough innovations in compute density, sustainability and networking systems to efficiently serve the massive demand for computational power we are seeing. It also integrates deeply with other AI datacenters and the broader Azure platform to form the world’s first AI superfactory. Together, these innovations provide a flexible, fit-for-purpose infrastructure that can serve the full spectrum of modern AI workloads and empower every person and organization on the planet to achieve more. For our customers, this means easier integration of AI into every workflow and the ability to create innovative AI solutions that were previously unattainable.
Find out more about how Microsoft Azure can help you integrate AI to streamline and strengthen development lifecycles here.
Scott Guthrie is responsible for hyperscale cloud computing solutions and services including Azure, Microsoft’s cloud computing platform, generative AI solutions, data platforms and information and cybersecurity. These platforms and services help organizations worldwide solve urgent challenges and drive long-term transformation.
The post Infinite scale: The architecture behind the Azure AI superfactory appeared first on The Official Microsoft Blog.
Today, we are unveiling the next Fairwater site of Azure AI datacenters in Atlanta, Georgia. This purpose-built datacenter is connected to our first Fairwater site in Wisconsin, prior generations of AI supercomputers and the broader Azure global datacenter footprint to create the world’s first planet-scale AI superfactory. By packing computing power more densely than ever…
The post Infinite scale: The architecture behind the Azure AI superfactory appeared first on The Official Microsoft Blog.
Read More
The Simulation is link is not working
I am trying to run this simulation
https://uk.mathworks.com/help/sps/ug/24-hour-simulation-of-a-vehicle-to-grid-v2g-system.html
But it is giving me ythe following errors:
openExample(‘simscapeelectricalsps/VehicletoGridSystemExample’)
Error using websave (line 107)
The server returned the status 404 with message "Not Found" in response to the request to URL
https://www.mathworks.com/help/releases/R2025b/exampledata/simscapeelectricalsps/examples.xml.
Error in
matlab.internal.examples.copyFromWeb (line 28)
result = websave(target, url, options);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in
matlab.internal.examples.findExamplesXml (line 32)
found = matlab.internal.examples.copyFromWeb(component, ”, ‘examples.xml’, examplesXml, false);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in
findExample (line 14)
examplesXml = matlab.internal.examples.findExamplesXml(component,arg);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in
openExample (line 42)
metadata = findExample(exampleId);
Any leads?I am trying to run this simulation
https://uk.mathworks.com/help/sps/ug/24-hour-simulation-of-a-vehicle-to-grid-v2g-system.html
But it is giving me ythe following errors:
openExample(‘simscapeelectricalsps/VehicletoGridSystemExample’)
Error using websave (line 107)
The server returned the status 404 with message "Not Found" in response to the request to URL
https://www.mathworks.com/help/releases/R2025b/exampledata/simscapeelectricalsps/examples.xml.
Error in
matlab.internal.examples.copyFromWeb (line 28)
result = websave(target, url, options);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in
matlab.internal.examples.findExamplesXml (line 32)
found = matlab.internal.examples.copyFromWeb(component, ”, ‘examples.xml’, examplesXml, false);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in
findExample (line 14)
examplesXml = matlab.internal.examples.findExamplesXml(component,arg);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in
openExample (line 42)
metadata = findExample(exampleId);
Any leads? I am trying to run this simulation
https://uk.mathworks.com/help/sps/ug/24-hour-simulation-of-a-vehicle-to-grid-v2g-system.html
But it is giving me ythe following errors:
openExample(‘simscapeelectricalsps/VehicletoGridSystemExample’)
Error using websave (line 107)
The server returned the status 404 with message "Not Found" in response to the request to URL
https://www.mathworks.com/help/releases/R2025b/exampledata/simscapeelectricalsps/examples.xml.
Error in
matlab.internal.examples.copyFromWeb (line 28)
result = websave(target, url, options);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in
matlab.internal.examples.findExamplesXml (line 32)
found = matlab.internal.examples.copyFromWeb(component, ”, ‘examples.xml’, examplesXml, false);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in
findExample (line 14)
examplesXml = matlab.internal.examples.findExamplesXml(component,arg);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in
openExample (line 42)
metadata = findExample(exampleId);
Any leads? v2g MATLAB Answers — New Questions
I keep getting the same error when using readtable or readmatrix: Dimensions of arrays being concatenated are not consistent.
A = readtable(‘data_file.csv’)
A = readmatrix(‘data_file.csv’)
When I tell you I have tried everything. Uninstalled and reinstalled Matlab twice. Cleared my cache of all matlab knowledge. I cannot read in data from a csv or text file using readtable and readmatrix for the life of me. Somebody please help. I have tried doing the same exact things on other’s computers and it works perfectly. I am convinced my readtable and readmatrix functions are broken.A = readtable(‘data_file.csv’)
A = readmatrix(‘data_file.csv’)
When I tell you I have tried everything. Uninstalled and reinstalled Matlab twice. Cleared my cache of all matlab knowledge. I cannot read in data from a csv or text file using readtable and readmatrix for the life of me. Somebody please help. I have tried doing the same exact things on other’s computers and it works perfectly. I am convinced my readtable and readmatrix functions are broken. A = readtable(‘data_file.csv’)
A = readmatrix(‘data_file.csv’)
When I tell you I have tried everything. Uninstalled and reinstalled Matlab twice. Cleared my cache of all matlab knowledge. I cannot read in data from a csv or text file using readtable and readmatrix for the life of me. Somebody please help. I have tried doing the same exact things on other’s computers and it works perfectly. I am convinced my readtable and readmatrix functions are broken. readtable, readmatrix MATLAB Answers — New Questions
Script doesn’t show
I was working on an assignment on MATLAB and wrote a function script in the editor and saved it as .m file. The next day I open the file and the script was gone. This is the second time it has happened. How do I recover the script?I was working on an assignment on MATLAB and wrote a function script in the editor and saved it as .m file. The next day I open the file and the script was gone. This is the second time it has happened. How do I recover the script? I was working on an assignment on MATLAB and wrote a function script in the editor and saved it as .m file. The next day I open the file and the script was gone. This is the second time it has happened. How do I recover the script? script, editor, deleted MATLAB Answers — New Questions
How can I syncronize two PWM on STM32 using the Embedded Coder Support Package
I need to generate two PWM signals with variable Duty cycle controlled by reading from two ADC, and that is simple. The problem is that I need to introduce a fixed phase difference between the two signals. I tryed using triggered subsystems, but it does not seem to work. The two PWM are on two different timers, should I use two different channels of the same timer ? Should I use a third timer in a master slave configuration ?I need to generate two PWM signals with variable Duty cycle controlled by reading from two ADC, and that is simple. The problem is that I need to introduce a fixed phase difference between the two signals. I tryed using triggered subsystems, but it does not seem to work. The two PWM are on two different timers, should I use two different channels of the same timer ? Should I use a third timer in a master slave configuration ? I need to generate two PWM signals with variable Duty cycle controlled by reading from two ADC, and that is simple. The problem is that I need to introduce a fixed phase difference between the two signals. I tryed using triggered subsystems, but it does not seem to work. The two PWM are on two different timers, should I use two different channels of the same timer ? Should I use a third timer in a master slave configuration ? stm32, pwm, synchronization MATLAB Answers — New Questions
In R2025a, how to add Additional Fonts?
Before R2025a, we can install the font in the jrelibfonts folder where Java® software is installed on your system, for example, C:Program FilesMATLABR2024asysjavajrewin64jrelibfonts. Then, use the font in MATLAB by selecting it in the MATLAB > Fonts settings.
But in R2025a, how to add Additional Fonts. Because it seems that the aforementioned method has become ineffective.Before R2025a, we can install the font in the jrelibfonts folder where Java® software is installed on your system, for example, C:Program FilesMATLABR2024asysjavajrewin64jrelibfonts. Then, use the font in MATLAB by selecting it in the MATLAB > Fonts settings.
But in R2025a, how to add Additional Fonts. Because it seems that the aforementioned method has become ineffective. Before R2025a, we can install the font in the jrelibfonts folder where Java® software is installed on your system, for example, C:Program FilesMATLABR2024asysjavajrewin64jrelibfonts. Then, use the font in MATLAB by selecting it in the MATLAB > Fonts settings.
But in R2025a, how to add Additional Fonts. Because it seems that the aforementioned method has become ineffective. font, code MATLAB Answers — New Questions









