Month: January 2025
Microsoft Reannounces Teams Policy to Suppress In-Product Messages
In-Product Message Suppression is Great, But No Way Exists to Control Irritating Teams Pop-up Messages
Sometimes the appearance of a notification in the Microsoft 365 message center is less understandable than the norm. Badly written message center notifications are not unknown, but usually the intent and meaning can be interpreted with a little effort.
MC989968 (28 January 2025) is different. I can’t understand why Microsoft published this notification because it seems to repeat MC808161 (3 July 2024). Both notifications cover the topic of a welcome setting in the Teams update management policy to suppress some in-product announcements of news and conferences.
MC989968 says “Some in-product messages in Microsoft Teams can now be controlled with the New-CsTeamsUpdateManagementPolicy command. Using this control, tenant admins can limit in-product messages relating to periodic What’s New and Conferences updates.” MC808161 is now offline, but as far as I can tell from the multiple sites that republish message center updates, that notification covers the same ground.
In passing, I wonder why so many people think that republishing message center updates is a valuable service to humanity. It seems like none add much value in terms of interpreting the information communicated by Microsoft, so what gets put online is no more than a mild form of plagiarism.
The Irritation of Teams Pop-up Messages
A frustrating aspect of Teams is its continuing insistence on displaying pop-up messages about every new tweak added to its feature set. Figure 1 is a collection of pop-up messages generated in a few minutes by navigating to the OneDrive, Calendar, and Planner apps. In the age of artificial intelligence, you’d imagine that Teams could learn about user preferences and adopt its behavior to match the way people work. A series of quick clicks to dismiss pop-ups should be sufficient evidence that I don’t want to see these annoying interruptions to my workflow.

While I appreciate that some like to be notified about the ongoing stream of new features and changes that appear in Teams, there should be some way to turn off pop-up messages. The Teams settings app covers many different categories of notifications from chats to channels to meetings, but there’s nothing available to allow users to decline seeing any product pop-ups. That seems to be a missed opportunity to please users.
After all, if Microsoft can dedicate effort to allowing users to decide where notifications should be located when using the Teams Windows desktop client (Figure 2). Surely it should be possible to construct a a similar setting to allow or suppress pop-ups?

However, I don’t think Microsoft will grant my wish. MC949959 (6 December 2024, Microsoft 365 roadmap item 469491) says that being able to move meeting notifications to different screen locations will “make notifications more convenient and less disruptive, enhancing both focus and productivity.” I guess a similar rationale is needed to eradicate product pop-up messages and just saying that removing daily irritation won’t be enough.
Suppressing In-Product Messages
After seeing MC989968, I wondered if the Teams update policy that I updated when MC808161 appeared to suppress both what’s new and conference updates was still valid. Nothing has changed and the documentation for the New-CsTeamsUpdateManagementPolicy and Set-CsTeamsUpdateManagementPolicy cmdlets remains as before when it comes to manipulating the “campaign” categories of in-product messages to suppress. As a reminder, this code does the job for both What’s New and Conference (advertising) messages.
[array]$DisabledMessages = "edf2633e-9827-44de-b34c-8b8b9717e84c", "91382d07-8b89-444c-bbcb-cfe43133af33" Set-CsTeamsUpdateManagementPolicy -Identity Global -DisabledInProductMessages $DisabledMessages
The Need to Remove Frustration
Nothing appears to have changed in the messaging, intent, or implementation of the content announced in MC808161 in July 2024 and MC989968 in January 2025. However, the latter did a service by reminding me that a Teams policy exists to control in-product messages. The ability to disable some categories of in-product messages is a good thing. It would be so much better if Teams went the extra yard to remove user frustration by introducing a setting to control the display of pop-up messages.
So much change, all the time. It’s a challenge to stay abreast of all the updates Microsoft makes across the Microsoft 365 ecosystem. Subscribe to the Office 365 for IT Pros eBook to receive monthly insights into what happens, why it happens, and what new features and capabilities mean for your tenant.
C2000 Delfino does not receive code when being powered externally
I am trying to make the LED on my F28379D blink as proof that I can flash code to the board. I have an old model in 2022a which has always compiled fine and works when being powered externally with all of the required hardware attached. I am migrating to 2024b and am trying to make the model run as such. When I power the delfino from the USB with nothing else attached it flashes fine and the LED blinks, when I take the exact same model and and run it on a board that is powered externally and has some other hardware attached (works for 2022a) simulink says that it copiles fine and uploads fine but doesn’t actually blink the led or run anything else.
Any help/ideas is greatly appreciated.I am trying to make the LED on my F28379D blink as proof that I can flash code to the board. I have an old model in 2022a which has always compiled fine and works when being powered externally with all of the required hardware attached. I am migrating to 2024b and am trying to make the model run as such. When I power the delfino from the USB with nothing else attached it flashes fine and the LED blinks, when I take the exact same model and and run it on a board that is powered externally and has some other hardware attached (works for 2022a) simulink says that it copiles fine and uploads fine but doesn’t actually blink the led or run anything else.
Any help/ideas is greatly appreciated. I am trying to make the LED on my F28379D blink as proof that I can flash code to the board. I have an old model in 2022a which has always compiled fine and works when being powered externally with all of the required hardware attached. I am migrating to 2024b and am trying to make the model run as such. When I power the delfino from the USB with nothing else attached it flashes fine and the LED blinks, when I take the exact same model and and run it on a board that is powered externally and has some other hardware attached (works for 2022a) simulink says that it copiles fine and uploads fine but doesn’t actually blink the led or run anything else.
Any help/ideas is greatly appreciated. simulink, c2000, microcontroller, delfino, f28379d MATLAB Answers — New Questions
Help with making an Ellipse Area function
I am having trouble making my ellipse function work. I am using X,Y data in the function although there is an error in the script that is not allowing me to find the area. Also I would love help on displaying the ellipse.
This is the code for my function.
function[area] = Ellipse_Area(FCOPX,FCOPY)
sFCOPX=FCOPX*1000;
sFCOPY=FCOPY*1000;
Sx = std(sFCOPX);
Sy = std(sFCOPY);
Syx = 0;
for i = 1:length(sFCOPX)
Syx = Syx + (sFCOPX(i) – mean(sFCOPY))*(sFCOPX(i) – mean(sFCOPX));
endI am having trouble making my ellipse function work. I am using X,Y data in the function although there is an error in the script that is not allowing me to find the area. Also I would love help on displaying the ellipse.
This is the code for my function.
function[area] = Ellipse_Area(FCOPX,FCOPY)
sFCOPX=FCOPX*1000;
sFCOPY=FCOPY*1000;
Sx = std(sFCOPX);
Sy = std(sFCOPY);
Syx = 0;
for i = 1:length(sFCOPX)
Syx = Syx + (sFCOPX(i) – mean(sFCOPY))*(sFCOPX(i) – mean(sFCOPX));
end I am having trouble making my ellipse function work. I am using X,Y data in the function although there is an error in the script that is not allowing me to find the area. Also I would love help on displaying the ellipse.
This is the code for my function.
function[area] = Ellipse_Area(FCOPX,FCOPY)
sFCOPX=FCOPX*1000;
sFCOPY=FCOPY*1000;
Sx = std(sFCOPX);
Sy = std(sFCOPY);
Syx = 0;
for i = 1:length(sFCOPX)
Syx = Syx + (sFCOPX(i) – mean(sFCOPY))*(sFCOPX(i) – mean(sFCOPX));
end ellipse area, ellipse, area MATLAB Answers — New Questions
Viewing Live Script in viewer.mathworks.com
Hi –
I am the steward for some open source projects, and we want to be able to include links to view the output of Matlab Live Scripts on the web.
There are several links like this on the File Exchange, for example one such link from https://www.mathworks.com/matlabcentral/fileexchange/134991-deepinterpolation-matlab is:
https://viewer.mathworks.com/?viewer=live_code&url=https%3A%2F%2Fwww.mathworks.com%2Fmatlabcentral%2Fmlc-downloads%2Fdownloads%2F84c22101-bffc-435a-910c-b0c7dcd5b386%2F4dd1b338-1032-45d1-b894-d1779b6d28f2%2Ffiles%2Fexamples%2Ftiny_ephys_inference.mlx&embed=web
The trouble is that this links to a specific file in a specific version, and I’d like to be able to grab a Live Script from GitHub so that as the script is updated on GitHub, the viewing link always points to the latest version. Right now, I’d have to know the encoded path in FileExchange that will be generated when it updates the File Exchange version from GitHub.
But I don’t seem to be able to get the viewer to read from GitHub. It is possible that I have a path error here but I have redone this a couple times and I always see "We’re sorry, but something went wrong". So perhaps it’s not legal to pull scripts from other places?
https://viewer.mathworks.com/?viewer=live_code&url=https%3A%2F%2Fgithub.com%2FMATLAB-Community-Toolboxes-at-INCF%2FDeepInterpolation-MATLAB%2Fraw%2Fmain%2Fexamples%2Ftiny_ephys_inference.mlx&embed=web
The broader issue is, is there any recommended way to keep a link to the "current" version instead of to a specific version?
Thanks
SteveHi –
I am the steward for some open source projects, and we want to be able to include links to view the output of Matlab Live Scripts on the web.
There are several links like this on the File Exchange, for example one such link from https://www.mathworks.com/matlabcentral/fileexchange/134991-deepinterpolation-matlab is:
https://viewer.mathworks.com/?viewer=live_code&url=https%3A%2F%2Fwww.mathworks.com%2Fmatlabcentral%2Fmlc-downloads%2Fdownloads%2F84c22101-bffc-435a-910c-b0c7dcd5b386%2F4dd1b338-1032-45d1-b894-d1779b6d28f2%2Ffiles%2Fexamples%2Ftiny_ephys_inference.mlx&embed=web
The trouble is that this links to a specific file in a specific version, and I’d like to be able to grab a Live Script from GitHub so that as the script is updated on GitHub, the viewing link always points to the latest version. Right now, I’d have to know the encoded path in FileExchange that will be generated when it updates the File Exchange version from GitHub.
But I don’t seem to be able to get the viewer to read from GitHub. It is possible that I have a path error here but I have redone this a couple times and I always see "We’re sorry, but something went wrong". So perhaps it’s not legal to pull scripts from other places?
https://viewer.mathworks.com/?viewer=live_code&url=https%3A%2F%2Fgithub.com%2FMATLAB-Community-Toolboxes-at-INCF%2FDeepInterpolation-MATLAB%2Fraw%2Fmain%2Fexamples%2Ftiny_ephys_inference.mlx&embed=web
The broader issue is, is there any recommended way to keep a link to the "current" version instead of to a specific version?
Thanks
Steve Hi –
I am the steward for some open source projects, and we want to be able to include links to view the output of Matlab Live Scripts on the web.
There are several links like this on the File Exchange, for example one such link from https://www.mathworks.com/matlabcentral/fileexchange/134991-deepinterpolation-matlab is:
https://viewer.mathworks.com/?viewer=live_code&url=https%3A%2F%2Fwww.mathworks.com%2Fmatlabcentral%2Fmlc-downloads%2Fdownloads%2F84c22101-bffc-435a-910c-b0c7dcd5b386%2F4dd1b338-1032-45d1-b894-d1779b6d28f2%2Ffiles%2Fexamples%2Ftiny_ephys_inference.mlx&embed=web
The trouble is that this links to a specific file in a specific version, and I’d like to be able to grab a Live Script from GitHub so that as the script is updated on GitHub, the viewing link always points to the latest version. Right now, I’d have to know the encoded path in FileExchange that will be generated when it updates the File Exchange version from GitHub.
But I don’t seem to be able to get the viewer to read from GitHub. It is possible that I have a path error here but I have redone this a couple times and I always see "We’re sorry, but something went wrong". So perhaps it’s not legal to pull scripts from other places?
https://viewer.mathworks.com/?viewer=live_code&url=https%3A%2F%2Fgithub.com%2FMATLAB-Community-Toolboxes-at-INCF%2FDeepInterpolation-MATLAB%2Fraw%2Fmain%2Fexamples%2Ftiny_ephys_inference.mlx&embed=web
The broader issue is, is there any recommended way to keep a link to the "current" version instead of to a specific version?
Thanks
Steve viewer.mathworks.com, community toolbox documentation MATLAB Answers — New Questions
Phase error between two signals ?
Hello,
i have two inputs
V1=A1sin(wt)
and
V2=A2cos(wt+theta)
knowing that A1 is diffrent to A2 … i want to find Theta how can i do that in simulink ? thanks in advanceHello,
i have two inputs
V1=A1sin(wt)
and
V2=A2cos(wt+theta)
knowing that A1 is diffrent to A2 … i want to find Theta how can i do that in simulink ? thanks in advance Hello,
i have two inputs
V1=A1sin(wt)
and
V2=A2cos(wt+theta)
knowing that A1 is diffrent to A2 … i want to find Theta how can i do that in simulink ? thanks in advance phase error, two signals, simulink MATLAB Answers — New Questions
design repeated measurements model
Hi,
I’ve a table
t =
Group day1_1 day1_2 day2_1 day2_2
_________ ______ ______ ______ ______
‘Placebo’ 12.023 12.719 12.11 12.554
‘Placebo’ 11.806 12.186 12.788 12.164
‘Control’ 11.763 12.008 11.481 13.325
‘Placebo’ 11.703 11.678 12.073 12.234
‘Control’ 11.558 12.696 13.692 12.732
‘Placebo’ 13.633 13.253 11.347 12.432
‘Placebo’ 12.374 12.41 11.49 11.457
‘Placebo’ 11.476 11.564 12.542 11.112
‘Control’ 12.496 10.661 12.199 12.382
‘Placebo’ 12.659 12.863 11.844 11.799
‘Control’ 11.611 11.447 12.838 12.592
‘Placebo’ 12.524 13.7 11.772 11.387
where each row is a individual. individuals are tested on two following days with the same test (before and after). on the second day group Placebo is treated with a plecabo between measurement 1 and 2. We’re seeking for differences placebo vs control that only appear on day two.
here is the rest of my code:
Win = [1 2 1 3];
rm = fitrm(t,’day1_1-day2_2 ~ Group’,’WithinDesign’,Win);
tbl = ranova(rm);
is this correct? Probably not.
Edit:
still struggling with that. And we added ‘sex’ and ‘age’ to our data. Any comment/help welcome !
Thanks
DomHi,
I’ve a table
t =
Group day1_1 day1_2 day2_1 day2_2
_________ ______ ______ ______ ______
‘Placebo’ 12.023 12.719 12.11 12.554
‘Placebo’ 11.806 12.186 12.788 12.164
‘Control’ 11.763 12.008 11.481 13.325
‘Placebo’ 11.703 11.678 12.073 12.234
‘Control’ 11.558 12.696 13.692 12.732
‘Placebo’ 13.633 13.253 11.347 12.432
‘Placebo’ 12.374 12.41 11.49 11.457
‘Placebo’ 11.476 11.564 12.542 11.112
‘Control’ 12.496 10.661 12.199 12.382
‘Placebo’ 12.659 12.863 11.844 11.799
‘Control’ 11.611 11.447 12.838 12.592
‘Placebo’ 12.524 13.7 11.772 11.387
where each row is a individual. individuals are tested on two following days with the same test (before and after). on the second day group Placebo is treated with a plecabo between measurement 1 and 2. We’re seeking for differences placebo vs control that only appear on day two.
here is the rest of my code:
Win = [1 2 1 3];
rm = fitrm(t,’day1_1-day2_2 ~ Group’,’WithinDesign’,Win);
tbl = ranova(rm);
is this correct? Probably not.
Edit:
still struggling with that. And we added ‘sex’ and ‘age’ to our data. Any comment/help welcome !
Thanks
Dom Hi,
I’ve a table
t =
Group day1_1 day1_2 day2_1 day2_2
_________ ______ ______ ______ ______
‘Placebo’ 12.023 12.719 12.11 12.554
‘Placebo’ 11.806 12.186 12.788 12.164
‘Control’ 11.763 12.008 11.481 13.325
‘Placebo’ 11.703 11.678 12.073 12.234
‘Control’ 11.558 12.696 13.692 12.732
‘Placebo’ 13.633 13.253 11.347 12.432
‘Placebo’ 12.374 12.41 11.49 11.457
‘Placebo’ 11.476 11.564 12.542 11.112
‘Control’ 12.496 10.661 12.199 12.382
‘Placebo’ 12.659 12.863 11.844 11.799
‘Control’ 11.611 11.447 12.838 12.592
‘Placebo’ 12.524 13.7 11.772 11.387
where each row is a individual. individuals are tested on two following days with the same test (before and after). on the second day group Placebo is treated with a plecabo between measurement 1 and 2. We’re seeking for differences placebo vs control that only appear on day two.
here is the rest of my code:
Win = [1 2 1 3];
rm = fitrm(t,’day1_1-day2_2 ~ Group’,’WithinDesign’,Win);
tbl = ranova(rm);
is this correct? Probably not.
Edit:
still struggling with that. And we added ‘sex’ and ‘age’ to our data. Any comment/help welcome !
Thanks
Dom fitrm, repeated measurments, ranova, withindesign MATLAB Answers — New Questions
Reducing a dataset’s dimensions with PCA and projecting it onto a graph.
Hi all,
Like the title says, I’d like to take a large dataset X of m by n size and reduce it’s dimensions to m by 2 length, and from there project it onto a 2D plane where the axis are the two main principal components of X. Is the below code enough, or have I missed a step?
[a,b] = pca(X);
b = b’;
plot(b(1,:),b(2,:),’.’);
From what I understand, taking the two columns of b gives me the two principal components that tell us the most about X’s structure, whilst having reduced it’s dimensions down. I’m basing this on the <http://www.nlpca.org/pca-principal-component-analysis-matlab.html code I found here,> but I just wanted to check I had it correct.Hi all,
Like the title says, I’d like to take a large dataset X of m by n size and reduce it’s dimensions to m by 2 length, and from there project it onto a 2D plane where the axis are the two main principal components of X. Is the below code enough, or have I missed a step?
[a,b] = pca(X);
b = b’;
plot(b(1,:),b(2,:),’.’);
From what I understand, taking the two columns of b gives me the two principal components that tell us the most about X’s structure, whilst having reduced it’s dimensions down. I’m basing this on the <http://www.nlpca.org/pca-principal-component-analysis-matlab.html code I found here,> but I just wanted to check I had it correct. Hi all,
Like the title says, I’d like to take a large dataset X of m by n size and reduce it’s dimensions to m by 2 length, and from there project it onto a 2D plane where the axis are the two main principal components of X. Is the below code enough, or have I missed a step?
[a,b] = pca(X);
b = b’;
plot(b(1,:),b(2,:),’.’);
From what I understand, taking the two columns of b gives me the two principal components that tell us the most about X’s structure, whilst having reduced it’s dimensions down. I’m basing this on the <http://www.nlpca.org/pca-principal-component-analysis-matlab.html code I found here,> but I just wanted to check I had it correct. pca, matlab, dimension reduction, datasets, data handling MATLAB Answers — New Questions
Inputs for chi-squared test
Hi.
I would like to test the hypothesis that the answers I got in a questionnaire from two differently sized patient groups have the same mean. The answers can be ‘1’,’2′,’3′,’4′ or ‘5’. I was thinking of performing a chi-squared test, but am not familiar with the Statistics Toolbox and therefore cannot understand how to format my data as suitable inputs for chi2gof, crosstabs or any other of the Matlab functions that performs chi2 tests. Can you help?
Many thanks. Best wishes,
MartaHi.
I would like to test the hypothesis that the answers I got in a questionnaire from two differently sized patient groups have the same mean. The answers can be ‘1’,’2′,’3′,’4′ or ‘5’. I was thinking of performing a chi-squared test, but am not familiar with the Statistics Toolbox and therefore cannot understand how to format my data as suitable inputs for chi2gof, crosstabs or any other of the Matlab functions that performs chi2 tests. Can you help?
Many thanks. Best wishes,
Marta Hi.
I would like to test the hypothesis that the answers I got in a questionnaire from two differently sized patient groups have the same mean. The answers can be ‘1’,’2′,’3′,’4′ or ‘5’. I was thinking of performing a chi-squared test, but am not familiar with the Statistics Toolbox and therefore cannot understand how to format my data as suitable inputs for chi2gof, crosstabs or any other of the Matlab functions that performs chi2 tests. Can you help?
Many thanks. Best wishes,
Marta chi-squared, statistics, hypothesis tests, categorical variables MATLAB Answers — New Questions
I’m trying to plot a mat file with a 1×1 structure, but it’s giving the error that “Index in position 2 exceeds array bounds. Index must not exceed 1.”
data1 = load(‘radial.mat’); % Assume data is [X1 Y1] for file1
plot(data1(:,1), data1(:,2), ‘g’, ‘DisplayName’, ‘File 2’);
rhis is what is in the file
data: [-0.0128 -0.0130 -0.0129 -0.0127 -0.0122 -0.0116 … ]
the data is a 1×22620 double
datastart: 1
dataend: 22620
titles: ‘Channel 1’
rangemin: -2
rangemax: 2
unittext: ‘V’
unittextmap: 1
blocktimes: 7.3965e+05
tickrate: 1000
samplerate: 1000
firstsampleoffset: 0
comtext: ”
com: [0×5 double]data1 = load(‘radial.mat’); % Assume data is [X1 Y1] for file1
plot(data1(:,1), data1(:,2), ‘g’, ‘DisplayName’, ‘File 2’);
rhis is what is in the file
data: [-0.0128 -0.0130 -0.0129 -0.0127 -0.0122 -0.0116 … ]
the data is a 1×22620 double
datastart: 1
dataend: 22620
titles: ‘Channel 1’
rangemin: -2
rangemax: 2
unittext: ‘V’
unittextmap: 1
blocktimes: 7.3965e+05
tickrate: 1000
samplerate: 1000
firstsampleoffset: 0
comtext: ”
com: [0×5 double] data1 = load(‘radial.mat’); % Assume data is [X1 Y1] for file1
plot(data1(:,1), data1(:,2), ‘g’, ‘DisplayName’, ‘File 2’);
rhis is what is in the file
data: [-0.0128 -0.0130 -0.0129 -0.0127 -0.0122 -0.0116 … ]
the data is a 1×22620 double
datastart: 1
dataend: 22620
titles: ‘Channel 1’
rangemin: -2
rangemax: 2
unittext: ‘V’
unittextmap: 1
blocktimes: 7.3965e+05
tickrate: 1000
samplerate: 1000
firstsampleoffset: 0
comtext: ”
com: [0×5 double] matlab function MATLAB Answers — New Questions
How can I calculate a mean of a signal or a mean of a part of a signal on Simulink ?
Hello everyone,
Will you help me to calculate a *mean of a signal (mean of a part of a signal)* on *Simulink* ?
I tried with the block " *mean*" but I always find the same input signal. I want a *value* ( *the mean value of the signal*).
thank you in advanceHello everyone,
Will you help me to calculate a *mean of a signal (mean of a part of a signal)* on *Simulink* ?
I tried with the block " *mean*" but I always find the same input signal. I want a *value* ( *the mean value of the signal*).
thank you in advance Hello everyone,
Will you help me to calculate a *mean of a signal (mean of a part of a signal)* on *Simulink* ?
I tried with the block " *mean*" but I always find the same input signal. I want a *value* ( *the mean value of the signal*).
thank you in advance simulink, mean, matlab MATLAB Answers — New Questions
Data not displaying on graph (field chart 1 and field chart 2)
Project to code and monitor 2 co2 sensor and to display it on to a LCD as well as connecting it to thinkspeak to display readings on to the field chart 1 and 2.
When i ran my code it shows Data sent to thinkspeak etc but when i go to thinkspeak it does not display it on the field chart 1 and 2 however there is entires and i can also export the data that i have recorded on my sensors.
What may be the issue i hope to get some help thanks.
Channel ID to public: 2816578Project to code and monitor 2 co2 sensor and to display it on to a LCD as well as connecting it to thinkspeak to display readings on to the field chart 1 and 2.
When i ran my code it shows Data sent to thinkspeak etc but when i go to thinkspeak it does not display it on the field chart 1 and 2 however there is entires and i can also export the data that i have recorded on my sensors.
What may be the issue i hope to get some help thanks.
Channel ID to public: 2816578 Project to code and monitor 2 co2 sensor and to display it on to a LCD as well as connecting it to thinkspeak to display readings on to the field chart 1 and 2.
When i ran my code it shows Data sent to thinkspeak etc but when i go to thinkspeak it does not display it on the field chart 1 and 2 however there is entires and i can also export the data that i have recorded on my sensors.
What may be the issue i hope to get some help thanks.
Channel ID to public: 2816578 python, display, problem MATLAB Answers — New Questions
Best book for beginners
Hi all, this year I have started University and I would like to learn about Matlab. I have never seen nothing about this programme, so I ask you, which book do you suggest for beginners? I’m Italian but I want study English more as possible, so I prefer English books.
I see this book: *Matlab for Beginners: A Gentle Approach*
How is it?
Regards, AlessandroHi all, this year I have started University and I would like to learn about Matlab. I have never seen nothing about this programme, so I ask you, which book do you suggest for beginners? I’m Italian but I want study English more as possible, so I prefer English books.
I see this book: *Matlab for Beginners: A Gentle Approach*
How is it?
Regards, Alessandro Hi all, this year I have started University and I would like to learn about Matlab. I have never seen nothing about this programme, so I ask you, which book do you suggest for beginners? I’m Italian but I want study English more as possible, so I prefer English books.
I see this book: *Matlab for Beginners: A Gentle Approach*
How is it?
Regards, Alessandro book, beginners MATLAB Answers — New Questions
Difficulty installing Biosig after EEGLAB install on Macbook
I’m a really rudimentary Matlab/EEGLAB user, and I’m also PC literate rather than Mac. I have a student I’m onboarding to be a research assistant who uses a Macbook, and we have installed Matlab and EEGLab successfully on her machine, as well as the frontal asymmetry toolbox, using the Add On manager in Matlab. EEGLab opens fine on the Macbook and we have since tried to open an EDF file using the Biosig tools option. EEGLAB then attempts to download and install Biosig (which on my PC has always gone smoothly). However, my student keeps getting this message:
"Could not download extension. Host site might be unavailable, too slow or you do not have permission to write in the EEGLAB plugin folder. Try again just in case or use a faster connection.
Alternatively install the plugin manually by downloading it at http://sccn.ucsd.edu/wiki/EEGLAB_Extensions_and_plug-ins
unziping it in the eeglab/plugin folder and restarting eeglab"
We have downloaded Biosig from the host website and attempted to manually place it in the correct folder in EEGLAB on the Macbook, but when we attempt to open the EDF file, EEGLAB continues to try to download Biosig itself and gives us the same error message. The error message occurs regardless of what wireless network she is on, whether at home or at the university. We have checked the permissions of Matlab folder to ensure she can modify it, that’s fine. Is this problem particular to the Mac OS? How do we get this running?I’m a really rudimentary Matlab/EEGLAB user, and I’m also PC literate rather than Mac. I have a student I’m onboarding to be a research assistant who uses a Macbook, and we have installed Matlab and EEGLab successfully on her machine, as well as the frontal asymmetry toolbox, using the Add On manager in Matlab. EEGLab opens fine on the Macbook and we have since tried to open an EDF file using the Biosig tools option. EEGLAB then attempts to download and install Biosig (which on my PC has always gone smoothly). However, my student keeps getting this message:
"Could not download extension. Host site might be unavailable, too slow or you do not have permission to write in the EEGLAB plugin folder. Try again just in case or use a faster connection.
Alternatively install the plugin manually by downloading it at http://sccn.ucsd.edu/wiki/EEGLAB_Extensions_and_plug-ins
unziping it in the eeglab/plugin folder and restarting eeglab"
We have downloaded Biosig from the host website and attempted to manually place it in the correct folder in EEGLAB on the Macbook, but when we attempt to open the EDF file, EEGLAB continues to try to download Biosig itself and gives us the same error message. The error message occurs regardless of what wireless network she is on, whether at home or at the university. We have checked the permissions of Matlab folder to ensure she can modify it, that’s fine. Is this problem particular to the Mac OS? How do we get this running? I’m a really rudimentary Matlab/EEGLAB user, and I’m also PC literate rather than Mac. I have a student I’m onboarding to be a research assistant who uses a Macbook, and we have installed Matlab and EEGLab successfully on her machine, as well as the frontal asymmetry toolbox, using the Add On manager in Matlab. EEGLab opens fine on the Macbook and we have since tried to open an EDF file using the Biosig tools option. EEGLAB then attempts to download and install Biosig (which on my PC has always gone smoothly). However, my student keeps getting this message:
"Could not download extension. Host site might be unavailable, too slow or you do not have permission to write in the EEGLAB plugin folder. Try again just in case or use a faster connection.
Alternatively install the plugin manually by downloading it at http://sccn.ucsd.edu/wiki/EEGLAB_Extensions_and_plug-ins
unziping it in the eeglab/plugin folder and restarting eeglab"
We have downloaded Biosig from the host website and attempted to manually place it in the correct folder in EEGLAB on the Macbook, but when we attempt to open the EDF file, EEGLAB continues to try to download Biosig itself and gives us the same error message. The error message occurs regardless of what wireless network she is on, whether at home or at the university. We have checked the permissions of Matlab folder to ensure she can modify it, that’s fine. Is this problem particular to the Mac OS? How do we get this running? installation, mac, biosig MATLAB Answers — New Questions
I’m trying to plot a mat file with a 1×1 structure, but it’s giving the error that “Index in position 2 exceeds array bounds. Index must not exceed 1.”
data1 = load(‘radial.mat’); % Assume data is [X1 Y1] for file1
plot(data1(:,1), data1(:,2), ‘g’, ‘DisplayName’, ‘File 2’);data1 = load(‘radial.mat’); % Assume data is [X1 Y1] for file1
plot(data1(:,1), data1(:,2), ‘g’, ‘DisplayName’, ‘File 2’); data1 = load(‘radial.mat’); % Assume data is [X1 Y1] for file1
plot(data1(:,1), data1(:,2), ‘g’, ‘DisplayName’, ‘File 2’); matlab MATLAB Answers — New Questions
what is this block called
Hi,
What is this block called?Hi,
What is this block called? Hi,
What is this block called? simulink MATLAB Answers — New Questions
Hi everybody. I’m kind of new to MATLAb and looking to get more efficient in my coding. This feels clunky to me and I feel like I could definitely shorten it. Any ideas?
Engine = ["LO2/LH2";"LO2/CH4";"STP low ISP";"STP high ISP"];
ISP = [450;312;250;500];
DryMass = [3;6;6;12];
MaxPropellantMass = [50;50;50;50];
g = 9.81;
ve = (g*ISP)/1000;
mi = DryMass + MaxPropellantMass;
mf = DryMass;
DeltaV = zeros(1,4);
mf_DV2 = zeros(4,1);
Prop_Delivered = zeros(1,4);
DV2 = 2;
Pd_LOx_LH2 = zeros(1,8);
Pd_LOx_CH4 = zeros(1,8);
Pd_STP_H = zeros(1,8);
Pd_STP_L = zeros(1,8);
for f = 1:4
DeltaV(f) = ve(f,1)*log(mi(f,1)/mf(f,1));
mf_DV2(f) = mi(f,1)/(exp(DV2/(ve(f,1))));
Prop_Delivered(f) = mf_DV2(f,1) – DryMass(f,1);
end
DeltaV = DeltaV’;
Problem_1 = table(Engine,ISP,DryMass,MaxPropellantMass,DeltaV);
Problem_1 = renamevars(Problem_1,["DryMass","MaxPropellantMass","DeltaV"], …
["Dry Mass (mT)","Max Propellant Mass (mT)","DeltaV (km/s)"])
Prop_Delivered = Prop_Delivered’;
Problem_2 = table(Engine,mf_DV2,Prop_Delivered);
Problem_2 = renamevars(Problem_2,["mf_DV2","Prop_Delivered"], …
["Final Mass (mT)","Delivered Propellant (mT)"])
for dv = 1:8
Pd_LOx_LH2(dv) = (mi(1,1)/exp(dv/ve(1,1)))-DryMass(1,1);
Pd_LOx_CH4(dv) = (mi(2,1)/exp(dv/ve(2,1)))-DryMass(2,1);
Pd_STP_L(dv) = (mi(3,1)/exp(dv/ve(3,1)))-DryMass(3,1);
Pd_STP_H(dv) = (mi(4,1)/exp(dv/ve(4,1)))-DryMass(4,1);
end
x = 1:0.5:8;
LOx_LH2 = (mi(1)./exp(x/ve(1)))-DryMass(1);
LOx_CH4 = (mi(2)./exp(x/ve(2)))-DryMass(2);
STP_L = (mi(3)./exp(x/ve(3)))-DryMass(3);
STP_H = (mi(4)./exp(x/ve(4)))-DryMass(4);
plot(x,LOx_LH2,x,LOx_CH4,x,STP_L,x,STP_H)
% Add title and axis labels
title(‘Propellant Delivered (mT) Per DeltaV (km/s)’);
xlabel(‘DeltaV’);
ylabel(‘Propellant Delivered’);
% Add legend
legend(‘LOx/LH2′,’LOx/CH4′,’STP Low ISP’,’STP High ISP’);
Problem_3 = table((1:8)’,Pd_LOx_LH2′,Pd_LOx_CH4′,Pd_STP_L’,Pd_STP_H’);
Problem_3 = renamevars(Problem_3,["Var1","Var2","Var3","Var4","Var5"], …
["DeltaV","LOx/LH2","LOx/CH4","STP Low ISP","STP High ISP"])Engine = ["LO2/LH2";"LO2/CH4";"STP low ISP";"STP high ISP"];
ISP = [450;312;250;500];
DryMass = [3;6;6;12];
MaxPropellantMass = [50;50;50;50];
g = 9.81;
ve = (g*ISP)/1000;
mi = DryMass + MaxPropellantMass;
mf = DryMass;
DeltaV = zeros(1,4);
mf_DV2 = zeros(4,1);
Prop_Delivered = zeros(1,4);
DV2 = 2;
Pd_LOx_LH2 = zeros(1,8);
Pd_LOx_CH4 = zeros(1,8);
Pd_STP_H = zeros(1,8);
Pd_STP_L = zeros(1,8);
for f = 1:4
DeltaV(f) = ve(f,1)*log(mi(f,1)/mf(f,1));
mf_DV2(f) = mi(f,1)/(exp(DV2/(ve(f,1))));
Prop_Delivered(f) = mf_DV2(f,1) – DryMass(f,1);
end
DeltaV = DeltaV’;
Problem_1 = table(Engine,ISP,DryMass,MaxPropellantMass,DeltaV);
Problem_1 = renamevars(Problem_1,["DryMass","MaxPropellantMass","DeltaV"], …
["Dry Mass (mT)","Max Propellant Mass (mT)","DeltaV (km/s)"])
Prop_Delivered = Prop_Delivered’;
Problem_2 = table(Engine,mf_DV2,Prop_Delivered);
Problem_2 = renamevars(Problem_2,["mf_DV2","Prop_Delivered"], …
["Final Mass (mT)","Delivered Propellant (mT)"])
for dv = 1:8
Pd_LOx_LH2(dv) = (mi(1,1)/exp(dv/ve(1,1)))-DryMass(1,1);
Pd_LOx_CH4(dv) = (mi(2,1)/exp(dv/ve(2,1)))-DryMass(2,1);
Pd_STP_L(dv) = (mi(3,1)/exp(dv/ve(3,1)))-DryMass(3,1);
Pd_STP_H(dv) = (mi(4,1)/exp(dv/ve(4,1)))-DryMass(4,1);
end
x = 1:0.5:8;
LOx_LH2 = (mi(1)./exp(x/ve(1)))-DryMass(1);
LOx_CH4 = (mi(2)./exp(x/ve(2)))-DryMass(2);
STP_L = (mi(3)./exp(x/ve(3)))-DryMass(3);
STP_H = (mi(4)./exp(x/ve(4)))-DryMass(4);
plot(x,LOx_LH2,x,LOx_CH4,x,STP_L,x,STP_H)
% Add title and axis labels
title(‘Propellant Delivered (mT) Per DeltaV (km/s)’);
xlabel(‘DeltaV’);
ylabel(‘Propellant Delivered’);
% Add legend
legend(‘LOx/LH2′,’LOx/CH4′,’STP Low ISP’,’STP High ISP’);
Problem_3 = table((1:8)’,Pd_LOx_LH2′,Pd_LOx_CH4′,Pd_STP_L’,Pd_STP_H’);
Problem_3 = renamevars(Problem_3,["Var1","Var2","Var3","Var4","Var5"], …
["DeltaV","LOx/LH2","LOx/CH4","STP Low ISP","STP High ISP"]) Engine = ["LO2/LH2";"LO2/CH4";"STP low ISP";"STP high ISP"];
ISP = [450;312;250;500];
DryMass = [3;6;6;12];
MaxPropellantMass = [50;50;50;50];
g = 9.81;
ve = (g*ISP)/1000;
mi = DryMass + MaxPropellantMass;
mf = DryMass;
DeltaV = zeros(1,4);
mf_DV2 = zeros(4,1);
Prop_Delivered = zeros(1,4);
DV2 = 2;
Pd_LOx_LH2 = zeros(1,8);
Pd_LOx_CH4 = zeros(1,8);
Pd_STP_H = zeros(1,8);
Pd_STP_L = zeros(1,8);
for f = 1:4
DeltaV(f) = ve(f,1)*log(mi(f,1)/mf(f,1));
mf_DV2(f) = mi(f,1)/(exp(DV2/(ve(f,1))));
Prop_Delivered(f) = mf_DV2(f,1) – DryMass(f,1);
end
DeltaV = DeltaV’;
Problem_1 = table(Engine,ISP,DryMass,MaxPropellantMass,DeltaV);
Problem_1 = renamevars(Problem_1,["DryMass","MaxPropellantMass","DeltaV"], …
["Dry Mass (mT)","Max Propellant Mass (mT)","DeltaV (km/s)"])
Prop_Delivered = Prop_Delivered’;
Problem_2 = table(Engine,mf_DV2,Prop_Delivered);
Problem_2 = renamevars(Problem_2,["mf_DV2","Prop_Delivered"], …
["Final Mass (mT)","Delivered Propellant (mT)"])
for dv = 1:8
Pd_LOx_LH2(dv) = (mi(1,1)/exp(dv/ve(1,1)))-DryMass(1,1);
Pd_LOx_CH4(dv) = (mi(2,1)/exp(dv/ve(2,1)))-DryMass(2,1);
Pd_STP_L(dv) = (mi(3,1)/exp(dv/ve(3,1)))-DryMass(3,1);
Pd_STP_H(dv) = (mi(4,1)/exp(dv/ve(4,1)))-DryMass(4,1);
end
x = 1:0.5:8;
LOx_LH2 = (mi(1)./exp(x/ve(1)))-DryMass(1);
LOx_CH4 = (mi(2)./exp(x/ve(2)))-DryMass(2);
STP_L = (mi(3)./exp(x/ve(3)))-DryMass(3);
STP_H = (mi(4)./exp(x/ve(4)))-DryMass(4);
plot(x,LOx_LH2,x,LOx_CH4,x,STP_L,x,STP_H)
% Add title and axis labels
title(‘Propellant Delivered (mT) Per DeltaV (km/s)’);
xlabel(‘DeltaV’);
ylabel(‘Propellant Delivered’);
% Add legend
legend(‘LOx/LH2′,’LOx/CH4′,’STP Low ISP’,’STP High ISP’);
Problem_3 = table((1:8)’,Pd_LOx_LH2′,Pd_LOx_CH4′,Pd_STP_L’,Pd_STP_H’);
Problem_3 = renamevars(Problem_3,["Var1","Var2","Var3","Var4","Var5"], …
["DeltaV","LOx/LH2","LOx/CH4","STP Low ISP","STP High ISP"]) shortening, efficiency, learning MATLAB Answers — New Questions
Why Rapid Accelerator Simulation fails with Visual Studio Compiler error: “rt_nonfinite.c(4): error C2099: initializer is not a constant rt_nonfinite.c(5): error C2099: initializer is not a constant” ?
I got the following error message when run Rapid Accelerator simulation using Windows SDK Version 10.0.26100.0.
** Error message **
cl -c -nologo -GS -W4 -DWIN32 @test_comp.rsp -D_MT -D_DLL -MD -D_CRT_SECURE_NO_WARNINGS -DTGTCONN -DIS_SIM_TARGET -DNRT -DRSIM_PARAMETER_LOADING -DRSIM_WITH_SL_SOLVER -DUSE_LOCALHOST -DENABLE_SLEXEC_SSBRIDGE=1 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DON_TARGET_WAIT_FOR_START=0 -DTID01EQ=1 /DNDEBUG /Od /Oy- -DMODEL=test -DNUMST=2 -DNCSTATES=0 -DMAT_FILE=1 -DINTEGER_CODE=0 -DONESTEPFCN=0 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DCLASSIC_INTERFACE=1 -DALLOCATIONFCN=0 -DEXT_MODE -DIS_RAPID_ACCEL -DHAVESTDIO -DMT=0 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 rt_nonfinite.c
rt_nonfinite.c
rt_nonfinite.c(4): error C2099: initializer is not a constant
rt_nonfinite.c(5): error C2099: initializer is not a constant
NMAKE : fatal error U1077: ‘cl -c -nologo -GS -W4 -DWIN32 @test_comp.rsp -D_MT -D_DLL -MD -D_CRT_SECURE_NO_WARNINGS -DTGTCONN -DIS_SIM_TARGET -DNRT -DRSIM_PARAMETER_LOADING -DRSIM_WITH_SL_SOLVER -DUSE_LOCALHOST -DENABLE_SLEXEC_SSBRIDGE=1 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DON_TARGET_WAIT_FOR_START=0 -DTID01EQ=1 /DNDEBUG /Od /Oy- -DMODEL=test -DNUMST=2 -DNCSTATES=0 -DMAT_FILE=1 -DINTEGER_CODE=0 -DONESTEPFCN=0 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DCLASSIC_INTERFACE=1 -DALLOCATIONFCN=0 -DEXT_MODE -DIS_RAPID_ACCEL -DHAVESTDIO -DMT=0 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 rt_nonfinite.c ‘ : return code ‘0x2’
Stop.
**I got the following error message when run Rapid Accelerator simulation using Windows SDK Version 10.0.26100.0.
** Error message **
cl -c -nologo -GS -W4 -DWIN32 @test_comp.rsp -D_MT -D_DLL -MD -D_CRT_SECURE_NO_WARNINGS -DTGTCONN -DIS_SIM_TARGET -DNRT -DRSIM_PARAMETER_LOADING -DRSIM_WITH_SL_SOLVER -DUSE_LOCALHOST -DENABLE_SLEXEC_SSBRIDGE=1 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DON_TARGET_WAIT_FOR_START=0 -DTID01EQ=1 /DNDEBUG /Od /Oy- -DMODEL=test -DNUMST=2 -DNCSTATES=0 -DMAT_FILE=1 -DINTEGER_CODE=0 -DONESTEPFCN=0 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DCLASSIC_INTERFACE=1 -DALLOCATIONFCN=0 -DEXT_MODE -DIS_RAPID_ACCEL -DHAVESTDIO -DMT=0 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 rt_nonfinite.c
rt_nonfinite.c
rt_nonfinite.c(4): error C2099: initializer is not a constant
rt_nonfinite.c(5): error C2099: initializer is not a constant
NMAKE : fatal error U1077: ‘cl -c -nologo -GS -W4 -DWIN32 @test_comp.rsp -D_MT -D_DLL -MD -D_CRT_SECURE_NO_WARNINGS -DTGTCONN -DIS_SIM_TARGET -DNRT -DRSIM_PARAMETER_LOADING -DRSIM_WITH_SL_SOLVER -DUSE_LOCALHOST -DENABLE_SLEXEC_SSBRIDGE=1 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DON_TARGET_WAIT_FOR_START=0 -DTID01EQ=1 /DNDEBUG /Od /Oy- -DMODEL=test -DNUMST=2 -DNCSTATES=0 -DMAT_FILE=1 -DINTEGER_CODE=0 -DONESTEPFCN=0 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DCLASSIC_INTERFACE=1 -DALLOCATIONFCN=0 -DEXT_MODE -DIS_RAPID_ACCEL -DHAVESTDIO -DMT=0 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 rt_nonfinite.c ‘ : return code ‘0x2’
Stop.
** I got the following error message when run Rapid Accelerator simulation using Windows SDK Version 10.0.26100.0.
** Error message **
cl -c -nologo -GS -W4 -DWIN32 @test_comp.rsp -D_MT -D_DLL -MD -D_CRT_SECURE_NO_WARNINGS -DTGTCONN -DIS_SIM_TARGET -DNRT -DRSIM_PARAMETER_LOADING -DRSIM_WITH_SL_SOLVER -DUSE_LOCALHOST -DENABLE_SLEXEC_SSBRIDGE=1 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DON_TARGET_WAIT_FOR_START=0 -DTID01EQ=1 /DNDEBUG /Od /Oy- -DMODEL=test -DNUMST=2 -DNCSTATES=0 -DMAT_FILE=1 -DINTEGER_CODE=0 -DONESTEPFCN=0 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DCLASSIC_INTERFACE=1 -DALLOCATIONFCN=0 -DEXT_MODE -DIS_RAPID_ACCEL -DHAVESTDIO -DMT=0 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 rt_nonfinite.c
rt_nonfinite.c
rt_nonfinite.c(4): error C2099: initializer is not a constant
rt_nonfinite.c(5): error C2099: initializer is not a constant
NMAKE : fatal error U1077: ‘cl -c -nologo -GS -W4 -DWIN32 @test_comp.rsp -D_MT -D_DLL -MD -D_CRT_SECURE_NO_WARNINGS -DTGTCONN -DIS_SIM_TARGET -DNRT -DRSIM_PARAMETER_LOADING -DRSIM_WITH_SL_SOLVER -DUSE_LOCALHOST -DENABLE_SLEXEC_SSBRIDGE=1 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DON_TARGET_WAIT_FOR_START=0 -DTID01EQ=1 /DNDEBUG /Od /Oy- -DMODEL=test -DNUMST=2 -DNCSTATES=0 -DMAT_FILE=1 -DINTEGER_CODE=0 -DONESTEPFCN=0 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DCLASSIC_INTERFACE=1 -DALLOCATIONFCN=0 -DEXT_MODE -DIS_RAPID_ACCEL -DHAVESTDIO -DMT=0 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 rt_nonfinite.c ‘ : return code ‘0x2’
Stop.
** MATLAB Answers — New Questions
Simulink state space observer output issue
Hello everyone. For my simulink state space observer system, I set up two models based on the same system. One model that doesn’t use the ‘state space block’, and another one that uses the ‘state space block’. The ‘state space block’ was configured (with the A, B, C, D matrices) to be the equivalent to my graphical interconnected blocks observer system model.
The output of the graphical interconnected block observer model is mostly satisfactory – except, I notice that the plotted output always spikes or rockets up to large value at the ‘end time’. So if I choose a simulation end-time of 0.5 seconds, then the spike occurs at 0.5 seconds. And if I choose the simulation end time to end at 10 seconds, then the spike will occur at 10 seconds, while the general output response is satisfactory for times well below 10 seconds. Same if I were to choose an end time of 20 seconds. The spike would occur at 20 seconds.
However, for the compact ‘state space block’ model of the observer system. Equivalent system. The output never gets that spiking (which is good).
Woud anyone have any ideas about the reason for spiking seen only at the end-time? And anything we can try – so that the spike at the end time doesn’t occur for the blocks-connected observer model? Thanks all!Hello everyone. For my simulink state space observer system, I set up two models based on the same system. One model that doesn’t use the ‘state space block’, and another one that uses the ‘state space block’. The ‘state space block’ was configured (with the A, B, C, D matrices) to be the equivalent to my graphical interconnected blocks observer system model.
The output of the graphical interconnected block observer model is mostly satisfactory – except, I notice that the plotted output always spikes or rockets up to large value at the ‘end time’. So if I choose a simulation end-time of 0.5 seconds, then the spike occurs at 0.5 seconds. And if I choose the simulation end time to end at 10 seconds, then the spike will occur at 10 seconds, while the general output response is satisfactory for times well below 10 seconds. Same if I were to choose an end time of 20 seconds. The spike would occur at 20 seconds.
However, for the compact ‘state space block’ model of the observer system. Equivalent system. The output never gets that spiking (which is good).
Woud anyone have any ideas about the reason for spiking seen only at the end-time? And anything we can try – so that the spike at the end time doesn’t occur for the blocks-connected observer model? Thanks all! Hello everyone. For my simulink state space observer system, I set up two models based on the same system. One model that doesn’t use the ‘state space block’, and another one that uses the ‘state space block’. The ‘state space block’ was configured (with the A, B, C, D matrices) to be the equivalent to my graphical interconnected blocks observer system model.
The output of the graphical interconnected block observer model is mostly satisfactory – except, I notice that the plotted output always spikes or rockets up to large value at the ‘end time’. So if I choose a simulation end-time of 0.5 seconds, then the spike occurs at 0.5 seconds. And if I choose the simulation end time to end at 10 seconds, then the spike will occur at 10 seconds, while the general output response is satisfactory for times well below 10 seconds. Same if I were to choose an end time of 20 seconds. The spike would occur at 20 seconds.
However, for the compact ‘state space block’ model of the observer system. Equivalent system. The output never gets that spiking (which is good).
Woud anyone have any ideas about the reason for spiking seen only at the end-time? And anything we can try – so that the spike at the end time doesn’t occur for the blocks-connected observer model? Thanks all! simulink observer MATLAB Answers — New Questions
Group Data for one Legend in Figure of Multiple SubPlots
Hi All,
I am working with several instances that I want to plot data for each with their own data set. For example I have four plots with their own respective signals I need to look at and for multiple instances. Each instance is comprised of several variations that I need to be of the same color. In each plot each instance is colored differently but each data set of variations is one color based on instance. I have been scouring the internet for help on this but I can’t seem to get any solution to this issue.
What i would like to do is have one legend (and yes I know i could just add a legend to one of my subplots and move it) that only has the different instances and their respective colors without adding in all of the variations within the data set. I have a loop set up to plot 5 variations per instance and I was hoping to loop this through instances that use different files. Below is kind of the code I’ve been working around and trying to make work. Its just a section for ease, but basically lets say I have 5 instances and each has 5 variations, I can plot them and ensure each variation is the same color so i have 5 different colors on the plots, but I want a legent just to show the 5 instances in their respective colors and not 25 for evry line.
Please help me out here, I am starting to go nuts and found some very terrible ways of diong this by hand which aren’t applicable at all.
for z = 1:num files;
subplot(1,2,2);
hold on
grid on;
for i = 1:5
plot(z) = plot(StartA(:,i),AMA_1(:,i),color)
end
end
legend(plot(1),plot(2), etc…Hi All,
I am working with several instances that I want to plot data for each with their own data set. For example I have four plots with their own respective signals I need to look at and for multiple instances. Each instance is comprised of several variations that I need to be of the same color. In each plot each instance is colored differently but each data set of variations is one color based on instance. I have been scouring the internet for help on this but I can’t seem to get any solution to this issue.
What i would like to do is have one legend (and yes I know i could just add a legend to one of my subplots and move it) that only has the different instances and their respective colors without adding in all of the variations within the data set. I have a loop set up to plot 5 variations per instance and I was hoping to loop this through instances that use different files. Below is kind of the code I’ve been working around and trying to make work. Its just a section for ease, but basically lets say I have 5 instances and each has 5 variations, I can plot them and ensure each variation is the same color so i have 5 different colors on the plots, but I want a legent just to show the 5 instances in their respective colors and not 25 for evry line.
Please help me out here, I am starting to go nuts and found some very terrible ways of diong this by hand which aren’t applicable at all.
for z = 1:num files;
subplot(1,2,2);
hold on
grid on;
for i = 1:5
plot(z) = plot(StartA(:,i),AMA_1(:,i),color)
end
end
legend(plot(1),plot(2), etc… Hi All,
I am working with several instances that I want to plot data for each with their own data set. For example I have four plots with their own respective signals I need to look at and for multiple instances. Each instance is comprised of several variations that I need to be of the same color. In each plot each instance is colored differently but each data set of variations is one color based on instance. I have been scouring the internet for help on this but I can’t seem to get any solution to this issue.
What i would like to do is have one legend (and yes I know i could just add a legend to one of my subplots and move it) that only has the different instances and their respective colors without adding in all of the variations within the data set. I have a loop set up to plot 5 variations per instance and I was hoping to loop this through instances that use different files. Below is kind of the code I’ve been working around and trying to make work. Its just a section for ease, but basically lets say I have 5 instances and each has 5 variations, I can plot them and ensure each variation is the same color so i have 5 different colors on the plots, but I want a legent just to show the 5 instances in their respective colors and not 25 for evry line.
Please help me out here, I am starting to go nuts and found some very terrible ways of diong this by hand which aren’t applicable at all.
for z = 1:num files;
subplot(1,2,2);
hold on
grid on;
for i = 1:5
plot(z) = plot(StartA(:,i),AMA_1(:,i),color)
end
end
legend(plot(1),plot(2), etc… subplot, legend, figure, plotting MATLAB Answers — New Questions
How to insert space between strings while doing strcat ?
for eg:
a=’hello’; b=’world’; strcat(a,b);
strcat(a,b) gives ‘helloworld’ But I need it as ‘hello world’ How can I do that ?for eg:
a=’hello’; b=’world’; strcat(a,b);
strcat(a,b) gives ‘helloworld’ But I need it as ‘hello world’ How can I do that ? for eg:
a=’hello’; b=’world’; strcat(a,b);
strcat(a,b) gives ‘helloworld’ But I need it as ‘hello world’ How can I do that ? string MATLAB Answers — New Questions