Month: June 2025
nntool problem
I was trying to train the nntool with a feature vector of the no.of black pixels in a box in an image divided into 5*5 boxes where there is 5000 images for the digits from 0 to 9 .
so the input matrix for training is 25*50000
the target matrix dimensions is (as I think )10*50000
with a pattern of the following form:
target=zeros(25,50000);
target(1,1:5000)=ones(1,5000);%this correspond to zero
target(2,5001:10000)=ones(1,5000);%this corresponds to one
and so on
so my questions are:
are the dimensions of the target matrix correct?
and if so (if correct) i got an error message:
??? Insufficient number of outputs from right hand side of equal sign to satisfy assignment.
Error in ==> nntool at 681
[errmsg,errid] = me.message;
which I know from previous question on this forum that it is an out of memory error.
I’m having Matlab r2009 a,4GB RAM and 2.00 GHZ Intel core 2Duo .
so please what should i do?I was trying to train the nntool with a feature vector of the no.of black pixels in a box in an image divided into 5*5 boxes where there is 5000 images for the digits from 0 to 9 .
so the input matrix for training is 25*50000
the target matrix dimensions is (as I think )10*50000
with a pattern of the following form:
target=zeros(25,50000);
target(1,1:5000)=ones(1,5000);%this correspond to zero
target(2,5001:10000)=ones(1,5000);%this corresponds to one
and so on
so my questions are:
are the dimensions of the target matrix correct?
and if so (if correct) i got an error message:
??? Insufficient number of outputs from right hand side of equal sign to satisfy assignment.
Error in ==> nntool at 681
[errmsg,errid] = me.message;
which I know from previous question on this forum that it is an out of memory error.
I’m having Matlab r2009 a,4GB RAM and 2.00 GHZ Intel core 2Duo .
so please what should i do? I was trying to train the nntool with a feature vector of the no.of black pixels in a box in an image divided into 5*5 boxes where there is 5000 images for the digits from 0 to 9 .
so the input matrix for training is 25*50000
the target matrix dimensions is (as I think )10*50000
with a pattern of the following form:
target=zeros(25,50000);
target(1,1:5000)=ones(1,5000);%this correspond to zero
target(2,5001:10000)=ones(1,5000);%this corresponds to one
and so on
so my questions are:
are the dimensions of the target matrix correct?
and if so (if correct) i got an error message:
??? Insufficient number of outputs from right hand side of equal sign to satisfy assignment.
Error in ==> nntool at 681
[errmsg,errid] = me.message;
which I know from previous question on this forum that it is an out of memory error.
I’m having Matlab r2009 a,4GB RAM and 2.00 GHZ Intel core 2Duo .
so please what should i do? nntool taget matrix MATLAB Answers — New Questions
How to use neural networks toolbox on simulink for controlling a dynamic plant of quadcopter that is using 6DoF Euler Angles Simulink block
Hello all,
I have done a model for controlling roll, pitch, yaw and Z of a quadcopter, I did it using the 6DoF Euler Angles Simulink´s Block, and I have solved the controll both, with using fuzzy controllers and also with a PID.
Now I am trying to use neural networks for control it, and I have tryed the control blocks (Model-Reference and predictive controller), but I don´t know how to use them for this scenario on a propper way, or how I should redo the plant. Because until now, with the other controllers I pick each of the outputs and I do deacoupled control for each one and join them again.
I will be very thanked for any help, thank you.
Regards.Hello all,
I have done a model for controlling roll, pitch, yaw and Z of a quadcopter, I did it using the 6DoF Euler Angles Simulink´s Block, and I have solved the controll both, with using fuzzy controllers and also with a PID.
Now I am trying to use neural networks for control it, and I have tryed the control blocks (Model-Reference and predictive controller), but I don´t know how to use them for this scenario on a propper way, or how I should redo the plant. Because until now, with the other controllers I pick each of the outputs and I do deacoupled control for each one and join them again.
I will be very thanked for any help, thank you.
Regards. Hello all,
I have done a model for controlling roll, pitch, yaw and Z of a quadcopter, I did it using the 6DoF Euler Angles Simulink´s Block, and I have solved the controll both, with using fuzzy controllers and also with a PID.
Now I am trying to use neural networks for control it, and I have tryed the control blocks (Model-Reference and predictive controller), but I don´t know how to use them for this scenario on a propper way, or how I should redo the plant. Because until now, with the other controllers I pick each of the outputs and I do deacoupled control for each one and join them again.
I will be very thanked for any help, thank you.
Regards. neural networks control, 6dof euler angles controller MATLAB Answers — New Questions
How to plot specific rows from table
I am trying to plot data based on the specimen id, I have two types of speciments. 0.12C and 0.07C Steel, as seen in the photo here is the table.
I would like to plot the data with different markers for each Plate ID, but i can’t seem to figure out how to plot them. I have tried calling out the rows and varible when plotting but it won’t work.
Here is how i load the data:
Table4 = readtable(‘Grain Size.xlsx’,’sheet’,’KIC Master’,’VariableNamingRule’,’preserve’);
Here is how I am trying to plot:
plot(ax2,Table4(1:7,"Ferrite Grain Size-1/2 (in.)"),Table4(1:7,"Provisional To °F"),’Color’,’black’,’LineStyle’,’none’,’Marker’,’x’,’MarkerEdgeColor’,’black’,’MarkerFaceColor’,’black’);
plot(ax2,Table4(8:11,"Ferrite Grain Size-1/2 (in.)"),Table4(8:11,"Provisional To °F"),’Color’,’black’,’LineStyle’,’none’,’Marker’,’S’,’MarkerEdgeColor’,’black’,’MarkerFaceColor’,’black’);
I get this error:
Error using plot
Invalid subscript for Y. A table variable subscript must be a numeric array containing real positive integers, a logical array, a character vector, a string array, a cell
array of character vectors, or a pattern scalar used to match variable names.Error using plot
Invalid subscript for Y. A table variable subscript must be a numeric array containing real positive integers, a logical array, a character vector, a string array, a cell
array of character vectors, or a pattern scalar used to match variable names.
What am I missing here? The only way i have gotten this kind of thing to work in the past is by creating seaperate tables for each specimen type then plotting each table individually. I would like to at least keep them in the same table and be able to call our which rows I want to plot.
Thank You!I am trying to plot data based on the specimen id, I have two types of speciments. 0.12C and 0.07C Steel, as seen in the photo here is the table.
I would like to plot the data with different markers for each Plate ID, but i can’t seem to figure out how to plot them. I have tried calling out the rows and varible when plotting but it won’t work.
Here is how i load the data:
Table4 = readtable(‘Grain Size.xlsx’,’sheet’,’KIC Master’,’VariableNamingRule’,’preserve’);
Here is how I am trying to plot:
plot(ax2,Table4(1:7,"Ferrite Grain Size-1/2 (in.)"),Table4(1:7,"Provisional To °F"),’Color’,’black’,’LineStyle’,’none’,’Marker’,’x’,’MarkerEdgeColor’,’black’,’MarkerFaceColor’,’black’);
plot(ax2,Table4(8:11,"Ferrite Grain Size-1/2 (in.)"),Table4(8:11,"Provisional To °F"),’Color’,’black’,’LineStyle’,’none’,’Marker’,’S’,’MarkerEdgeColor’,’black’,’MarkerFaceColor’,’black’);
I get this error:
Error using plot
Invalid subscript for Y. A table variable subscript must be a numeric array containing real positive integers, a logical array, a character vector, a string array, a cell
array of character vectors, or a pattern scalar used to match variable names.Error using plot
Invalid subscript for Y. A table variable subscript must be a numeric array containing real positive integers, a logical array, a character vector, a string array, a cell
array of character vectors, or a pattern scalar used to match variable names.
What am I missing here? The only way i have gotten this kind of thing to work in the past is by creating seaperate tables for each specimen type then plotting each table individually. I would like to at least keep them in the same table and be able to call our which rows I want to plot.
Thank You! I am trying to plot data based on the specimen id, I have two types of speciments. 0.12C and 0.07C Steel, as seen in the photo here is the table.
I would like to plot the data with different markers for each Plate ID, but i can’t seem to figure out how to plot them. I have tried calling out the rows and varible when plotting but it won’t work.
Here is how i load the data:
Table4 = readtable(‘Grain Size.xlsx’,’sheet’,’KIC Master’,’VariableNamingRule’,’preserve’);
Here is how I am trying to plot:
plot(ax2,Table4(1:7,"Ferrite Grain Size-1/2 (in.)"),Table4(1:7,"Provisional To °F"),’Color’,’black’,’LineStyle’,’none’,’Marker’,’x’,’MarkerEdgeColor’,’black’,’MarkerFaceColor’,’black’);
plot(ax2,Table4(8:11,"Ferrite Grain Size-1/2 (in.)"),Table4(8:11,"Provisional To °F"),’Color’,’black’,’LineStyle’,’none’,’Marker’,’S’,’MarkerEdgeColor’,’black’,’MarkerFaceColor’,’black’);
I get this error:
Error using plot
Invalid subscript for Y. A table variable subscript must be a numeric array containing real positive integers, a logical array, a character vector, a string array, a cell
array of character vectors, or a pattern scalar used to match variable names.Error using plot
Invalid subscript for Y. A table variable subscript must be a numeric array containing real positive integers, a logical array, a character vector, a string array, a cell
array of character vectors, or a pattern scalar used to match variable names.
What am I missing here? The only way i have gotten this kind of thing to work in the past is by creating seaperate tables for each specimen type then plotting each table individually. I would like to at least keep them in the same table and be able to call our which rows I want to plot.
Thank You! plotting MATLAB Answers — New Questions
how to build array using matlab.graphics.chart.primitive.Line’ property
Look this example:
selected = findobj(allLines,’Type’,’line’,’LineWidth’,0.5);
[cc]=selected;
selected 13×1
xx selected 13×1
this is ok
now i try to use selected property:
selected.Color
it give me 13×1 color!
now i try to record information in array but it’s not possible
[cc]=selected.Color
now i see cc have only the first element!
can i do it?Look this example:
selected = findobj(allLines,’Type’,’line’,’LineWidth’,0.5);
[cc]=selected;
selected 13×1
xx selected 13×1
this is ok
now i try to use selected property:
selected.Color
it give me 13×1 color!
now i try to record information in array but it’s not possible
[cc]=selected.Color
now i see cc have only the first element!
can i do it? Look this example:
selected = findobj(allLines,’Type’,’line’,’LineWidth’,0.5);
[cc]=selected;
selected 13×1
xx selected 13×1
this is ok
now i try to use selected property:
selected.Color
it give me 13×1 color!
now i try to record information in array but it’s not possible
[cc]=selected.Color
now i see cc have only the first element!
can i do it? how to build array using matlab.graphics.chart. MATLAB Answers — New Questions
Problems running docker image from linux x11 host
Hi everyone
I am a linux user and i have an arch installation running with X11 desktop management on my pc. I always struggled to run matlab on my laptop (interface wont open and stuff like that) since arch is not officially supported and i deferred to using the online version. After a bit i fixed the problems and started using the desktop version without issue up untill the last month when the glibc packag updated to the 2.4.1 while matlab needs the 2.4.0 and everythng broke again. Tired of all these problems i decided to opt for the dockerized version, i downloded the official ubuntu 24.04 docker from the docker hub and as said in the website i ran the following commands:
$ xhost +
$ docker run -it –rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro –shm-size=512M mathworks/matlab:r2025a
and the terminal is hanging and no interface is opening. I thought it might be a licencing problem but my licence is given from my university and i dont know how to retreive the licence file. Can someone help me fix the problem (and identify it if its different from my suppositions)?
Also extra quick question, after solving this problem how do i download add-ons and libs? Same as in the desktop version?
Thanks in advance :)Hi everyone
I am a linux user and i have an arch installation running with X11 desktop management on my pc. I always struggled to run matlab on my laptop (interface wont open and stuff like that) since arch is not officially supported and i deferred to using the online version. After a bit i fixed the problems and started using the desktop version without issue up untill the last month when the glibc packag updated to the 2.4.1 while matlab needs the 2.4.0 and everythng broke again. Tired of all these problems i decided to opt for the dockerized version, i downloded the official ubuntu 24.04 docker from the docker hub and as said in the website i ran the following commands:
$ xhost +
$ docker run -it –rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro –shm-size=512M mathworks/matlab:r2025a
and the terminal is hanging and no interface is opening. I thought it might be a licencing problem but my licence is given from my university and i dont know how to retreive the licence file. Can someone help me fix the problem (and identify it if its different from my suppositions)?
Also extra quick question, after solving this problem how do i download add-ons and libs? Same as in the desktop version?
Thanks in advance 🙂 Hi everyone
I am a linux user and i have an arch installation running with X11 desktop management on my pc. I always struggled to run matlab on my laptop (interface wont open and stuff like that) since arch is not officially supported and i deferred to using the online version. After a bit i fixed the problems and started using the desktop version without issue up untill the last month when the glibc packag updated to the 2.4.1 while matlab needs the 2.4.0 and everythng broke again. Tired of all these problems i decided to opt for the dockerized version, i downloded the official ubuntu 24.04 docker from the docker hub and as said in the website i ran the following commands:
$ xhost +
$ docker run -it –rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro –shm-size=512M mathworks/matlab:r2025a
and the terminal is hanging and no interface is opening. I thought it might be a licencing problem but my licence is given from my university and i dont know how to retreive the licence file. Can someone help me fix the problem (and identify it if its different from my suppositions)?
Also extra quick question, after solving this problem how do i download add-ons and libs? Same as in the desktop version?
Thanks in advance 🙂 docker, matlab, linux MATLAB Answers — New Questions
Why Doesn’t “clear all” Clear the Assumptions from the Symbolic Engine?
According to the doc page assumptions
To clear all objects in the MATLAB workspace and close the Symbolic Math Toolbox™ engine associated with the MATLAB workspace resetting all its assumptions, use this command
clear all
Comment: I think the doc page would be clearer if that clause replaced "resetting" with "clearing".
But
syms x
assume(x < 1)
assumptions
clear all
assumptions
I’m quite certain that in previous versions (like 2022a?) the command "clear all" did clear the assumptions from the engine.
Is this a relatively-newly-introduced bug or am I misremembering/misunderstanding the situation?
Answers is running 2024b, I see the same behavior on 2024a.According to the doc page assumptions
To clear all objects in the MATLAB workspace and close the Symbolic Math Toolbox™ engine associated with the MATLAB workspace resetting all its assumptions, use this command
clear all
Comment: I think the doc page would be clearer if that clause replaced "resetting" with "clearing".
But
syms x
assume(x < 1)
assumptions
clear all
assumptions
I’m quite certain that in previous versions (like 2022a?) the command "clear all" did clear the assumptions from the engine.
Is this a relatively-newly-introduced bug or am I misremembering/misunderstanding the situation?
Answers is running 2024b, I see the same behavior on 2024a. According to the doc page assumptions
To clear all objects in the MATLAB workspace and close the Symbolic Math Toolbox™ engine associated with the MATLAB workspace resetting all its assumptions, use this command
clear all
Comment: I think the doc page would be clearer if that clause replaced "resetting" with "clearing".
But
syms x
assume(x < 1)
assumptions
clear all
assumptions
I’m quite certain that in previous versions (like 2022a?) the command "clear all" did clear the assumptions from the engine.
Is this a relatively-newly-introduced bug or am I misremembering/misunderstanding the situation?
Answers is running 2024b, I see the same behavior on 2024a. asusmptions, clear MATLAB Answers — New Questions
How to save (serialize) MATLAB variables to a byte string?
Ideally this would be using the same format as the save command (.mat file), but instead of writing to disk directly, it would write it to data in memory.
The reason is I need to access the saved data directly to implement a custom hashing method on the variable, and have no need to write it to disk in order to achieve this, and would rather not go through the administratively-heavy option of creating a ram disk through ramfs.
I’d actually be OK with a version-change of MATLAB invalidating the object in my particular case (the idea being that any software updates may influence results, however unlikely).
Assuming full .mat support is not an option, I still need fairly general support, which is why the (intermediate) output of save seems like a good option: e.g., nested structs, cells, arrays. I could probably do without Java objects in this particular case.Ideally this would be using the same format as the save command (.mat file), but instead of writing to disk directly, it would write it to data in memory.
The reason is I need to access the saved data directly to implement a custom hashing method on the variable, and have no need to write it to disk in order to achieve this, and would rather not go through the administratively-heavy option of creating a ram disk through ramfs.
I’d actually be OK with a version-change of MATLAB invalidating the object in my particular case (the idea being that any software updates may influence results, however unlikely).
Assuming full .mat support is not an option, I still need fairly general support, which is why the (intermediate) output of save seems like a good option: e.g., nested structs, cells, arrays. I could probably do without Java objects in this particular case. Ideally this would be using the same format as the save command (.mat file), but instead of writing to disk directly, it would write it to data in memory.
The reason is I need to access the saved data directly to implement a custom hashing method on the variable, and have no need to write it to disk in order to achieve this, and would rather not go through the administratively-heavy option of creating a ram disk through ramfs.
I’d actually be OK with a version-change of MATLAB invalidating the object in my particular case (the idea being that any software updates may influence results, however unlikely).
Assuming full .mat support is not an option, I still need fairly general support, which is why the (intermediate) output of save seems like a good option: e.g., nested structs, cells, arrays. I could probably do without Java objects in this particular case. save, serialization, pickling, hashing, undocumented, serialize MATLAB Answers — New Questions
Cannot set text to UIaxes because cannot set position since xaxis is made of datetime
I have an application that plots time against pressure values. Time is of the format datetime. I plot using these lines of code.
plot(app.UIAxes_9,pressureTime,Pressure);
app.UIAxes_9.XGrid ="on";
app.UIAxes_9.XMinorGrid ="on";
app.UIAxes_9.YGrid ="on";
app.UIAxes_9.YMinorGrid ="on";
app.UIAxes_9.LineWidth = 2;
app.UIAxes_9.XLabel.String = ‘Time&Date’;
app.UIAxes_9.XLabel.FontSize = 12;
app.UIAxes_9.XLabel.FontWeight ="bold";
app.UIAxes_9.YLabel.String = ‘Pressure[bar]’;
app.UIAxes_9.YLabel.FontSize = 12;
app.UIAxes_9.YLabel.FontWeight ="bold";
app.UIAxes_9.Title.String = ‘Pressure Cycle’;
app.UIAxes_9.Title.FontSize = 14;
app.UIAxes_9.Title.FontWeight ="bold";
[maxValue, maxIndex] = max(Pressure);
maxY = Pressure(maxIndex);
maxX = pressureTime(maxIndex);
text1 = ‘Max Pressure[bar]: ‘;
text2 = num2str(maxValue);
finalText = strcat(text1,text2);
text(‘Parent’,app.UIAxes_9,’String’,finalText,’HorizontalAlignment’, ‘left’,’VerticalAlignment’,’bottom’,’Position’,[maxX maxY]);
The problem is the last line, where I tried to put a text on the UIAxes. That is
text(‘Parent’,app.UIAxes_9,’String’,finalText,’HorizontalAlignment’, ‘left’,’VerticalAlignment’,’bottom’,’Position’,[maxX maxY]);
where I tried to set the position of the text at maxX and maxY. But [maxX maxY] is giving me an error :
Error using datetime/horzcat (line 1468)
All inputs must be datetimes or date/time character vectors or date/time strings.
So what I understood is you cant combine a double and datetime to form an array. So how can I do this for a app.UIaxes. For a normal plot it is easy, but here I need for app.UIaxes. How to do this. Thank you.I have an application that plots time against pressure values. Time is of the format datetime. I plot using these lines of code.
plot(app.UIAxes_9,pressureTime,Pressure);
app.UIAxes_9.XGrid ="on";
app.UIAxes_9.XMinorGrid ="on";
app.UIAxes_9.YGrid ="on";
app.UIAxes_9.YMinorGrid ="on";
app.UIAxes_9.LineWidth = 2;
app.UIAxes_9.XLabel.String = ‘Time&Date’;
app.UIAxes_9.XLabel.FontSize = 12;
app.UIAxes_9.XLabel.FontWeight ="bold";
app.UIAxes_9.YLabel.String = ‘Pressure[bar]’;
app.UIAxes_9.YLabel.FontSize = 12;
app.UIAxes_9.YLabel.FontWeight ="bold";
app.UIAxes_9.Title.String = ‘Pressure Cycle’;
app.UIAxes_9.Title.FontSize = 14;
app.UIAxes_9.Title.FontWeight ="bold";
[maxValue, maxIndex] = max(Pressure);
maxY = Pressure(maxIndex);
maxX = pressureTime(maxIndex);
text1 = ‘Max Pressure[bar]: ‘;
text2 = num2str(maxValue);
finalText = strcat(text1,text2);
text(‘Parent’,app.UIAxes_9,’String’,finalText,’HorizontalAlignment’, ‘left’,’VerticalAlignment’,’bottom’,’Position’,[maxX maxY]);
The problem is the last line, where I tried to put a text on the UIAxes. That is
text(‘Parent’,app.UIAxes_9,’String’,finalText,’HorizontalAlignment’, ‘left’,’VerticalAlignment’,’bottom’,’Position’,[maxX maxY]);
where I tried to set the position of the text at maxX and maxY. But [maxX maxY] is giving me an error :
Error using datetime/horzcat (line 1468)
All inputs must be datetimes or date/time character vectors or date/time strings.
So what I understood is you cant combine a double and datetime to form an array. So how can I do this for a app.UIaxes. For a normal plot it is easy, but here I need for app.UIaxes. How to do this. Thank you. I have an application that plots time against pressure values. Time is of the format datetime. I plot using these lines of code.
plot(app.UIAxes_9,pressureTime,Pressure);
app.UIAxes_9.XGrid ="on";
app.UIAxes_9.XMinorGrid ="on";
app.UIAxes_9.YGrid ="on";
app.UIAxes_9.YMinorGrid ="on";
app.UIAxes_9.LineWidth = 2;
app.UIAxes_9.XLabel.String = ‘Time&Date’;
app.UIAxes_9.XLabel.FontSize = 12;
app.UIAxes_9.XLabel.FontWeight ="bold";
app.UIAxes_9.YLabel.String = ‘Pressure[bar]’;
app.UIAxes_9.YLabel.FontSize = 12;
app.UIAxes_9.YLabel.FontWeight ="bold";
app.UIAxes_9.Title.String = ‘Pressure Cycle’;
app.UIAxes_9.Title.FontSize = 14;
app.UIAxes_9.Title.FontWeight ="bold";
[maxValue, maxIndex] = max(Pressure);
maxY = Pressure(maxIndex);
maxX = pressureTime(maxIndex);
text1 = ‘Max Pressure[bar]: ‘;
text2 = num2str(maxValue);
finalText = strcat(text1,text2);
text(‘Parent’,app.UIAxes_9,’String’,finalText,’HorizontalAlignment’, ‘left’,’VerticalAlignment’,’bottom’,’Position’,[maxX maxY]);
The problem is the last line, where I tried to put a text on the UIAxes. That is
text(‘Parent’,app.UIAxes_9,’String’,finalText,’HorizontalAlignment’, ‘left’,’VerticalAlignment’,’bottom’,’Position’,[maxX maxY]);
where I tried to set the position of the text at maxX and maxY. But [maxX maxY] is giving me an error :
Error using datetime/horzcat (line 1468)
All inputs must be datetimes or date/time character vectors or date/time strings.
So what I understood is you cant combine a double and datetime to form an array. So how can I do this for a app.UIaxes. For a normal plot it is easy, but here I need for app.UIaxes. How to do this. Thank you. matlab, appdesigner MATLAB Answers — New Questions
How do I locate the crash dump files generated by MATLAB?
MATLAB encountered a crash. How do I locate the crash log files on my computer. MATLAB encountered a crash. How do I locate the crash log files on my computer. MATLAB encountered a crash. How do I locate the crash log files on my computer. MATLAB Answers — New Questions
Why does MATLAB Production Server (MPS) take more time to process the first request compared to the subsequent requests?
When I send my first request to the MATLAB Production Server in MATLAB R2019a, it takes ~30 seconds to process it. However, the subsequent requests take less than a second to process. Why is this behavior encountered?When I send my first request to the MATLAB Production Server in MATLAB R2019a, it takes ~30 seconds to process it. However, the subsequent requests take less than a second to process. Why is this behavior encountered? When I send my first request to the MATLAB Production Server in MATLAB R2019a, it takes ~30 seconds to process it. However, the subsequent requests take less than a second to process. Why is this behavior encountered? mps, process, workers, startup MATLAB Answers — New Questions
Control of dehumidifier with system level heat exchanger
Hey guys,
i’m trying to add controls to the attached model. I’d like to control the flow-rate of the 2 flow-rate-sources in order to change the heat/cold transfered to the MA-Network. When doing so manually there’s not the change i expected, so i figured, that i also need to change the nominal rate of heat-transfer of the system-level-heat-exchanger accordingly to the flow-rate. Also when the flow-rate is too low, i get an error. I assume it’s because the model thinks of the rate of heat-transfer as constant, so by chaning the flow-rate deltaT becomes incredibly high.
I tried to do so with a Matlab script, that influenced the parameters over time. But the graphs showed me this doesn’t work like inteded. And i’ve found this, saying basicly it’s not possible to add the controls i had in mind, am i wrong?
https://de.mathworks.com/help/simscape/ug/how-simscape-run-time-parameters-differs-from-simulink.html
Can somebody help me please? Maybe i’m just not seeing the obvious solution here 😀
Cheers,Hey guys,
i’m trying to add controls to the attached model. I’d like to control the flow-rate of the 2 flow-rate-sources in order to change the heat/cold transfered to the MA-Network. When doing so manually there’s not the change i expected, so i figured, that i also need to change the nominal rate of heat-transfer of the system-level-heat-exchanger accordingly to the flow-rate. Also when the flow-rate is too low, i get an error. I assume it’s because the model thinks of the rate of heat-transfer as constant, so by chaning the flow-rate deltaT becomes incredibly high.
I tried to do so with a Matlab script, that influenced the parameters over time. But the graphs showed me this doesn’t work like inteded. And i’ve found this, saying basicly it’s not possible to add the controls i had in mind, am i wrong?
https://de.mathworks.com/help/simscape/ug/how-simscape-run-time-parameters-differs-from-simulink.html
Can somebody help me please? Maybe i’m just not seeing the obvious solution here 😀
Cheers, Hey guys,
i’m trying to add controls to the attached model. I’d like to control the flow-rate of the 2 flow-rate-sources in order to change the heat/cold transfered to the MA-Network. When doing so manually there’s not the change i expected, so i figured, that i also need to change the nominal rate of heat-transfer of the system-level-heat-exchanger accordingly to the flow-rate. Also when the flow-rate is too low, i get an error. I assume it’s because the model thinks of the rate of heat-transfer as constant, so by chaning the flow-rate deltaT becomes incredibly high.
I tried to do so with a Matlab script, that influenced the parameters over time. But the graphs showed me this doesn’t work like inteded. And i’ve found this, saying basicly it’s not possible to add the controls i had in mind, am i wrong?
https://de.mathworks.com/help/simscape/ug/how-simscape-run-time-parameters-differs-from-simulink.html
Can somebody help me please? Maybe i’m just not seeing the obvious solution here 😀
Cheers, simscape, simulink, heatexchanger, fluids MATLAB Answers — New Questions
Respond to Teams Messages with Multiple Emoji Reactions
Multiple Emojis Apparently Creates More Nuanced Responses
My life became complete when message center notification MC1084032 appeared on 27 May 2025 to announce that Teams users can add multiple emoji reactions when they respond to messages. Microsoft 365 roadmap item 491468 explains the need for the new capability, saying that allows users “to express a wide range of emotions effectively. Use combinations of emojis for a richer and more nuanced response, quickly conveying your feelings and thoughts, like agreement, urgency or sentiment, without extra replies—keeping discussions focused and efficient.”
Obviously, I never realized how deficient I have been in restricting myself to a single emoji reaction per chat or channel message. Now users can add up to 20 emojis in their response to messages, including custom emojis (maybe the new sticker generator promised for Paint will make it easier to create custom emojis).
Adding Multiple Emoji Reactions
Technically speaking, the ability for a user to post multiple emoji reactions isn’t hard to implement. The Graph chatMessage: setReaction API deals with posting reactions. The implementation is mostly client-side to lift the previous single reaction and permit up to 20 reactions instead (Figure 1). Users add emoji reactions through the more reactions button under the text of a message. Keep on clicking the button to add emojis. To remove an emoji added in error, select it from the set of emojis again.

Posting a reaction adds it to the collection of reactions for the target message. Although multiple reactions can come from individual users now, it’s really no different to managing a collection containing multiple individual reactions from multiple users.
The reaction list at the bottom of a message might be very colorful, but given that Teams supports over 800 emojis plus custom emojis, inviting users to create combinations of 20 emojis might result in more confused rather than nuanced responses.
As now, Teams lists the reactions in order of popularity (Figure 2) and ensures that the user viewing a message always sees their responses. In other words, Teams filters the response collection by the viewing user to list the most popular responses first. Other responses in the order they are posted then fill out the set of up to 20 emojis displayed under the message.

Schedule and Clients
Rollout is scheduled for early June 2025 to targeted release tenants followed by general availability in mid-June 2025. Full deployment, including to the GCC, GCC High, and DoD clouds should be complete by mid-August 2025. The new capability will be available in Teams desktop, browser, and mobile clients.
No administrative control is available to allow tenants to restrict users to fewer than 20 emojis. There’s also no way to disable the standard set of emojis at either a tenant or team level. I guess at this point no self-respecting messaging service could operate without supporting emojis in one form or another.
Will Users Notice Multiple Emoji Reactions?
Microsoft doesn’t say where the demand came from to warrant the investment to update Teams to allow users to add up to 20 emojis in a composite reaction to a message. I certainly have never heard of such a request, but I guess I’m not in the category of user that this change will please. I don’t think I shall ever contemplate how to combine emojis into a symphony of nuanced response. A simple thumbs-up reaction normally does the trick.
In any case, I wonder how organizations will communicate the news of the new capability to users. What form of words will they use to explain how to use multiple emojis to send effective responses. I’ll look forward to learning more.
Insight like this doesn’t come easily. You’ve got to know the technology and understand how to look behind the scenes. Benefit from the knowledge and experience of the Office 365 for IT Pros team by subscribing to the best eBook covering Office 365 and the wider Microsoft 365 ecosystem.
RF Data Converter: input/output data types
Dear all,
I am using the SoC Blockset add-on to create a design for ZCU111 evaluation board.
1) The RF Data converter block accepts only int16/uint16 at adcTxChy inport. How does it determine the amplitude of the received signal when deployed on hardware? Or, to put question differently, which amplitudes of the received signal are converted to which uint16 instances? Am I correct, that in the simulation it does not matter what the amplitude of the signal is – it receives and passes raw bits?
2) The output adcTxChyData of RFDC can be of types uint16 | uint32 | uint64 | fixed point. I am curious about in which cases it is a fixed point datatype? Does the amplitude of the received signal equal real world value of this fixed point data type when deployed on hardware?
Thank you!Dear all,
I am using the SoC Blockset add-on to create a design for ZCU111 evaluation board.
1) The RF Data converter block accepts only int16/uint16 at adcTxChy inport. How does it determine the amplitude of the received signal when deployed on hardware? Or, to put question differently, which amplitudes of the received signal are converted to which uint16 instances? Am I correct, that in the simulation it does not matter what the amplitude of the signal is – it receives and passes raw bits?
2) The output adcTxChyData of RFDC can be of types uint16 | uint32 | uint64 | fixed point. I am curious about in which cases it is a fixed point datatype? Does the amplitude of the received signal equal real world value of this fixed point data type when deployed on hardware?
Thank you! Dear all,
I am using the SoC Blockset add-on to create a design for ZCU111 evaluation board.
1) The RF Data converter block accepts only int16/uint16 at adcTxChy inport. How does it determine the amplitude of the received signal when deployed on hardware? Or, to put question differently, which amplitudes of the received signal are converted to which uint16 instances? Am I correct, that in the simulation it does not matter what the amplitude of the signal is – it receives and passes raw bits?
2) The output adcTxChyData of RFDC can be of types uint16 | uint32 | uint64 | fixed point. I am curious about in which cases it is a fixed point datatype? Does the amplitude of the received signal equal real world value of this fixed point data type when deployed on hardware?
Thank you! fixed-point, soc blockset, simulink, datatypes, rf data converter, rfdc, adc MATLAB Answers — New Questions
Discrete Phasor domain in Simscape
Dear community,
Is it possible to create an electrical model using Simscape blocks (blue ones) and solve it in Discrete Phasor domain, i.e. RMS quantities (as it can be done using Specialized Power Systems)?
If not, is there any other alternative?
Thank you very much in advance.
Best regards,
Víctor Sánchez SuárezDear community,
Is it possible to create an electrical model using Simscape blocks (blue ones) and solve it in Discrete Phasor domain, i.e. RMS quantities (as it can be done using Specialized Power Systems)?
If not, is there any other alternative?
Thank you very much in advance.
Best regards,
Víctor Sánchez Suárez Dear community,
Is it possible to create an electrical model using Simscape blocks (blue ones) and solve it in Discrete Phasor domain, i.e. RMS quantities (as it can be done using Specialized Power Systems)?
If not, is there any other alternative?
Thank you very much in advance.
Best regards,
Víctor Sánchez Suárez simscape, discrete phasor, rms, specialized power systems MATLAB Answers — New Questions
How do I exclude the first ten observations in the line plot generated by the three differential equations
close all
clear all
clc
tspan = [0 100];
y0 = 0.7; % initial value of state variable x1
r0 = 0.7; % initial value of state variable x2
w0 = 0.8; % initial value of state variable x3
x0 = [y0; r0; w0];
[t, x] = ode45(@odefcn, tspan, x0);
%% Plot x2 (y-axis) vs. x1 (x-axis)
subplot(3,1,1);
plot(t,x(:,1));
xlabel(‘Time’)
ylabel(‘Output’);
subplot(3,1,2);
plot(t,x(:,2));
xlabel(‘Time’)
ylabel(‘Policy Rate’);
subplot(3,1,3);
plot(t,x(:,3));
xlabel(‘Time’)
ylabel(‘Wage Share’);
y0 = [0.7; 0.7; 0.8];
%% System of three differential equations
function dx = odefcn(t, x)
% definitions
y = x(1);
r = x(2);
w = x(3);
% parameters
alpha = 1.0;
beta = 1.0;
gamma = 0.1;
delta = 0.3;
mu = 1.0;
lambda = 0.3;
theta = 0.1;
omega = 0.2;
% ODEs
dx(1,1) = alpha * y – beta * r * y;
dx(2,1) = – omega * r + gamma * w * r + delta * y * r;
dx(3,1) = – theta * w + lambda * y * w – mu * w * w;
endclose all
clear all
clc
tspan = [0 100];
y0 = 0.7; % initial value of state variable x1
r0 = 0.7; % initial value of state variable x2
w0 = 0.8; % initial value of state variable x3
x0 = [y0; r0; w0];
[t, x] = ode45(@odefcn, tspan, x0);
%% Plot x2 (y-axis) vs. x1 (x-axis)
subplot(3,1,1);
plot(t,x(:,1));
xlabel(‘Time’)
ylabel(‘Output’);
subplot(3,1,2);
plot(t,x(:,2));
xlabel(‘Time’)
ylabel(‘Policy Rate’);
subplot(3,1,3);
plot(t,x(:,3));
xlabel(‘Time’)
ylabel(‘Wage Share’);
y0 = [0.7; 0.7; 0.8];
%% System of three differential equations
function dx = odefcn(t, x)
% definitions
y = x(1);
r = x(2);
w = x(3);
% parameters
alpha = 1.0;
beta = 1.0;
gamma = 0.1;
delta = 0.3;
mu = 1.0;
lambda = 0.3;
theta = 0.1;
omega = 0.2;
% ODEs
dx(1,1) = alpha * y – beta * r * y;
dx(2,1) = – omega * r + gamma * w * r + delta * y * r;
dx(3,1) = – theta * w + lambda * y * w – mu * w * w;
end close all
clear all
clc
tspan = [0 100];
y0 = 0.7; % initial value of state variable x1
r0 = 0.7; % initial value of state variable x2
w0 = 0.8; % initial value of state variable x3
x0 = [y0; r0; w0];
[t, x] = ode45(@odefcn, tspan, x0);
%% Plot x2 (y-axis) vs. x1 (x-axis)
subplot(3,1,1);
plot(t,x(:,1));
xlabel(‘Time’)
ylabel(‘Output’);
subplot(3,1,2);
plot(t,x(:,2));
xlabel(‘Time’)
ylabel(‘Policy Rate’);
subplot(3,1,3);
plot(t,x(:,3));
xlabel(‘Time’)
ylabel(‘Wage Share’);
y0 = [0.7; 0.7; 0.8];
%% System of three differential equations
function dx = odefcn(t, x)
% definitions
y = x(1);
r = x(2);
w = x(3);
% parameters
alpha = 1.0;
beta = 1.0;
gamma = 0.1;
delta = 0.3;
mu = 1.0;
lambda = 0.3;
theta = 0.1;
omega = 0.2;
% ODEs
dx(1,1) = alpha * y – beta * r * y;
dx(2,1) = – omega * r + gamma * w * r + delta * y * r;
dx(3,1) = – theta * w + lambda * y * w – mu * w * w;
end graphics, subplot, plotting, plot, differential equations MATLAB Answers — New Questions
Abfload error – colon operands must be real scalars
Hi all, we’ve had to transfer some Matlab code to a new computer for analysis of .abf files and moved from version R2018b to R2025a. However abfload is now giving us the error message below. Can anybody suggest a work around? The error message is below.
Error using :
Colon operands must be real scalars.
Error in
abfload (line 304)
h.protocolName=char(BigString(tmpIx1:tmpIx2(1)+3))’;
^Hi all, we’ve had to transfer some Matlab code to a new computer for analysis of .abf files and moved from version R2018b to R2025a. However abfload is now giving us the error message below. Can anybody suggest a work around? The error message is below.
Error using :
Colon operands must be real scalars.
Error in
abfload (line 304)
h.protocolName=char(BigString(tmpIx1:tmpIx2(1)+3))’;
^ Hi all, we’ve had to transfer some Matlab code to a new computer for analysis of .abf files and moved from version R2018b to R2025a. However abfload is now giving us the error message below. Can anybody suggest a work around? The error message is below.
Error using :
Colon operands must be real scalars.
Error in
abfload (line 304)
h.protocolName=char(BigString(tmpIx1:tmpIx2(1)+3))’;
^ abfload, colon operands MATLAB Answers — New Questions
Exchange Online Upgrades Its Message Tracing Capabilities
Old Message Tracing Components Will be Deprecated in September 2025
The June 3 announcement that the new Exchange Online Message Trace facility is generally available creates some work for Microsoft 365 tenant administrators who use message trace in scripts. The roll-out of the update will happen between mid-June and July 2025. Tenants that participated in the public preview and have V3.7 or later of the Exchange Online management module can already use the new Get-MessageTraceV2 and Get-MessageTraceDetailV2 cmdlets.
In the announcement, Microsoft says that they will deprecate the old message tracing UI from the Exchange admin center and the old Get-MessageTrace and Get-MessageTraceDetail cmdlets beginning September 1, 2025. Microsoft will also deprecate the background reporting web service that responds to requests for online message trace data at the same time. The deployment is limited to commercial tenants and doesn’t currently affect sovereign clouds because of the need to certify code upgrades for those environments.
Time Slipping Away to Upgrade Code
Microsoft will take care of updating the Exchange admin center. Customers and ISVs that depend on the old implementation of message tracing must complete their upgrade by the end of August 2025 before the deprecation cycle begins. If you don’t, the risk is that code will stop working without notice.
Twelve weeks seems like a reasonable amount of time to find and update code. However, we’re heading into a peak vacation period when availability of developers becomes more problematic, so now’s the time to get going.
Checking What’s Needed to Upgrade Scripts
To check out what’s needed, I upgrade two scripts. The first script reports email sent to external recipients by members of a distribution list. The second reports the numbers of outbound and inbound messages sent from domains (Figure 1). The updated scripts are both available in the Office 365 IT Pros GitHub repository (see links in the articles).

Updating the first script was easy. All I needed to do was swap out calls to the Get-MessageTrace cmdlet and replace them with Get-MessageTrace2.
The second script was harder because it used paging to fetch pages containing 1,000 message tracing records. Microsoft’s public preview announcement said that they removed support for pagination. The new mechanism behaves awfully like pagination in that you need to fetch message tracing events in batches of up to 5,000 records until all available data is retrieved. Unlike the pagination used by Graph-based APIs, next link URLs are not used to indicate the point the next set of events start. Instead, fetching based on a mixture of dates and email addresses.
An example is worth many words, so if you’re confused about how to fetch message tracing data, have a look at the script for the second example.
Extended Range of Historical Data Available
According to the public preview announcement, Microsoft plans to deliver the ability to query up to 90 days of historical message tracing data. Initially, Microsoft plans to have 30 days of historical message tracing data available online. However, a single query is limited to ten days, so fetching the message tracing data for 30 days requires three separate queries, each covering a 10-day period. If you fetch data for more than 10 days, Exchange responds with the error message:
Error fetching message trace data: ||The interval between StartDate and EndDate can’t be longer than 10 days.
Not a Difficult Transition
Moving to the new message tracing facility isn’t hard. It shouldn’t take too long to upgrade scripts as the changes are straightforward (and having an example helps). Time is likely to be the problem. Too many competing demands for PowerShell coding, too little time to get everything done.
Learn how to exploit the data available to Microsoft 365 tenant administrators through the Office 365 for IT Pros eBook. We love figuring out how things work.
How to predefine no.of entites in a entity_batch_creator_block in simevents
I want entity_batch_creator block to take no. of entities from its previous block without explicitly defining it in the dialog box.
That is if for a specific time period no of entities generated are 20 then the entity batch creator takes the batch of 20 entities automatically.I want entity_batch_creator block to take no. of entities from its previous block without explicitly defining it in the dialog box.
That is if for a specific time period no of entities generated are 20 then the entity batch creator takes the batch of 20 entities automatically. I want entity_batch_creator block to take no. of entities from its previous block without explicitly defining it in the dialog box.
That is if for a specific time period no of entities generated are 20 then the entity batch creator takes the batch of 20 entities automatically. entity_batch_creator, aggregation MATLAB Answers — New Questions
How can I use table() with a variable number of columns?
I’m making a set of tables from a 4x4x4 array, like so:
T{jj} = table(data(jj,:,1)’,data(jj,:,2)’,data(jj,:,3)’,data(jj,:,4)’,’VariableNames’,colName,’RowNames’,rowName);
The annoying thing is, I have to change this line every time there’s a different number of columns. For example, for 3 columns, the command is:
T{jj} = table(data(jj,:,1)’,data(jj,:,2)’,data(jj,:,3)’,’VariableNames’,colName,’RowNames’,rowName);
I know I could do a switch on the number of columns and have a case for every possible number of columns I might ever have, but is some way around that? The obvious solution of giving it the data as an array doesn’t work if you want named rows and columns:
T{jj} = table(data(jj,:,:),’VariableNames’,colName,’RowNames’,rowName);
Error using table (line 369)
The VariableNames property must contain one name for each variable in the table.
I get the exact same error back if I use slice():
T{jj} = table(slice(data(jj,:,:)),’VariableNames’,colName,’RowNames’,rowName);
But it works fine without row / column names
T{jj} = table(data(jj,:,:));
Am I missing something simple, or is this maybe a design oversight?I’m making a set of tables from a 4x4x4 array, like so:
T{jj} = table(data(jj,:,1)’,data(jj,:,2)’,data(jj,:,3)’,data(jj,:,4)’,’VariableNames’,colName,’RowNames’,rowName);
The annoying thing is, I have to change this line every time there’s a different number of columns. For example, for 3 columns, the command is:
T{jj} = table(data(jj,:,1)’,data(jj,:,2)’,data(jj,:,3)’,’VariableNames’,colName,’RowNames’,rowName);
I know I could do a switch on the number of columns and have a case for every possible number of columns I might ever have, but is some way around that? The obvious solution of giving it the data as an array doesn’t work if you want named rows and columns:
T{jj} = table(data(jj,:,:),’VariableNames’,colName,’RowNames’,rowName);
Error using table (line 369)
The VariableNames property must contain one name for each variable in the table.
I get the exact same error back if I use slice():
T{jj} = table(slice(data(jj,:,:)),’VariableNames’,colName,’RowNames’,rowName);
But it works fine without row / column names
T{jj} = table(data(jj,:,:));
Am I missing something simple, or is this maybe a design oversight? I’m making a set of tables from a 4x4x4 array, like so:
T{jj} = table(data(jj,:,1)’,data(jj,:,2)’,data(jj,:,3)’,data(jj,:,4)’,’VariableNames’,colName,’RowNames’,rowName);
The annoying thing is, I have to change this line every time there’s a different number of columns. For example, for 3 columns, the command is:
T{jj} = table(data(jj,:,1)’,data(jj,:,2)’,data(jj,:,3)’,’VariableNames’,colName,’RowNames’,rowName);
I know I could do a switch on the number of columns and have a case for every possible number of columns I might ever have, but is some way around that? The obvious solution of giving it the data as an array doesn’t work if you want named rows and columns:
T{jj} = table(data(jj,:,:),’VariableNames’,colName,’RowNames’,rowName);
Error using table (line 369)
The VariableNames property must contain one name for each variable in the table.
I get the exact same error back if I use slice():
T{jj} = table(slice(data(jj,:,:)),’VariableNames’,colName,’RowNames’,rowName);
But it works fine without row / column names
T{jj} = table(data(jj,:,:));
Am I missing something simple, or is this maybe a design oversight? table MATLAB Answers — New Questions
Iterative Solution for Nonlinear System and Comparing Updated Coefficients
I am working with a nonlinear system of equations, where the term ( left| frac{partial phi_2′}{partial r} right| ) appears in the equations. I need to solve the system iteratively and compare the coefficients calculated using the initial assumption (with ( left| frac{partial phi_2′}{partial r} right| = 0 ) at first) with the updated coefficients obtained after several iterations.
The steps of the process are as follows:
begin{itemize}
item textbf{Step A:} Assume that the value of ( left| frac{partial phi_2′}{partial r} right| ) is known (set to 0 initially) and the coefficients ( c_n, c_n^-, d^0, d_n^+, d_n^- ) are unknown. The system of equations becomes linear and can be solved by Gaussian elimination.
item textbf{Step B:} After obtaining the initial solution, substitute the value of ( left| frac{partial phi_2′}{partial r} right| ) into the equation set and solve for all unknown coefficients, and update the value of ( left| frac{partial phi_2′}{partial r} right| ).
item textbf{Step C:} Calculate the updated unknown coefficients, and compare them with the values obtained in the previous iteration. If the difference between any coefficient is smaller than ( 10^{-3} ), stop the iteration and consider the solution as the final result. Otherwise, continue iterating, updating the value of ( left| frac{partial phi_2′}{partial r} right| ) in each step.
end{itemize}
How can I implement this iterative solution in MATLAB? Specifically, how can I calculate and compare the differences between the unknown coefficients obtained in each step using the initial and updated values of ( left| frac{partial phi_2′}{partial r} right| )?I am working with a nonlinear system of equations, where the term ( left| frac{partial phi_2′}{partial r} right| ) appears in the equations. I need to solve the system iteratively and compare the coefficients calculated using the initial assumption (with ( left| frac{partial phi_2′}{partial r} right| = 0 ) at first) with the updated coefficients obtained after several iterations.
The steps of the process are as follows:
begin{itemize}
item textbf{Step A:} Assume that the value of ( left| frac{partial phi_2′}{partial r} right| ) is known (set to 0 initially) and the coefficients ( c_n, c_n^-, d^0, d_n^+, d_n^- ) are unknown. The system of equations becomes linear and can be solved by Gaussian elimination.
item textbf{Step B:} After obtaining the initial solution, substitute the value of ( left| frac{partial phi_2′}{partial r} right| ) into the equation set and solve for all unknown coefficients, and update the value of ( left| frac{partial phi_2′}{partial r} right| ).
item textbf{Step C:} Calculate the updated unknown coefficients, and compare them with the values obtained in the previous iteration. If the difference between any coefficient is smaller than ( 10^{-3} ), stop the iteration and consider the solution as the final result. Otherwise, continue iterating, updating the value of ( left| frac{partial phi_2′}{partial r} right| ) in each step.
end{itemize}
How can I implement this iterative solution in MATLAB? Specifically, how can I calculate and compare the differences between the unknown coefficients obtained in each step using the initial and updated values of ( left| frac{partial phi_2′}{partial r} right| )? I am working with a nonlinear system of equations, where the term ( left| frac{partial phi_2′}{partial r} right| ) appears in the equations. I need to solve the system iteratively and compare the coefficients calculated using the initial assumption (with ( left| frac{partial phi_2′}{partial r} right| = 0 ) at first) with the updated coefficients obtained after several iterations.
The steps of the process are as follows:
begin{itemize}
item textbf{Step A:} Assume that the value of ( left| frac{partial phi_2′}{partial r} right| ) is known (set to 0 initially) and the coefficients ( c_n, c_n^-, d^0, d_n^+, d_n^- ) are unknown. The system of equations becomes linear and can be solved by Gaussian elimination.
item textbf{Step B:} After obtaining the initial solution, substitute the value of ( left| frac{partial phi_2′}{partial r} right| ) into the equation set and solve for all unknown coefficients, and update the value of ( left| frac{partial phi_2′}{partial r} right| ).
item textbf{Step C:} Calculate the updated unknown coefficients, and compare them with the values obtained in the previous iteration. If the difference between any coefficient is smaller than ( 10^{-3} ), stop the iteration and consider the solution as the final result. Otherwise, continue iterating, updating the value of ( left| frac{partial phi_2′}{partial r} right| ) in each step.
end{itemize}
How can I implement this iterative solution in MATLAB? Specifically, how can I calculate and compare the differences between the unknown coefficients obtained in each step using the initial and updated values of ( left| frac{partial phi_2′}{partial r} right| )? linear, system, equation, iteration MATLAB Answers — New Questions