Month: June 2024
Disable MRM Policy on a mailbox, while leaving In-Place Archiving enabled in Exchange Online?
I have a user whose Exchange Online currently has an MRM retention policy applied, as well as having In-Place Archiving enabled.
However, I now want the user to be able to have all their mailbox items, going forward, to remain in their live mailbox, while still keeping the items in the In-Place Archive active and available to them for reference when needed.
If I change just the MRM retention policy to “No Policy” for this user’s mailbox, will that leave the In-Place Archive active while stopping any new/future items in the user’s live mailbox from being automatically moved into the In-Place Archive?
I have a user whose Exchange Online currently has an MRM retention policy applied, as well as having In-Place Archiving enabled. However, I now want the user to be able to have all their mailbox items, going forward, to remain in their live mailbox, while still keeping the items in the In-Place Archive active and available to them for reference when needed. If I change just the MRM retention policy to “No Policy” for this user’s mailbox, will that leave the In-Place Archive active while stopping any new/future items in the user’s live mailbox from being automatically moved into the In-Place Archive? Read More
how to set variable type in uitable
function startupFcn(app, set)
app.InstrumTab=LoadInstrum_Struct(set);
app.Setting=set;
app.UITable.Data=app.InstrumTab;
app.UITable.ColumnName=["ProductName";"Ticker";"PointValue";"IntradayMargin";"OvernightMargin";"Slippage(x trade)";"MiniContractTicker";"PointValue1";"IntradayMargin1";"OvernightMargin1";"Slippage1(x trade)";"MicroContractTicker";"PointValue2";"IntradayMargin2";"OvernightMargin2";"Slippage2(x trade)";"Group";"Currency";"ExtraMinUnit"];
app.UITable.ColumnEditable=true;
%questo-…(poi occorre salvarlo)
how do I save values in table using variable typo: Example: [double,’char’]function startupFcn(app, set)
app.InstrumTab=LoadInstrum_Struct(set);
app.Setting=set;
app.UITable.Data=app.InstrumTab;
app.UITable.ColumnName=["ProductName";"Ticker";"PointValue";"IntradayMargin";"OvernightMargin";"Slippage(x trade)";"MiniContractTicker";"PointValue1";"IntradayMargin1";"OvernightMargin1";"Slippage1(x trade)";"MicroContractTicker";"PointValue2";"IntradayMargin2";"OvernightMargin2";"Slippage2(x trade)";"Group";"Currency";"ExtraMinUnit"];
app.UITable.ColumnEditable=true;
%questo-…(poi occorre salvarlo)
how do I save values in table using variable typo: Example: [double,’char’] function startupFcn(app, set)
app.InstrumTab=LoadInstrum_Struct(set);
app.Setting=set;
app.UITable.Data=app.InstrumTab;
app.UITable.ColumnName=["ProductName";"Ticker";"PointValue";"IntradayMargin";"OvernightMargin";"Slippage(x trade)";"MiniContractTicker";"PointValue1";"IntradayMargin1";"OvernightMargin1";"Slippage1(x trade)";"MicroContractTicker";"PointValue2";"IntradayMargin2";"OvernightMargin2";"Slippage2(x trade)";"Group";"Currency";"ExtraMinUnit"];
app.UITable.ColumnEditable=true;
%questo-…(poi occorre salvarlo)
how do I save values in table using variable typo: Example: [double,’char’] how to set variable type in uitable MATLAB Answers — New Questions
Image classification Deep Learning on ARM
I have a surface pro 9 with snapdragon chip that has an in-built neural processing unit. I need to perform image classification on that which should be as fast as possible. But currently on surface it is taking way longer than expected. I need matlab to use NPU for the classification. Can it be done?I have a surface pro 9 with snapdragon chip that has an in-built neural processing unit. I need to perform image classification on that which should be as fast as possible. But currently on surface it is taking way longer than expected. I need matlab to use NPU for the classification. Can it be done? I have a surface pro 9 with snapdragon chip that has an in-built neural processing unit. I need to perform image classification on that which should be as fast as possible. But currently on surface it is taking way longer than expected. I need matlab to use NPU for the classification. Can it be done? deep learning, image, ms surface pro, snapdragon cpu with nn unit, image classification MATLAB Answers — New Questions
task bar
hi everyone
recently im encountering a problem with my taskbar that my taskbar is not popping up while working with some other apps . but it pops up properly while in the desktop . does anyone has solution for it
hi everyone recently im encountering a problem with my taskbar that my taskbar is not popping up while working with some other apps . but it pops up properly while in the desktop . does anyone has solution for it Read More
combine spectrogram result in one figure
I have 20 min signal and would like to combine its sepectogram become one spectrogram consecutively. my idea is put index of each S, P, T value and then joining together in one array then using imagesc. But I don’t know if this flow is effective, since I have to combine for each 20 minutes into a month.
I write part of coding but I don’t know how to looping index for spectogram result.
Please help me.
%% SPECTROGRAM
clc, close all, clear all
set(0,’DefaultFigureWindowStyle’,’docked’)
datafold = uigetdir(pwd,’Select data Folder’);
myfiles=dir([datafold ‘/*.DAT’]);
N = length(myfiles) ; % total number of files
data = cell(N,1)
for i = 1:N
thisfile = myfiles(i).name ;
y = importdata(thisfile);
t=(0:length(y)-1)’;
Nspec=512;
wspec=hamming(Nspec);
Noverlap=Nspec/2;
fs=100;
[Si,Fi,Ti,P]=spectrogram(y,wspec,Noverlap,Nspec,fs,’xaxis’);
% nexttile
% imagesc(T/60,F,10*log10(P));
% axis xy;
% axesHandle.YLim = [0.1 10000];
% colormap default;
% cbar = colorbar;
% cbar.Label.String = {‘Intensity in dB’};
% xlabel(‘Time (s)’);
% ylabel(‘Freqwency(Hz)’);
% title(‘Spectrogram with RemInsRes’);
endI have 20 min signal and would like to combine its sepectogram become one spectrogram consecutively. my idea is put index of each S, P, T value and then joining together in one array then using imagesc. But I don’t know if this flow is effective, since I have to combine for each 20 minutes into a month.
I write part of coding but I don’t know how to looping index for spectogram result.
Please help me.
%% SPECTROGRAM
clc, close all, clear all
set(0,’DefaultFigureWindowStyle’,’docked’)
datafold = uigetdir(pwd,’Select data Folder’);
myfiles=dir([datafold ‘/*.DAT’]);
N = length(myfiles) ; % total number of files
data = cell(N,1)
for i = 1:N
thisfile = myfiles(i).name ;
y = importdata(thisfile);
t=(0:length(y)-1)’;
Nspec=512;
wspec=hamming(Nspec);
Noverlap=Nspec/2;
fs=100;
[Si,Fi,Ti,P]=spectrogram(y,wspec,Noverlap,Nspec,fs,’xaxis’);
% nexttile
% imagesc(T/60,F,10*log10(P));
% axis xy;
% axesHandle.YLim = [0.1 10000];
% colormap default;
% cbar = colorbar;
% cbar.Label.String = {‘Intensity in dB’};
% xlabel(‘Time (s)’);
% ylabel(‘Freqwency(Hz)’);
% title(‘Spectrogram with RemInsRes’);
end I have 20 min signal and would like to combine its sepectogram become one spectrogram consecutively. my idea is put index of each S, P, T value and then joining together in one array then using imagesc. But I don’t know if this flow is effective, since I have to combine for each 20 minutes into a month.
I write part of coding but I don’t know how to looping index for spectogram result.
Please help me.
%% SPECTROGRAM
clc, close all, clear all
set(0,’DefaultFigureWindowStyle’,’docked’)
datafold = uigetdir(pwd,’Select data Folder’);
myfiles=dir([datafold ‘/*.DAT’]);
N = length(myfiles) ; % total number of files
data = cell(N,1)
for i = 1:N
thisfile = myfiles(i).name ;
y = importdata(thisfile);
t=(0:length(y)-1)’;
Nspec=512;
wspec=hamming(Nspec);
Noverlap=Nspec/2;
fs=100;
[Si,Fi,Ti,P]=spectrogram(y,wspec,Noverlap,Nspec,fs,’xaxis’);
% nexttile
% imagesc(T/60,F,10*log10(P));
% axis xy;
% axesHandle.YLim = [0.1 10000];
% colormap default;
% cbar = colorbar;
% cbar.Label.String = {‘Intensity in dB’};
% xlabel(‘Time (s)’);
% ylabel(‘Freqwency(Hz)’);
% title(‘Spectrogram with RemInsRes’);
end combine spectrogram, spectrogram MATLAB Answers — New Questions
Scripts become blank and unviewable on R2022a/b (M1 mac)
I’m regularly experiencing an issue where several minutes after opening and using MATLAB, all tabs (for all other scripts/live scripts) asides from the one that I’ve been actively working on will become completely white and blank. Seemingly nothing will fix the issue except restarting MATLAB which is extremely annoying. The contents don’t seem to be getting affected, it just becomes impossible to work on anything except a single script. Closing and reopening the tabs does nothing and newly created scripts are also unusable. I have seen other posts suggesting that this could be an issue with opengl hardware rendering, however on my computer opengl software rendering doesn’t seem to be supported.
Computer specs:
MacOS Monterey 12.2.1
Macbook air M1 2020
Memory: 16 GB
MATLAB:
R2022b (same issue occurs on R2022a)
64-bit maci64
Please let me know if any other information would be helpful. Thanks!I’m regularly experiencing an issue where several minutes after opening and using MATLAB, all tabs (for all other scripts/live scripts) asides from the one that I’ve been actively working on will become completely white and blank. Seemingly nothing will fix the issue except restarting MATLAB which is extremely annoying. The contents don’t seem to be getting affected, it just becomes impossible to work on anything except a single script. Closing and reopening the tabs does nothing and newly created scripts are also unusable. I have seen other posts suggesting that this could be an issue with opengl hardware rendering, however on my computer opengl software rendering doesn’t seem to be supported.
Computer specs:
MacOS Monterey 12.2.1
Macbook air M1 2020
Memory: 16 GB
MATLAB:
R2022b (same issue occurs on R2022a)
64-bit maci64
Please let me know if any other information would be helpful. Thanks! I’m regularly experiencing an issue where several minutes after opening and using MATLAB, all tabs (for all other scripts/live scripts) asides from the one that I’ve been actively working on will become completely white and blank. Seemingly nothing will fix the issue except restarting MATLAB which is extremely annoying. The contents don’t seem to be getting affected, it just becomes impossible to work on anything except a single script. Closing and reopening the tabs does nothing and newly created scripts are also unusable. I have seen other posts suggesting that this could be an issue with opengl hardware rendering, however on my computer opengl software rendering doesn’t seem to be supported.
Computer specs:
MacOS Monterey 12.2.1
Macbook air M1 2020
Memory: 16 GB
MATLAB:
R2022b (same issue occurs on R2022a)
64-bit maci64
Please let me know if any other information would be helpful. Thanks! mac, matlab gui MATLAB Answers — New Questions
I have trouble getting MATLAB to increase altitude or plot tail height upward when I use a positive number. I have to use a negative number. Why? is this???
Code:
pn=0;
pe=0;
pd=0;
phi=0;
theta=0;
psi=0;
handle=[];
%Simulation parameters
dpn=0.5; %Change in position.
dpsi=0.01; %Change in yaw angle.
simlength=150;%Number of Sim Steps
%Draw and update the plane’s position.
for k = 1:simlength
pn = pn+dpn;
pe = pe+dpn;
%THE CODE THAT PRODUCES A PROBLEM IS BELOW
pd = pd – 0.1;
There’s also a problem with the tail fin. I have to designate it as being oriented "downward"…in the negative direction, to produce a vertical tail oriented upward. This is similar to the increment for the vertical height scale above, being increased with a negative number.Code:
pn=0;
pe=0;
pd=0;
phi=0;
theta=0;
psi=0;
handle=[];
%Simulation parameters
dpn=0.5; %Change in position.
dpsi=0.01; %Change in yaw angle.
simlength=150;%Number of Sim Steps
%Draw and update the plane’s position.
for k = 1:simlength
pn = pn+dpn;
pe = pe+dpn;
%THE CODE THAT PRODUCES A PROBLEM IS BELOW
pd = pd – 0.1;
There’s also a problem with the tail fin. I have to designate it as being oriented "downward"…in the negative direction, to produce a vertical tail oriented upward. This is similar to the increment for the vertical height scale above, being increased with a negative number. Code:
pn=0;
pe=0;
pd=0;
phi=0;
theta=0;
psi=0;
handle=[];
%Simulation parameters
dpn=0.5; %Change in position.
dpsi=0.01; %Change in yaw angle.
simlength=150;%Number of Sim Steps
%Draw and update the plane’s position.
for k = 1:simlength
pn = pn+dpn;
pe = pe+dpn;
%THE CODE THAT PRODUCES A PROBLEM IS BELOW
pd = pd – 0.1;
There’s also a problem with the tail fin. I have to designate it as being oriented "downward"…in the negative direction, to produce a vertical tail oriented upward. This is similar to the increment for the vertical height scale above, being increased with a negative number. down is up, why is up negative? MATLAB Answers — New Questions
Weird mouse wheel behavior in Outlook and Word (Microsoft 365)
Three years ago, @caioclra posted:
https://techcommunity.microsoft.com/t5/word/weird-mouse-wheel-behavior-on-office-2019/m-p/2688039
I’m running “Microsoft® Outlook® for Microsoft 365 MSO (Version 2308 Build 16.0.16731.20542) 64-bit” (Microsoft 365 Apps for Enterprise, Enterprise semi-annual channel). This has happened for quite some time – it’s not new.
I see the same thing. In Outlook and in Word, but not in Excel, my mouse scroll wheel (a Logitech M325) will cause document/email body text – _only_ document/email body text, _not_ Outlook’s message list – to scroll one extra line most times just after finishing the scroll action that I actually commanded. It almost looks like some too-big-for-his/her-britches software engineer’s idea of “cool semi-smooth scrolling”.
What it results in is (almost every time) unnecessary delay, and (frequently) the viewpoint ending up NOT where I want it/ NOT where my eyes expect it to end up after my brain processes how far and fast I scrolled the mouse wheel and what my eyes saw it doing .. up until right after the end-nope-not-quite-the-end of the scroll operation.
Video capture attached – look carefully, three or four times, right at the end of a scroll action, there’s a very slightly delayed one-more-line scroll. That’s what I want to get rid of.
How do I set Outlook (message body) and Word (document body) scrolling in Office (Microsoft 365 Apps for Enterprise) to NOT do this very wrong, one extra line at the end, semi-smooth scrolling, but just to scroll only and exactly as much as my mouse wheel moved?
thank you.
Three years ago, @caioclra posted:https://techcommunity.microsoft.com/t5/word/weird-mouse-wheel-behavior-on-office-2019/m-p/2688039 I’m running “Microsoft® Outlook® for Microsoft 365 MSO (Version 2308 Build 16.0.16731.20542) 64-bit” (Microsoft 365 Apps for Enterprise, Enterprise semi-annual channel). This has happened for quite some time – it’s not new. I see the same thing. In Outlook and in Word, but not in Excel, my mouse scroll wheel (a Logitech M325) will cause document/email body text – _only_ document/email body text, _not_ Outlook’s message list – to scroll one extra line most times just after finishing the scroll action that I actually commanded. It almost looks like some too-big-for-his/her-britches software engineer’s idea of “cool semi-smooth scrolling”. What it results in is (almost every time) unnecessary delay, and (frequently) the viewpoint ending up NOT where I want it/ NOT where my eyes expect it to end up after my brain processes how far and fast I scrolled the mouse wheel and what my eyes saw it doing .. up until right after the end-nope-not-quite-the-end of the scroll operation. Video capture attached – look carefully, three or four times, right at the end of a scroll action, there’s a very slightly delayed one-more-line scroll. That’s what I want to get rid of. How do I set Outlook (message body) and Word (document body) scrolling in Office (Microsoft 365 Apps for Enterprise) to NOT do this very wrong, one extra line at the end, semi-smooth scrolling, but just to scroll only and exactly as much as my mouse wheel moved? thank you. Read More
How could I use display function for this?
Hello there, I am using Matlab but it is not my thing at all so I have minimal knowledge about it. I would like to display the result of dt*t but I don’t know how to word it properly on the display function. Can someone help me please?Hello there, I am using Matlab but it is not my thing at all so I have minimal knowledge about it. I would like to display the result of dt*t but I don’t know how to word it properly on the display function. Can someone help me please? Hello there, I am using Matlab but it is not my thing at all so I have minimal knowledge about it. I would like to display the result of dt*t but I don’t know how to word it properly on the display function. Can someone help me please? display MATLAB Answers — New Questions
Fuzzy control problem: input 2 expects a value in range [-50 50], but has a value of 1035.94
I got these warning while running my model
Warning:In ‘bismillahfuzzysmc/SMC Controller/Position Controller XY/X Position Controller/Fuzzy Logic
Controller
with Ruleviewer/Fuzzy Logic
Controller’, input 2 expects a value in range [-50 50], but has a value of 1035.94.
Warning:In ‘bismillahfuzzysmc/SMC Controller/Position Controller XY/X Position Controller/Fuzzy Logic
Controller
with Ruleviewer/Fuzzy Logic
Controller’, no rules fired for Output 1. Defuzzified output value set to its mean range value 0.
I already tried to adjust the input 2 but still got those warnings
Here’s the block :
Here’s the fis file:
[System]
Name=’Ux3_’
Type=’mamdani’
Version=2.0
NumInputs=2
NumOutputs=1
NumRules=49
AndMethod=’min’
OrMethod=’max’
ImpMethod=’min’
AggMethod=’max’
DefuzzMethod=’centroid’
[Input1]
Name=’x’
Range=[-5.5 5.5]
NumMFs=7
MF1=’NH’:’trapmf’,[-6.875 -5.5 -4.95 -3.575]
MF2=’NM’:’trimf’,[-4.675 -3.575 -2.2]
MF3=’NL’:’trimf’,[-3.575 -2.2 -0.825]
MF4=’Z’:’trimf’,[-0.825 0 0.825]
MF5=’PL’:’trimf’,[0.825 2.2 3.575]
MF6=’PM’:’trimf’,[2.2 3.575 4.95]
MF7=’PH’:’trapmf’,[3.575 4.95 6.325 7.7]
[Input2]
Name=’x_derivative’
Range=[-50 50]
NumMFs=7
MF1=’NH’:’trapmf’,[-58.33 -50 -41.67 -33.33]
MF2=’NM’:’trimf’,[-41.67 -33.33 -25]
MF3=’NL’:’trimf’,[-33.33 -20 -8.333]
MF4=’Z’:’trimf’,[-8.333 0 8.333]
MF5=’PL’:’trimf’,[8.333 20 33.33]
MF6=’PM’:’trimf’,[25 33.33 41.67]
MF7=’PH’:’trapmf’,[33.33 41.67 50 58.33]
[Output1]
Name=’output1′
Range=[-2e-06 2e-06]
NumMFs=7
MF1=’NH’:’trapmf’,[-2.7e-06 -2.2e-06 -1.557e-06 -1.057e-06]
MF2=’NM’:’trimf’,[-1.557e-06 -1.057e-06 -5.568e-07]
MF3=’NL’:’trimf’,[-1.057e-06 -5.568e-07 -5.68e-08]
MF4=’Z’:’trimf’,[-1.72e-08 0 3.6e-08]
MF5=’PL’:’trimf’,[9e-08 5.9e-07 1.09e-06]
MF6=’PM’:’trimf’,[5.9e-07 1.09e-06 1.59e-06]
MF7=’PH’:’trapmf’,[1.09e-06 1.59e-06 2.088e-06 2.588e-06]
[Rules]
1 1, 7 (1) : 1
2 1, 7 (1) : 1
3 1, 7 (1) : 1
4 1, 7 (1) : 1
5 1, 6 (1) : 1
6 1, 5 (1) : 1
7 1, 4 (1) : 1
1 2, 7 (1) : 1
2 2, 7 (1) : 1
3 2, 7 (1) : 1
4 2, 6 (1) : 1
5 2, 5 (1) : 1
6 2, 4 (1) : 1
7 2, 3 (1) : 1
1 3, 7 (1) : 1
2 3, 7 (1) : 1
3 3, 6 (1) : 1
4 3, 5 (1) : 1
5 3, 4 (1) : 1
6 3, 3 (1) : 1
7 3, 3 (1) : 1
1 4, 7 (1) : 1
2 4, 6 (1) : 1
3 4, 5 (1) : 1
4 4, 4 (1) : 1
5 4, 3 (1) : 1
6 4, 3 (1) : 1
7 4, 2 (1) : 1
1 5, 6 (1) : 1
2 5, 5 (1) : 1
3 5, 4 (1) : 1
4 5, 3 (1) : 1
5 5, 3 (1) : 1
6 5, 2 (1) : 1
7 5, 2 (1) : 1
1 6, 5 (1) : 1
2 6, 4 (1) : 1
3 6, 3 (1) : 1
4 6, 3 (1) : 1
5 6, 2 (1) : 1
6 6, 2 (1) : 1
7 6, 1 (1) : 1
1 7, 4 (1) : 1
2 7, 3 (1) : 1
3 7, 3 (1) : 1
4 7, 2 (1) : 1
5 7, 1 (1) : 1
6 7, 1 (1) : 1
7 7, 1 (1) : 1I got these warning while running my model
Warning:In ‘bismillahfuzzysmc/SMC Controller/Position Controller XY/X Position Controller/Fuzzy Logic
Controller
with Ruleviewer/Fuzzy Logic
Controller’, input 2 expects a value in range [-50 50], but has a value of 1035.94.
Warning:In ‘bismillahfuzzysmc/SMC Controller/Position Controller XY/X Position Controller/Fuzzy Logic
Controller
with Ruleviewer/Fuzzy Logic
Controller’, no rules fired for Output 1. Defuzzified output value set to its mean range value 0.
I already tried to adjust the input 2 but still got those warnings
Here’s the block :
Here’s the fis file:
[System]
Name=’Ux3_’
Type=’mamdani’
Version=2.0
NumInputs=2
NumOutputs=1
NumRules=49
AndMethod=’min’
OrMethod=’max’
ImpMethod=’min’
AggMethod=’max’
DefuzzMethod=’centroid’
[Input1]
Name=’x’
Range=[-5.5 5.5]
NumMFs=7
MF1=’NH’:’trapmf’,[-6.875 -5.5 -4.95 -3.575]
MF2=’NM’:’trimf’,[-4.675 -3.575 -2.2]
MF3=’NL’:’trimf’,[-3.575 -2.2 -0.825]
MF4=’Z’:’trimf’,[-0.825 0 0.825]
MF5=’PL’:’trimf’,[0.825 2.2 3.575]
MF6=’PM’:’trimf’,[2.2 3.575 4.95]
MF7=’PH’:’trapmf’,[3.575 4.95 6.325 7.7]
[Input2]
Name=’x_derivative’
Range=[-50 50]
NumMFs=7
MF1=’NH’:’trapmf’,[-58.33 -50 -41.67 -33.33]
MF2=’NM’:’trimf’,[-41.67 -33.33 -25]
MF3=’NL’:’trimf’,[-33.33 -20 -8.333]
MF4=’Z’:’trimf’,[-8.333 0 8.333]
MF5=’PL’:’trimf’,[8.333 20 33.33]
MF6=’PM’:’trimf’,[25 33.33 41.67]
MF7=’PH’:’trapmf’,[33.33 41.67 50 58.33]
[Output1]
Name=’output1′
Range=[-2e-06 2e-06]
NumMFs=7
MF1=’NH’:’trapmf’,[-2.7e-06 -2.2e-06 -1.557e-06 -1.057e-06]
MF2=’NM’:’trimf’,[-1.557e-06 -1.057e-06 -5.568e-07]
MF3=’NL’:’trimf’,[-1.057e-06 -5.568e-07 -5.68e-08]
MF4=’Z’:’trimf’,[-1.72e-08 0 3.6e-08]
MF5=’PL’:’trimf’,[9e-08 5.9e-07 1.09e-06]
MF6=’PM’:’trimf’,[5.9e-07 1.09e-06 1.59e-06]
MF7=’PH’:’trapmf’,[1.09e-06 1.59e-06 2.088e-06 2.588e-06]
[Rules]
1 1, 7 (1) : 1
2 1, 7 (1) : 1
3 1, 7 (1) : 1
4 1, 7 (1) : 1
5 1, 6 (1) : 1
6 1, 5 (1) : 1
7 1, 4 (1) : 1
1 2, 7 (1) : 1
2 2, 7 (1) : 1
3 2, 7 (1) : 1
4 2, 6 (1) : 1
5 2, 5 (1) : 1
6 2, 4 (1) : 1
7 2, 3 (1) : 1
1 3, 7 (1) : 1
2 3, 7 (1) : 1
3 3, 6 (1) : 1
4 3, 5 (1) : 1
5 3, 4 (1) : 1
6 3, 3 (1) : 1
7 3, 3 (1) : 1
1 4, 7 (1) : 1
2 4, 6 (1) : 1
3 4, 5 (1) : 1
4 4, 4 (1) : 1
5 4, 3 (1) : 1
6 4, 3 (1) : 1
7 4, 2 (1) : 1
1 5, 6 (1) : 1
2 5, 5 (1) : 1
3 5, 4 (1) : 1
4 5, 3 (1) : 1
5 5, 3 (1) : 1
6 5, 2 (1) : 1
7 5, 2 (1) : 1
1 6, 5 (1) : 1
2 6, 4 (1) : 1
3 6, 3 (1) : 1
4 6, 3 (1) : 1
5 6, 2 (1) : 1
6 6, 2 (1) : 1
7 6, 1 (1) : 1
1 7, 4 (1) : 1
2 7, 3 (1) : 1
3 7, 3 (1) : 1
4 7, 2 (1) : 1
5 7, 1 (1) : 1
6 7, 1 (1) : 1
7 7, 1 (1) : 1 I got these warning while running my model
Warning:In ‘bismillahfuzzysmc/SMC Controller/Position Controller XY/X Position Controller/Fuzzy Logic
Controller
with Ruleviewer/Fuzzy Logic
Controller’, input 2 expects a value in range [-50 50], but has a value of 1035.94.
Warning:In ‘bismillahfuzzysmc/SMC Controller/Position Controller XY/X Position Controller/Fuzzy Logic
Controller
with Ruleviewer/Fuzzy Logic
Controller’, no rules fired for Output 1. Defuzzified output value set to its mean range value 0.
I already tried to adjust the input 2 but still got those warnings
Here’s the block :
Here’s the fis file:
[System]
Name=’Ux3_’
Type=’mamdani’
Version=2.0
NumInputs=2
NumOutputs=1
NumRules=49
AndMethod=’min’
OrMethod=’max’
ImpMethod=’min’
AggMethod=’max’
DefuzzMethod=’centroid’
[Input1]
Name=’x’
Range=[-5.5 5.5]
NumMFs=7
MF1=’NH’:’trapmf’,[-6.875 -5.5 -4.95 -3.575]
MF2=’NM’:’trimf’,[-4.675 -3.575 -2.2]
MF3=’NL’:’trimf’,[-3.575 -2.2 -0.825]
MF4=’Z’:’trimf’,[-0.825 0 0.825]
MF5=’PL’:’trimf’,[0.825 2.2 3.575]
MF6=’PM’:’trimf’,[2.2 3.575 4.95]
MF7=’PH’:’trapmf’,[3.575 4.95 6.325 7.7]
[Input2]
Name=’x_derivative’
Range=[-50 50]
NumMFs=7
MF1=’NH’:’trapmf’,[-58.33 -50 -41.67 -33.33]
MF2=’NM’:’trimf’,[-41.67 -33.33 -25]
MF3=’NL’:’trimf’,[-33.33 -20 -8.333]
MF4=’Z’:’trimf’,[-8.333 0 8.333]
MF5=’PL’:’trimf’,[8.333 20 33.33]
MF6=’PM’:’trimf’,[25 33.33 41.67]
MF7=’PH’:’trapmf’,[33.33 41.67 50 58.33]
[Output1]
Name=’output1′
Range=[-2e-06 2e-06]
NumMFs=7
MF1=’NH’:’trapmf’,[-2.7e-06 -2.2e-06 -1.557e-06 -1.057e-06]
MF2=’NM’:’trimf’,[-1.557e-06 -1.057e-06 -5.568e-07]
MF3=’NL’:’trimf’,[-1.057e-06 -5.568e-07 -5.68e-08]
MF4=’Z’:’trimf’,[-1.72e-08 0 3.6e-08]
MF5=’PL’:’trimf’,[9e-08 5.9e-07 1.09e-06]
MF6=’PM’:’trimf’,[5.9e-07 1.09e-06 1.59e-06]
MF7=’PH’:’trapmf’,[1.09e-06 1.59e-06 2.088e-06 2.588e-06]
[Rules]
1 1, 7 (1) : 1
2 1, 7 (1) : 1
3 1, 7 (1) : 1
4 1, 7 (1) : 1
5 1, 6 (1) : 1
6 1, 5 (1) : 1
7 1, 4 (1) : 1
1 2, 7 (1) : 1
2 2, 7 (1) : 1
3 2, 7 (1) : 1
4 2, 6 (1) : 1
5 2, 5 (1) : 1
6 2, 4 (1) : 1
7 2, 3 (1) : 1
1 3, 7 (1) : 1
2 3, 7 (1) : 1
3 3, 6 (1) : 1
4 3, 5 (1) : 1
5 3, 4 (1) : 1
6 3, 3 (1) : 1
7 3, 3 (1) : 1
1 4, 7 (1) : 1
2 4, 6 (1) : 1
3 4, 5 (1) : 1
4 4, 4 (1) : 1
5 4, 3 (1) : 1
6 4, 3 (1) : 1
7 4, 2 (1) : 1
1 5, 6 (1) : 1
2 5, 5 (1) : 1
3 5, 4 (1) : 1
4 5, 3 (1) : 1
5 5, 3 (1) : 1
6 5, 2 (1) : 1
7 5, 2 (1) : 1
1 6, 5 (1) : 1
2 6, 4 (1) : 1
3 6, 3 (1) : 1
4 6, 3 (1) : 1
5 6, 2 (1) : 1
6 6, 2 (1) : 1
7 6, 1 (1) : 1
1 7, 4 (1) : 1
2 7, 3 (1) : 1
3 7, 3 (1) : 1
4 7, 2 (1) : 1
5 7, 1 (1) : 1
6 7, 1 (1) : 1
7 7, 1 (1) : 1 fuzzy, control, fuzzy logic MATLAB Answers — New Questions
Second order non linear differential
I have to solve the following equation: y”(s) + cos(y) = 0
I actually have no idea what function is the correct one in this case or even if MatLab can solve this, do you have any suggestion?I have to solve the following equation: y”(s) + cos(y) = 0
I actually have no idea what function is the correct one in this case or even if MatLab can solve this, do you have any suggestion? I have to solve the following equation: y”(s) + cos(y) = 0
I actually have no idea what function is the correct one in this case or even if MatLab can solve this, do you have any suggestion? mathematics, differential equations, nonlinear, equation MATLAB Answers — New Questions
How to get radar measurements instead of only radar detections in drivingRadarDataGenerator?
Hello all,
I’m doing reearch on automative radars and I’m using drivingScenarioDesigner app. It works great but only generates radar detections instead of radar measurements. I’m looking to a way in which I can generate radar measurements (baseband signals) instead of only detections.
My final target is to perform the image synthesis of the radar myself.
Thank you,Hello all,
I’m doing reearch on automative radars and I’m using drivingScenarioDesigner app. It works great but only generates radar detections instead of radar measurements. I’m looking to a way in which I can generate radar measurements (baseband signals) instead of only detections.
My final target is to perform the image synthesis of the radar myself.
Thank you, Hello all,
I’m doing reearch on automative radars and I’m using drivingScenarioDesigner app. It works great but only generates radar detections instead of radar measurements. I’m looking to a way in which I can generate radar measurements (baseband signals) instead of only detections.
My final target is to perform the image synthesis of the radar myself.
Thank you, radar, detections, driving scenario, imaging, automotive radar MATLAB Answers — New Questions
How do I use ASIO, ALSA, and other APIs to communicate with PC audio hardware from Simulink?
I want to build my own version of the PortAudio library and use it in place of the PortAudio library that ships with the Signal Processing Blockset, so I can use the API of my choice (ASIO, ALSA, OSS, DirectSound, CoreAudio) to communicate with the audio hardware on my PC from Simulink.I want to build my own version of the PortAudio library and use it in place of the PortAudio library that ships with the Signal Processing Blockset, so I can use the API of my choice (ASIO, ALSA, OSS, DirectSound, CoreAudio) to communicate with the audio hardware on my PC from Simulink. I want to build my own version of the PortAudio library and use it in place of the PortAudio library that ships with the Signal Processing Blockset, so I can use the API of my choice (ASIO, ALSA, OSS, DirectSound, CoreAudio) to communicate with the audio hardware on my PC from Simulink. MATLAB Answers — New Questions
how to choose EMG Windwo size?
ciao,
if i have a emgdata set of length 260001 and fs=1000. i want to analyse the data in small windows,but i am unable to decide how can i choose a window size. I need a scientific calculation to choose a window size. i read somewhere that the signal should be 5 times larger then the choosen window but i need a proper mathematical reasoning.ciao,
if i have a emgdata set of length 260001 and fs=1000. i want to analyse the data in small windows,but i am unable to decide how can i choose a window size. I need a scientific calculation to choose a window size. i read somewhere that the signal should be 5 times larger then the choosen window but i need a proper mathematical reasoning. ciao,
if i have a emgdata set of length 260001 and fs=1000. i want to analyse the data in small windows,but i am unable to decide how can i choose a window size. I need a scientific calculation to choose a window size. i read somewhere that the signal should be 5 times larger then the choosen window but i need a proper mathematical reasoning. window size MATLAB Answers — New Questions
Matlab unable to install add-ons
I’m on Arch Linux and when I try to install an add-on on Matlab, I get this error: "Unable to install because you do not have write permissions to this folder: /usr/local/MATLAB/R2024a" How can I solve this?I’m on Arch Linux and when I try to install an add-on on Matlab, I get this error: "Unable to install because you do not have write permissions to this folder: /usr/local/MATLAB/R2024a" How can I solve this? I’m on Arch Linux and when I try to install an add-on on Matlab, I get this error: "Unable to install because you do not have write permissions to this folder: /usr/local/MATLAB/R2024a" How can I solve this? matlab MATLAB Answers — New Questions
I have the 3D MTF and i want to convert this 3D MTF to the common 2D MTF as in the image attached. I want to plot MTF vs Spatial frequency graph.
How to convert 3D mtf in to 2D mtf and plot mtf vs Spatial frequency graph.How to convert 3D mtf in to 2D mtf and plot mtf vs Spatial frequency graph. How to convert 3D mtf in to 2D mtf and plot mtf vs Spatial frequency graph. mtf MATLAB Answers — New Questions
‘!invalid contrast’ when running contrasts using SPM
Hey all,
I am trying to run a contrast using SPM (SPM12) in order to determine whether brain activation differs between two conditions, using the code snippet below:
%% Contrasts
matlabbatch{3}.spm.stats.con.consess{1}.tcon.name = ‘nav-follow’;
disp(length(names));
disp(size(confounds_matrix,2));
initial_convec = [0 0 -1 0 0 1 0 0 0 0 0 0 0];
num_confounds = size(confounds_matrix, 2);
additional_convec = zeros(1, num_confounds+1);
convec = [initial_convec, additional_convec];
matlabbatch{3}.spm.stats.con.consess{1}.tcon.convec = convec;
matlabbatch{3}.spm.stats.con.consess{1}.tcon.sessrep = ‘replsc’; % ‘none’;
matlabbatch{3}.spm.stats.con.delete = 0;
spm_jobman(‘run’, matlabbatch);
However, I keep getting the error message ‘!invalid contrast’.
Contrasts folder : ./GroupHunt/spm_output/sub-01
0 0 -1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 <- !invalid contrast
01-Jun-2024 14:03:55 – Failed ‘Contrast Manager’
Error using spm_run_con (line 254)
Error in contrast specification
In file "/mnt/data/fMRI/GroupHunt/spm12/config/spm_run_con.m" (v7738), function "spm_run_con" at line 254.
The following modules did not run:
Failed: Contrast Manager
However, I can’t understand why this contrast is invalid. There are 26 values in the ‘convec’ vector which specifies the contrast and 26 regressors in my design matrix.
The variable ‘convec’ looks as follows:
convec =
Columns 1 through 10
0 0 -1 0 0 1 0 0 0 0
Columns 11 through 20
0 0 0 0 0 0 0 0 0 0
Columns 21 through 26
0 0 0 0 0 0
My design matrix has 26 regressors as follows:
load(fullfile(subdir, ‘SPM.mat’));
numRegressors = size(SPM.xX.X, 2);
disp([‘Number of regressors: ‘, num2str(numRegressors)]);
Number of regressors: 26
I would be so so grateful for a helping hand! :DHey all,
I am trying to run a contrast using SPM (SPM12) in order to determine whether brain activation differs between two conditions, using the code snippet below:
%% Contrasts
matlabbatch{3}.spm.stats.con.consess{1}.tcon.name = ‘nav-follow’;
disp(length(names));
disp(size(confounds_matrix,2));
initial_convec = [0 0 -1 0 0 1 0 0 0 0 0 0 0];
num_confounds = size(confounds_matrix, 2);
additional_convec = zeros(1, num_confounds+1);
convec = [initial_convec, additional_convec];
matlabbatch{3}.spm.stats.con.consess{1}.tcon.convec = convec;
matlabbatch{3}.spm.stats.con.consess{1}.tcon.sessrep = ‘replsc’; % ‘none’;
matlabbatch{3}.spm.stats.con.delete = 0;
spm_jobman(‘run’, matlabbatch);
However, I keep getting the error message ‘!invalid contrast’.
Contrasts folder : ./GroupHunt/spm_output/sub-01
0 0 -1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 <- !invalid contrast
01-Jun-2024 14:03:55 – Failed ‘Contrast Manager’
Error using spm_run_con (line 254)
Error in contrast specification
In file "/mnt/data/fMRI/GroupHunt/spm12/config/spm_run_con.m" (v7738), function "spm_run_con" at line 254.
The following modules did not run:
Failed: Contrast Manager
However, I can’t understand why this contrast is invalid. There are 26 values in the ‘convec’ vector which specifies the contrast and 26 regressors in my design matrix.
The variable ‘convec’ looks as follows:
convec =
Columns 1 through 10
0 0 -1 0 0 1 0 0 0 0
Columns 11 through 20
0 0 0 0 0 0 0 0 0 0
Columns 21 through 26
0 0 0 0 0 0
My design matrix has 26 regressors as follows:
load(fullfile(subdir, ‘SPM.mat’));
numRegressors = size(SPM.xX.X, 2);
disp([‘Number of regressors: ‘, num2str(numRegressors)]);
Number of regressors: 26
I would be so so grateful for a helping hand! 😀 Hey all,
I am trying to run a contrast using SPM (SPM12) in order to determine whether brain activation differs between two conditions, using the code snippet below:
%% Contrasts
matlabbatch{3}.spm.stats.con.consess{1}.tcon.name = ‘nav-follow’;
disp(length(names));
disp(size(confounds_matrix,2));
initial_convec = [0 0 -1 0 0 1 0 0 0 0 0 0 0];
num_confounds = size(confounds_matrix, 2);
additional_convec = zeros(1, num_confounds+1);
convec = [initial_convec, additional_convec];
matlabbatch{3}.spm.stats.con.consess{1}.tcon.convec = convec;
matlabbatch{3}.spm.stats.con.consess{1}.tcon.sessrep = ‘replsc’; % ‘none’;
matlabbatch{3}.spm.stats.con.delete = 0;
spm_jobman(‘run’, matlabbatch);
However, I keep getting the error message ‘!invalid contrast’.
Contrasts folder : ./GroupHunt/spm_output/sub-01
0 0 -1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 <- !invalid contrast
01-Jun-2024 14:03:55 – Failed ‘Contrast Manager’
Error using spm_run_con (line 254)
Error in contrast specification
In file "/mnt/data/fMRI/GroupHunt/spm12/config/spm_run_con.m" (v7738), function "spm_run_con" at line 254.
The following modules did not run:
Failed: Contrast Manager
However, I can’t understand why this contrast is invalid. There are 26 values in the ‘convec’ vector which specifies the contrast and 26 regressors in my design matrix.
The variable ‘convec’ looks as follows:
convec =
Columns 1 through 10
0 0 -1 0 0 1 0 0 0 0
Columns 11 through 20
0 0 0 0 0 0 0 0 0 0
Columns 21 through 26
0 0 0 0 0 0
My design matrix has 26 regressors as follows:
load(fullfile(subdir, ‘SPM.mat’));
numRegressors = size(SPM.xX.X, 2);
disp([‘Number of regressors: ‘, num2str(numRegressors)]);
Number of regressors: 26
I would be so so grateful for a helping hand! 😀 contrasts, spm, matlab, fmri, brain MATLAB Answers — New Questions
I can’t get my trial version of Matlab
I can’t get my trial version of MatlabI can’t get my trial version of Matlab I can’t get my trial version of Matlab trial version – unavailable, installation MATLAB Answers — New Questions
Why doesn’t Output Maximum work like I expect it to
Hello all,
Sometimes it just feels like MATLAB doesn’t work logically, and I am sure it is because I am failing to grasp some key concept. Everything always just feels way more difficult than I expect it to be. Today there is an issue with Simulink. I have searched on Google for an answer, tried to watch relevant videos and read the help. Still no joy.
I am trying to set the maximum value for a signal so that it doesn’t blow the scaling on my scope plot. I am measuring the Unit Impulse response of a series RLC circuit. As you probably know, the ideal impulse is 0s in duration and infinite amplitude. In reality though, I excite the circuit by summing two step signals, one which steps it up to a high value (e.g. 100) and then the other to pull it down very shortly thereafter.
I then want to find a way to put a max on the signal, so that it only goes to a max of 1, so that it may be represented on the scope as a Unit Impulse, (i.e. Amplitude of 1). I have tried messing with the "Output maximum" field on the "Signal Attributes tab of both the Add block and the Max block, with no success. I don’t understand why putting for example 2 in that field doesn’t cap the signal to a max of 2. What am I missing?Hello all,
Sometimes it just feels like MATLAB doesn’t work logically, and I am sure it is because I am failing to grasp some key concept. Everything always just feels way more difficult than I expect it to be. Today there is an issue with Simulink. I have searched on Google for an answer, tried to watch relevant videos and read the help. Still no joy.
I am trying to set the maximum value for a signal so that it doesn’t blow the scaling on my scope plot. I am measuring the Unit Impulse response of a series RLC circuit. As you probably know, the ideal impulse is 0s in duration and infinite amplitude. In reality though, I excite the circuit by summing two step signals, one which steps it up to a high value (e.g. 100) and then the other to pull it down very shortly thereafter.
I then want to find a way to put a max on the signal, so that it only goes to a max of 1, so that it may be represented on the scope as a Unit Impulse, (i.e. Amplitude of 1). I have tried messing with the "Output maximum" field on the "Signal Attributes tab of both the Add block and the Max block, with no success. I don’t understand why putting for example 2 in that field doesn’t cap the signal to a max of 2. What am I missing? Hello all,
Sometimes it just feels like MATLAB doesn’t work logically, and I am sure it is because I am failing to grasp some key concept. Everything always just feels way more difficult than I expect it to be. Today there is an issue with Simulink. I have searched on Google for an answer, tried to watch relevant videos and read the help. Still no joy.
I am trying to set the maximum value for a signal so that it doesn’t blow the scaling on my scope plot. I am measuring the Unit Impulse response of a series RLC circuit. As you probably know, the ideal impulse is 0s in duration and infinite amplitude. In reality though, I excite the circuit by summing two step signals, one which steps it up to a high value (e.g. 100) and then the other to pull it down very shortly thereafter.
I then want to find a way to put a max on the signal, so that it only goes to a max of 1, so that it may be represented on the scope as a Unit Impulse, (i.e. Amplitude of 1). I have tried messing with the "Output maximum" field on the "Signal Attributes tab of both the Add block and the Max block, with no success. I don’t understand why putting for example 2 in that field doesn’t cap the signal to a max of 2. What am I missing? signal attributes, output maximum MATLAB Answers — New Questions
How to combine geoaxes and contourf plot?
I would like to combine geoaxes with satellite view and a contourf plot. For example:
geoaxes(); geolimits([20, 30], [-90, -80]); geobasemap(‘satellite’)
And now, given longitude, latitude and sea surface temperature, plot the sea surface temperature as a contour plot. For instance:
contourf(lon, lat, SST)
But this throws this error:
Error using newplot (line 81)
Adding Cartesian plot to geoaxes is not supported.
Error in contourf (line 75)
cax = newplot(cax);
Trying the corresponding function from the Mapping Toolbox:
contourfm(lon, lat, SST)
Error using hggroup
Group cannot be a child of GeographicAxes.
Error in internal.mapgraph.HGGroupAdapter (line 62)
g = hggroup(‘Parent’,ax);
Error in internal.mapgraph.ContourGroup (line 282)
h = h@internal.mapgraph.HGGroupAdapter(args{:});
Error in internal.mapgraph.GeographicContourGroup (line 55)
h = h@internal.mapgraph.ContourGroup(varargin{:});
Error in contourm (line 111)
h = internal.mapgraph.GeographicContourGroup(ax, Z, R, levelList);
Error in contourfm (line 39)
contourm(varargin{:},’Fill’,’on’,’DefaultLineColor’,’black’);
I am wondering if it is possible to combine the satellite land view offered by geoaxes together with a contour plot of a 2D geographical array. Or perhaps is it possible to get a satellite land view with the Mapping Toolbox and then use contourfm?
Thanks in advanceI would like to combine geoaxes with satellite view and a contourf plot. For example:
geoaxes(); geolimits([20, 30], [-90, -80]); geobasemap(‘satellite’)
And now, given longitude, latitude and sea surface temperature, plot the sea surface temperature as a contour plot. For instance:
contourf(lon, lat, SST)
But this throws this error:
Error using newplot (line 81)
Adding Cartesian plot to geoaxes is not supported.
Error in contourf (line 75)
cax = newplot(cax);
Trying the corresponding function from the Mapping Toolbox:
contourfm(lon, lat, SST)
Error using hggroup
Group cannot be a child of GeographicAxes.
Error in internal.mapgraph.HGGroupAdapter (line 62)
g = hggroup(‘Parent’,ax);
Error in internal.mapgraph.ContourGroup (line 282)
h = h@internal.mapgraph.HGGroupAdapter(args{:});
Error in internal.mapgraph.GeographicContourGroup (line 55)
h = h@internal.mapgraph.ContourGroup(varargin{:});
Error in contourm (line 111)
h = internal.mapgraph.GeographicContourGroup(ax, Z, R, levelList);
Error in contourfm (line 39)
contourm(varargin{:},’Fill’,’on’,’DefaultLineColor’,’black’);
I am wondering if it is possible to combine the satellite land view offered by geoaxes together with a contour plot of a 2D geographical array. Or perhaps is it possible to get a satellite land view with the Mapping Toolbox and then use contourfm?
Thanks in advance I would like to combine geoaxes with satellite view and a contourf plot. For example:
geoaxes(); geolimits([20, 30], [-90, -80]); geobasemap(‘satellite’)
And now, given longitude, latitude and sea surface temperature, plot the sea surface temperature as a contour plot. For instance:
contourf(lon, lat, SST)
But this throws this error:
Error using newplot (line 81)
Adding Cartesian plot to geoaxes is not supported.
Error in contourf (line 75)
cax = newplot(cax);
Trying the corresponding function from the Mapping Toolbox:
contourfm(lon, lat, SST)
Error using hggroup
Group cannot be a child of GeographicAxes.
Error in internal.mapgraph.HGGroupAdapter (line 62)
g = hggroup(‘Parent’,ax);
Error in internal.mapgraph.ContourGroup (line 282)
h = h@internal.mapgraph.HGGroupAdapter(args{:});
Error in internal.mapgraph.GeographicContourGroup (line 55)
h = h@internal.mapgraph.ContourGroup(varargin{:});
Error in contourm (line 111)
h = internal.mapgraph.GeographicContourGroup(ax, Z, R, levelList);
Error in contourfm (line 39)
contourm(varargin{:},’Fill’,’on’,’DefaultLineColor’,’black’);
I am wondering if it is possible to combine the satellite land view offered by geoaxes together with a contour plot of a 2D geographical array. Or perhaps is it possible to get a satellite land view with the Mapping Toolbox and then use contourfm?
Thanks in advance geoaxes, satellite, contourf MATLAB Answers — New Questions