Category: News
Numerical method to solve matric for eigen values of matrix (the input of matrix is an array)?
Data1 = readtable(‘D:VIT PHDWork 3 _ Exceptional SensingCST FilesAeiphi.xlsx’);
T1=table2array(Data1);
freq = T1(:,2); % Frequency (in THz)
txx = T1(:,3); % Amplitude of Co-Polarozation XX
P1 = T1(:,4); % Phase of Co-Polarozation XX
tyy = T1(:,5); % Amplitude of Co-Polarozation YY
P2 = T1(:,6); % Phase of Co-Polarozation YY
txy = T1(:,7); % Amplitude of Cross-Polarozation XY
P3 = T1(:,8); % Phase of Cross-Polarozation XY
tyx = T1(:,9); % Amplitude of Cross-Polarozation YX
P4 = T1(:,10); % Phase of Cross-Polarozation YX
T_XX = txx.*exp(1i.*P1); % Transmittance of co – polarozation of XX
T_YY = tyy.*exp(1i.*P2); % Transmittance of co – polarizarion of yy
T_XY = txy.*exp(1i.*P3); % Transmittance of cross polarization of xy
T_YX = tyx.*exp(1i.*P4); % Transmittance of cross polarization of yx
TT = table(T_XX,T_YY,T_XY,T_YX);
%%%% Eigen Matrix
ii = 1:1:1002;
n = length(ii);
for i = 1:n
T = [T_XX(i,1), T_XY(i,1); T_YX(i,1), T_YY(i,1)]; % Eigen Matrix for each frequency
E = eig(T); % Eigen Values
val = [E(1,1), E(2,1)]; % Reordering the Matrix
E1(i,1) = val(:,1); % Eigen Value 1
E2(i,1) = val(:,2); % Eigen value 2
ii=ii+1;
ES1(:,1) = real(E1(:,1));
ES2(:,1) = real(E2(:,1));
ephi1(:,1) = imag(E1(:,1));
ephi2(:,1) = imag(E2(:,1));
end
%% From eigen values separate real and imaginary part.
% (Real part: Transmission coffecient, Imaginary part: Phase)
a = abs(ES1);
b = abs(ES2);
c = ephi1;
d = ephi2;
T2 = table(a,b,c,d)
figure
plot(freq,a) % Plot of freq vs real eigen value 1 and 2
plot(freq,b)
ylim([0 1])
plot(freq,ephi1,freq,ephi2) % Plot of freq vs imag eigen value 1 and 2
ylim([-0.6 0.6])Data1 = readtable(‘D:VIT PHDWork 3 _ Exceptional SensingCST FilesAeiphi.xlsx’);
T1=table2array(Data1);
freq = T1(:,2); % Frequency (in THz)
txx = T1(:,3); % Amplitude of Co-Polarozation XX
P1 = T1(:,4); % Phase of Co-Polarozation XX
tyy = T1(:,5); % Amplitude of Co-Polarozation YY
P2 = T1(:,6); % Phase of Co-Polarozation YY
txy = T1(:,7); % Amplitude of Cross-Polarozation XY
P3 = T1(:,8); % Phase of Cross-Polarozation XY
tyx = T1(:,9); % Amplitude of Cross-Polarozation YX
P4 = T1(:,10); % Phase of Cross-Polarozation YX
T_XX = txx.*exp(1i.*P1); % Transmittance of co – polarozation of XX
T_YY = tyy.*exp(1i.*P2); % Transmittance of co – polarizarion of yy
T_XY = txy.*exp(1i.*P3); % Transmittance of cross polarization of xy
T_YX = tyx.*exp(1i.*P4); % Transmittance of cross polarization of yx
TT = table(T_XX,T_YY,T_XY,T_YX);
%%%% Eigen Matrix
ii = 1:1:1002;
n = length(ii);
for i = 1:n
T = [T_XX(i,1), T_XY(i,1); T_YX(i,1), T_YY(i,1)]; % Eigen Matrix for each frequency
E = eig(T); % Eigen Values
val = [E(1,1), E(2,1)]; % Reordering the Matrix
E1(i,1) = val(:,1); % Eigen Value 1
E2(i,1) = val(:,2); % Eigen value 2
ii=ii+1;
ES1(:,1) = real(E1(:,1));
ES2(:,1) = real(E2(:,1));
ephi1(:,1) = imag(E1(:,1));
ephi2(:,1) = imag(E2(:,1));
end
%% From eigen values separate real and imaginary part.
% (Real part: Transmission coffecient, Imaginary part: Phase)
a = abs(ES1);
b = abs(ES2);
c = ephi1;
d = ephi2;
T2 = table(a,b,c,d)
figure
plot(freq,a) % Plot of freq vs real eigen value 1 and 2
plot(freq,b)
ylim([0 1])
plot(freq,ephi1,freq,ephi2) % Plot of freq vs imag eigen value 1 and 2
ylim([-0.6 0.6]) Data1 = readtable(‘D:VIT PHDWork 3 _ Exceptional SensingCST FilesAeiphi.xlsx’);
T1=table2array(Data1);
freq = T1(:,2); % Frequency (in THz)
txx = T1(:,3); % Amplitude of Co-Polarozation XX
P1 = T1(:,4); % Phase of Co-Polarozation XX
tyy = T1(:,5); % Amplitude of Co-Polarozation YY
P2 = T1(:,6); % Phase of Co-Polarozation YY
txy = T1(:,7); % Amplitude of Cross-Polarozation XY
P3 = T1(:,8); % Phase of Cross-Polarozation XY
tyx = T1(:,9); % Amplitude of Cross-Polarozation YX
P4 = T1(:,10); % Phase of Cross-Polarozation YX
T_XX = txx.*exp(1i.*P1); % Transmittance of co – polarozation of XX
T_YY = tyy.*exp(1i.*P2); % Transmittance of co – polarizarion of yy
T_XY = txy.*exp(1i.*P3); % Transmittance of cross polarization of xy
T_YX = tyx.*exp(1i.*P4); % Transmittance of cross polarization of yx
TT = table(T_XX,T_YY,T_XY,T_YX);
%%%% Eigen Matrix
ii = 1:1:1002;
n = length(ii);
for i = 1:n
T = [T_XX(i,1), T_XY(i,1); T_YX(i,1), T_YY(i,1)]; % Eigen Matrix for each frequency
E = eig(T); % Eigen Values
val = [E(1,1), E(2,1)]; % Reordering the Matrix
E1(i,1) = val(:,1); % Eigen Value 1
E2(i,1) = val(:,2); % Eigen value 2
ii=ii+1;
ES1(:,1) = real(E1(:,1));
ES2(:,1) = real(E2(:,1));
ephi1(:,1) = imag(E1(:,1));
ephi2(:,1) = imag(E2(:,1));
end
%% From eigen values separate real and imaginary part.
% (Real part: Transmission coffecient, Imaginary part: Phase)
a = abs(ES1);
b = abs(ES2);
c = ephi1;
d = ephi2;
T2 = table(a,b,c,d)
figure
plot(freq,a) % Plot of freq vs real eigen value 1 and 2
plot(freq,b)
ylim([0 1])
plot(freq,ephi1,freq,ephi2) % Plot of freq vs imag eigen value 1 and 2
ylim([-0.6 0.6]) eigen values MATLAB Answers — New Questions
Webread Query Not Working
I am looking to query a forum style page (this forum, actually), but cannot seem to the the queries working as desired.
My goal is to essentially get the most viewed questions about Simulink (as woud be done via this page: https://www.mathworks.com/matlabcentral/answers/?product_base_code%5B%5D=Simulink&sort=views+desc)
However, when I try this via webread, the page I get is just the base Answers page, and it isn’t giving me Simulink, nor the sorting.
I am using the following (where indexed will be looped for multiple pages):
url = ‘https://www.mathworks.com/matlabcentral/answers/’;
data = webread(url,’page’, index,’product_base_code%5B%5D’,’Simulink’,’sort’,’views+desc’);
Any advice/help would be greatly appreciated.
Thanks!I am looking to query a forum style page (this forum, actually), but cannot seem to the the queries working as desired.
My goal is to essentially get the most viewed questions about Simulink (as woud be done via this page: https://www.mathworks.com/matlabcentral/answers/?product_base_code%5B%5D=Simulink&sort=views+desc)
However, when I try this via webread, the page I get is just the base Answers page, and it isn’t giving me Simulink, nor the sorting.
I am using the following (where indexed will be looped for multiple pages):
url = ‘https://www.mathworks.com/matlabcentral/answers/’;
data = webread(url,’page’, index,’product_base_code%5B%5D’,’Simulink’,’sort’,’views+desc’);
Any advice/help would be greatly appreciated.
Thanks! I am looking to query a forum style page (this forum, actually), but cannot seem to the the queries working as desired.
My goal is to essentially get the most viewed questions about Simulink (as woud be done via this page: https://www.mathworks.com/matlabcentral/answers/?product_base_code%5B%5D=Simulink&sort=views+desc)
However, when I try this via webread, the page I get is just the base Answers page, and it isn’t giving me Simulink, nor the sorting.
I am using the following (where indexed will be looped for multiple pages):
url = ‘https://www.mathworks.com/matlabcentral/answers/’;
data = webread(url,’page’, index,’product_base_code%5B%5D’,’Simulink’,’sort’,’views+desc’);
Any advice/help would be greatly appreciated.
Thanks! webread MATLAB Answers — New Questions
SharePoint Site Permissions
Hi community,
The way we have set up Teams at our organisation is such that we have an overarching team (containing all members of our department) and several locked channels relating to different groups within the department.
The way we set up our SharePoint sites was such that all Team members in our department could view the sites we had set up, regardless of whether or not they are part of the locked channel. When setting this up I altered the SharePoint setting to allow read-only access to each site page for all members of the overarching Team.
For some reason (either accidental or a larger change/update from Microsoft – I’m unsure), this no longer seems to work. Team members can now only see the SharePoint site corresponding to locked channels of which they are a member. This problem persists even when I grant members of the overarching team read-only access.
Is anybody able to help? I don’t want to add everybody in the department to each individual locked channel so looking for any potential workarounds!
Thanks in advance,
Lauren
Hi community, The way we have set up Teams at our organisation is such that we have an overarching team (containing all members of our department) and several locked channels relating to different groups within the department. The way we set up our SharePoint sites was such that all Team members in our department could view the sites we had set up, regardless of whether or not they are part of the locked channel. When setting this up I altered the SharePoint setting to allow read-only access to each site page for all members of the overarching Team. For some reason (either accidental or a larger change/update from Microsoft – I’m unsure), this no longer seems to work. Team members can now only see the SharePoint site corresponding to locked channels of which they are a member. This problem persists even when I grant members of the overarching team read-only access. Is anybody able to help? I don’t want to add everybody in the department to each individual locked channel so looking for any potential workarounds! Thanks in advance, Lauren Read More
Latest Canary build 27686 and NVIDIA 560.81 graphic driver
Attempting to install NVIDIA drivers in version 560.81 on Windows Canary Build 27686 always ends with a crash (during graphics driver installation) and reverting to the last known good restore point.
The problem did not occur on the previous driver version – 556.12 and concerns the MSI GT72 6QE laptop with a 980M card.
Attempting to install NVIDIA drivers in version 560.81 on Windows Canary Build 27686 always ends with a crash (during graphics driver installation) and reverting to the last known good restore point.The problem did not occur on the previous driver version – 556.12 and concerns the MSI GT72 6QE laptop with a 980M card. Read More
Apps mail en agenda
In windows 10, 11 kon je werken met de aparte apps Mail en Agenda.
Kan dat nog na 16 september 2024?
Zie ik dan de reeds gemaakte afspraken niet meer?
Moet ik dan nieuwe afspraken noteren via Outlook?
In windows 10, 11 kon je werken met de aparte apps Mail en Agenda. Kan dat nog na 16 september 2024?Zie ik dan de reeds gemaakte afspraken niet meer?Moet ik dan nieuwe afspraken noteren via Outlook? Read More
How to evaluate a fistree designed with the new addition to the app?
Hello,
How can I import and evaluate a fistree designed in the new addition of the FuzzyLogic Toolbox app?
It is saved as .mat file instead of .fis.
Readfis and load do not seem to work to import it to my script. I want to give inputs via evalfis, but it does not seem to work with the .mat file. It seems that it is not recognized as fistree.
Many thanks in advanceHello,
How can I import and evaluate a fistree designed in the new addition of the FuzzyLogic Toolbox app?
It is saved as .mat file instead of .fis.
Readfis and load do not seem to work to import it to my script. I want to give inputs via evalfis, but it does not seem to work with the .mat file. It seems that it is not recognized as fistree.
Many thanks in advance Hello,
How can I import and evaluate a fistree designed in the new addition of the FuzzyLogic Toolbox app?
It is saved as .mat file instead of .fis.
Readfis and load do not seem to work to import it to my script. I want to give inputs via evalfis, but it does not seem to work with the .mat file. It seems that it is not recognized as fistree.
Many thanks in advance fuzzy logic, fuzzy logic toolbox, fistree, evalfis, readfis MATLAB Answers — New Questions
Cannot save model:Error An error occurred during a callback while saving ‘D:untitled.slx’.
I am unable to save the model, which occasionally occurs. Does anyone know why?
An error occurred during a callback while saving ‘D:untitled.slx’.
The previously saved version of this file (if any) has not
been changed.
****
ErrorI am unable to save the model, which occasionally occurs. Does anyone know why?
An error occurred during a callback while saving ‘D:untitled.slx’.
The previously saved version of this file (if any) has not
been changed.
****
Error I am unable to save the model, which occasionally occurs. Does anyone know why?
An error occurred during a callback while saving ‘D:untitled.slx’.
The previously saved version of this file (if any) has not
been changed.
****
Error simulink MATLAB Answers — New Questions
Excel Copilot examples for the week of August 19th
The Excel team is happy to share some examples of how Excel Copilot can help you. Here’s what you can look forward to this week:
Monday, 19-Aug – Let Excel Copilot help you get started (coming soon)
Tuesday, 20-Aug - Have Excel Copilot explain a formula for you (coming soon)
Wednesday, 21-Aug - How Excel copilot can help you with a formula (coming soon)
Thursday, 22-Aug - Get help on a function with Excel Copilot (coming soon)
Friday, 23-Aug – Learn how to use PivotTables using Excel Copilot (coming soon)
Here are some additional examples from last week if you missed them: Excel copilot examples for the week of August 12th
Stay tuned,
Microsoft Excel Team
The Excel team is happy to share some examples of how Excel Copilot can help you. Here’s what you can look forward to this week:
Monday, 19-Aug – Let Excel Copilot help you get started (coming soon)
Tuesday, 20-Aug - Have Excel Copilot explain a formula for you (coming soon)
Wednesday, 21-Aug - How Excel copilot can help you with a formula (coming soon)
Thursday, 22-Aug - Get help on a function with Excel Copilot (coming soon)
Friday, 23-Aug – Learn how to use PivotTables using Excel Copilot (coming soon)
Here are some additional examples from last week if you missed them: Excel copilot examples for the week of August 12th
Stay tuned,
Microsoft Excel Team Read More
InsstallMathWorksServiceHost: error while loading sharedl libraries
Running MATLAB 2024a on Ubuntu24.04 with concurrent network license. Insttallation diretory is local and owned by root. Home directory is NFS v3 mount.
When starting MATLAB the following messages appear in the console. MATLAB appears to function okay.
/home/nmrbox/gweatherby/.MathWorks/ServiceHost/matlab1/_tmp_MSHI_d1af-ba0c-9c00-df21/mci/_tempinstaller_glnxa64/bin/glnxa64/InstallMathWorksServiceHost: error while loading shared libraries: /home/nmrbox/gweatherby/.MathWorks/ServiceHost/matlab1/_tmp_MSHI_d1af-ba0c-9c00-df21/mci/_tempinstaller_glnxa64/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: file too shortRunning MATLAB 2024a on Ubuntu24.04 with concurrent network license. Insttallation diretory is local and owned by root. Home directory is NFS v3 mount.
When starting MATLAB the following messages appear in the console. MATLAB appears to function okay.
/home/nmrbox/gweatherby/.MathWorks/ServiceHost/matlab1/_tmp_MSHI_d1af-ba0c-9c00-df21/mci/_tempinstaller_glnxa64/bin/glnxa64/InstallMathWorksServiceHost: error while loading shared libraries: /home/nmrbox/gweatherby/.MathWorks/ServiceHost/matlab1/_tmp_MSHI_d1af-ba0c-9c00-df21/mci/_tempinstaller_glnxa64/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: file too short Running MATLAB 2024a on Ubuntu24.04 with concurrent network license. Insttallation diretory is local and owned by root. Home directory is NFS v3 mount.
When starting MATLAB the following messages appear in the console. MATLAB appears to function okay.
/home/nmrbox/gweatherby/.MathWorks/ServiceHost/matlab1/_tmp_MSHI_d1af-ba0c-9c00-df21/mci/_tempinstaller_glnxa64/bin/glnxa64/InstallMathWorksServiceHost: error while loading shared libraries: /home/nmrbox/gweatherby/.MathWorks/ServiceHost/matlab1/_tmp_MSHI_d1af-ba0c-9c00-df21/mci/_tempinstaller_glnxa64/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: file too short installation, servciehost MATLAB Answers — New Questions
Comparison of excel sheet data and output should be excel sheet for matched and mismatched data using simulink model.
I have two excel sheets, Data1 and Data2. I need to compare both the excel sheet and atlast I need to get excel sheet as an output for matched data and mismatched data using simulink model. Tell me how to read the excel sheet, compare it and and how to get the excel sheet as an output?I have two excel sheets, Data1 and Data2. I need to compare both the excel sheet and atlast I need to get excel sheet as an output for matched data and mismatched data using simulink model. Tell me how to read the excel sheet, compare it and and how to get the excel sheet as an output? I have two excel sheets, Data1 and Data2. I need to compare both the excel sheet and atlast I need to get excel sheet as an output for matched data and mismatched data using simulink model. Tell me how to read the excel sheet, compare it and and how to get the excel sheet as an output? function model MATLAB Answers — New Questions
Able to Edit PDF file but Download is Blocked for The External User
Hi All,
Did anyone have this requirement that the pdf file was shared to the external user but he/she is able to edit the file but not able to download?
Seeking for a solution to achieve this.
Please advise.
Thanks.
Hi All, Did anyone have this requirement that the pdf file was shared to the external user but he/she is able to edit the file but not able to download? Seeking for a solution to achieve this. Please advise. Thanks. Read More
Find the ratio or difference spectra as time progresses
Hi, I have a number of spectra that has been collected over a certain number of hours. How do I compute the difference spectra or ratio spectra over that time period? So say spectrum 1 is rationed with spectrum 2, spectrum 3 rationed with spectrum 2 etc. can same be done with difference spectrum as well? Any algorithm to do this? Thank you.Hi, I have a number of spectra that has been collected over a certain number of hours. How do I compute the difference spectra or ratio spectra over that time period? So say spectrum 1 is rationed with spectrum 2, spectrum 3 rationed with spectrum 2 etc. can same be done with difference spectrum as well? Any algorithm to do this? Thank you. Hi, I have a number of spectra that has been collected over a certain number of hours. How do I compute the difference spectra or ratio spectra over that time period? So say spectrum 1 is rationed with spectrum 2, spectrum 3 rationed with spectrum 2 etc. can same be done with difference spectrum as well? Any algorithm to do this? Thank you. matlab MATLAB Answers — New Questions
Issue with Generating Searchable PDF using Azure Document Intelligence API
I am experiencing an issue with the Azure Document Intelligence API and need your assistance.
I am trying to use the following cURL command to analyze a PDF file and generate a searchable PDF:
However, this command fails with an error. In contrast, a similar command for analyzing an image file works successfully:
Issue Description:
Why does the command to analyze a PDF file fail while the command to analyze an image file succeeds?Are there specific configurations or formats required for processing PDF files?Could you provide any recommendations or solutions to successfully generate a searchable PDF?
Thank you for your assistance!
Additional Information:
API Endpoint: %DI_ENDPOINT%API Key: %DI_KEY%Request URL (Image): https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/rest-api/read.png
I am experiencing an issue with the Azure Document Intelligence API and need your assistance.I am trying to use the following cURL command to analyze a PDF file and generate a searchable PDF: bash複製程式碼curl -i -X POST “%DI_ENDPOINT%/documentintelligence/documentModels/prebuilt-read:analyze?output=pdf&api-version=2024-02-29-preview” -H “Content-Type: application/json” -H “Ocp-Apim-Subscription-Key: %DI_KEY%” -d “{“urlSource”: “<PDF_FILE_URL>”}” However, this command fails with an error. In contrast, a similar command for analyzing an image file works successfully: bash複製程式碼curl -i -X POST “%DI_ENDPOINT%/documentintelligence/documentModels/prebuilt-read:analyze?api-version=2024-02-29-preview” -H “Content-Type: application/json” -H “Ocp-Apim-Subscription-Key: %DI_KEY%” –data-ascii “{‘urlSource’: ‘https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/rest-api/read.png’}” Issue Description:Why does the command to analyze a PDF file fail while the command to analyze an image file succeeds?Are there specific configurations or formats required for processing PDF files?Could you provide any recommendations or solutions to successfully generate a searchable PDF?Thank you for your assistance!Additional Information:API Endpoint: %DI_ENDPOINT%API Key: %DI_KEY%Request URL (Image): https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/rest-api/read.png Read More
How to split my EMG signal into individual cycles?
Hi I have recorded an emg signal of 5 different muscles on someone performing manual wheelchair propulsion.
Sensor 1 = biceps
Sensor 2 = triceps
Sensor 3 = Anterioir Deltoid
Sensor 4 = Posterior Deltoid
Sensor 5 = Upper Trapezius
Each sensor also records the acceleration in the x, y and z directions.
I want to split the emg signal into seperate propulsion cycles (when the hand pushes and releases to when the hand hits the push rim again.) so that I can average each cycle, as well as convert time (s) to percentage of cycle.
I know there were 13-14 cycles during the recording as i videoed the subject while gathering data.
I have only looked at the bicep data as shown below and was wondeing if there is a way to do this with the information I have.
Please let me know if you need anymore information.
%% SEMG Signal Analysis – Row Test 1 Participant 1 28/06/2024
% *This is my practice code to figure out how to export the data into MATLAB and transfer the data into arrays that I can manipulate and do calculations with. *
clear all;
clc;
%% Importing raw data from csv. file
% *BOLD TEXT*
raw_data = readmatrix(‘P02_S09_T01.csv’);
%% SEMG Time Data
% *Storing the Sub-frame data in arrays*
fs = 1926; % sampling frequency in Hz
columnIndex = 2; % Specify the index of the column you want to extract (1 for the Frame column, 2 for the Sub Frame column, and so on)
Sub_Frame = []; % Creating an array to store all the sub-frames related to the EMG data
row = 4;
while ~isnan(raw_data(row, columnIndex))
number = raw_data(row, columnIndex);
Sub_Frame = [Sub_Frame, number];
row = row + 1;
end
Time = (1:length(Sub_Frame))/fs; % converting the sub frame array into time in seconds array
%% Acceleration Sensor 1 (bicep) ACCY1
%
% Find the maximum row number
maxRow = size(raw_data, 1);
acc_fs = 148; %sa/sec
%find sub frame for acceleration
columnIndex = 2; % Specify the index of the column you want to extract (1 for the Frame column, 2 for the Sub Frame column, and so on)
Acc_Sub_Frame = []; % Creating an array to store all the sub-frames related to the EMG data
acc_row = 77955;
while acc_row <= maxRow
number = raw_data(acc_row, columnIndex);
Acc_Sub_Frame = [Acc_Sub_Frame, number];
acc_row = acc_row + 1;
end
Acc_Time = (1:length(Acc_Sub_Frame))/acc_fs; % converting the sub frame array into time in seconds array
columnIndex4 = 4; % Corresponds to ACCY1 (acceleration in the y-direction of sensor 1).
ACCY1 = []; % Creating an array to store all the AccY1
row2 = 77955;
while row2 <= maxRow
num = raw_data(row2, columnIndex4);
ACCY1 = [ACCY1, num];
row2 = row2 + 1;
end
acc_rms_signal = [];
window = 50;
acc_rms_signal = sqrt(movmean((ACCY1.^2),window));
%% Muscle arrays
% Sensor #1 – Biceps Brachii
% Sensor #2 – Triceps Brachii
% Sensor #3 – Anterioir Deltoid
% Sensor #4 – Posterior Deltoid
% Sensor #5 – Upper Trapezius
% *Storing the muscle data in arrays*
columnIndex = 3; % Specify the index of the column you want to extract (1 for the Frame column, 2 for the Sub Frame column, and so on)
Biceps_Brachii = [];% Creating an array to store all the frames related to the EMG data
row = 4; % This is the starting position of the Frame data
% Create a for loop to run through every sensor and store in each array.
while ~isnan(raw_data(row, columnIndex))
number = raw_data(row, columnIndex);
Biceps_Brachii = [Biceps_Brachii, number];
row = row + 1;
end
%% BP filter
% filtering from 20 to Hz
fnyq = fs/2;
fcuthigh = 20;
fcutlow = 450;
%4th order Butterworth BP filter
[b,a]=butter(4,[fcuthigh,fcutlow]/fnyq,’bandpass’);
butterworth_filter_signal=filtfilt(b,a,Biceps_Brachii);
%% RMS
%
rms_signal = [];
window = 50;
rms_signal = sqrt(movmean((rec_signal.^2),window));
% Create a figure with two subplots
figure;
% Plot the first graph on the top
subplot(2, 1, 1);
plot(Time, rms_signal);
title(‘EMG’);
% Plot the second graph on the bottom
subplot(2, 1, 2);
plot(Acc_Time, acc_rms_signal);
title(‘Acceleration’);Hi I have recorded an emg signal of 5 different muscles on someone performing manual wheelchair propulsion.
Sensor 1 = biceps
Sensor 2 = triceps
Sensor 3 = Anterioir Deltoid
Sensor 4 = Posterior Deltoid
Sensor 5 = Upper Trapezius
Each sensor also records the acceleration in the x, y and z directions.
I want to split the emg signal into seperate propulsion cycles (when the hand pushes and releases to when the hand hits the push rim again.) so that I can average each cycle, as well as convert time (s) to percentage of cycle.
I know there were 13-14 cycles during the recording as i videoed the subject while gathering data.
I have only looked at the bicep data as shown below and was wondeing if there is a way to do this with the information I have.
Please let me know if you need anymore information.
%% SEMG Signal Analysis – Row Test 1 Participant 1 28/06/2024
% *This is my practice code to figure out how to export the data into MATLAB and transfer the data into arrays that I can manipulate and do calculations with. *
clear all;
clc;
%% Importing raw data from csv. file
% *BOLD TEXT*
raw_data = readmatrix(‘P02_S09_T01.csv’);
%% SEMG Time Data
% *Storing the Sub-frame data in arrays*
fs = 1926; % sampling frequency in Hz
columnIndex = 2; % Specify the index of the column you want to extract (1 for the Frame column, 2 for the Sub Frame column, and so on)
Sub_Frame = []; % Creating an array to store all the sub-frames related to the EMG data
row = 4;
while ~isnan(raw_data(row, columnIndex))
number = raw_data(row, columnIndex);
Sub_Frame = [Sub_Frame, number];
row = row + 1;
end
Time = (1:length(Sub_Frame))/fs; % converting the sub frame array into time in seconds array
%% Acceleration Sensor 1 (bicep) ACCY1
%
% Find the maximum row number
maxRow = size(raw_data, 1);
acc_fs = 148; %sa/sec
%find sub frame for acceleration
columnIndex = 2; % Specify the index of the column you want to extract (1 for the Frame column, 2 for the Sub Frame column, and so on)
Acc_Sub_Frame = []; % Creating an array to store all the sub-frames related to the EMG data
acc_row = 77955;
while acc_row <= maxRow
number = raw_data(acc_row, columnIndex);
Acc_Sub_Frame = [Acc_Sub_Frame, number];
acc_row = acc_row + 1;
end
Acc_Time = (1:length(Acc_Sub_Frame))/acc_fs; % converting the sub frame array into time in seconds array
columnIndex4 = 4; % Corresponds to ACCY1 (acceleration in the y-direction of sensor 1).
ACCY1 = []; % Creating an array to store all the AccY1
row2 = 77955;
while row2 <= maxRow
num = raw_data(row2, columnIndex4);
ACCY1 = [ACCY1, num];
row2 = row2 + 1;
end
acc_rms_signal = [];
window = 50;
acc_rms_signal = sqrt(movmean((ACCY1.^2),window));
%% Muscle arrays
% Sensor #1 – Biceps Brachii
% Sensor #2 – Triceps Brachii
% Sensor #3 – Anterioir Deltoid
% Sensor #4 – Posterior Deltoid
% Sensor #5 – Upper Trapezius
% *Storing the muscle data in arrays*
columnIndex = 3; % Specify the index of the column you want to extract (1 for the Frame column, 2 for the Sub Frame column, and so on)
Biceps_Brachii = [];% Creating an array to store all the frames related to the EMG data
row = 4; % This is the starting position of the Frame data
% Create a for loop to run through every sensor and store in each array.
while ~isnan(raw_data(row, columnIndex))
number = raw_data(row, columnIndex);
Biceps_Brachii = [Biceps_Brachii, number];
row = row + 1;
end
%% BP filter
% filtering from 20 to Hz
fnyq = fs/2;
fcuthigh = 20;
fcutlow = 450;
%4th order Butterworth BP filter
[b,a]=butter(4,[fcuthigh,fcutlow]/fnyq,’bandpass’);
butterworth_filter_signal=filtfilt(b,a,Biceps_Brachii);
%% RMS
%
rms_signal = [];
window = 50;
rms_signal = sqrt(movmean((rec_signal.^2),window));
% Create a figure with two subplots
figure;
% Plot the first graph on the top
subplot(2, 1, 1);
plot(Time, rms_signal);
title(‘EMG’);
% Plot the second graph on the bottom
subplot(2, 1, 2);
plot(Acc_Time, acc_rms_signal);
title(‘Acceleration’); Hi I have recorded an emg signal of 5 different muscles on someone performing manual wheelchair propulsion.
Sensor 1 = biceps
Sensor 2 = triceps
Sensor 3 = Anterioir Deltoid
Sensor 4 = Posterior Deltoid
Sensor 5 = Upper Trapezius
Each sensor also records the acceleration in the x, y and z directions.
I want to split the emg signal into seperate propulsion cycles (when the hand pushes and releases to when the hand hits the push rim again.) so that I can average each cycle, as well as convert time (s) to percentage of cycle.
I know there were 13-14 cycles during the recording as i videoed the subject while gathering data.
I have only looked at the bicep data as shown below and was wondeing if there is a way to do this with the information I have.
Please let me know if you need anymore information.
%% SEMG Signal Analysis – Row Test 1 Participant 1 28/06/2024
% *This is my practice code to figure out how to export the data into MATLAB and transfer the data into arrays that I can manipulate and do calculations with. *
clear all;
clc;
%% Importing raw data from csv. file
% *BOLD TEXT*
raw_data = readmatrix(‘P02_S09_T01.csv’);
%% SEMG Time Data
% *Storing the Sub-frame data in arrays*
fs = 1926; % sampling frequency in Hz
columnIndex = 2; % Specify the index of the column you want to extract (1 for the Frame column, 2 for the Sub Frame column, and so on)
Sub_Frame = []; % Creating an array to store all the sub-frames related to the EMG data
row = 4;
while ~isnan(raw_data(row, columnIndex))
number = raw_data(row, columnIndex);
Sub_Frame = [Sub_Frame, number];
row = row + 1;
end
Time = (1:length(Sub_Frame))/fs; % converting the sub frame array into time in seconds array
%% Acceleration Sensor 1 (bicep) ACCY1
%
% Find the maximum row number
maxRow = size(raw_data, 1);
acc_fs = 148; %sa/sec
%find sub frame for acceleration
columnIndex = 2; % Specify the index of the column you want to extract (1 for the Frame column, 2 for the Sub Frame column, and so on)
Acc_Sub_Frame = []; % Creating an array to store all the sub-frames related to the EMG data
acc_row = 77955;
while acc_row <= maxRow
number = raw_data(acc_row, columnIndex);
Acc_Sub_Frame = [Acc_Sub_Frame, number];
acc_row = acc_row + 1;
end
Acc_Time = (1:length(Acc_Sub_Frame))/acc_fs; % converting the sub frame array into time in seconds array
columnIndex4 = 4; % Corresponds to ACCY1 (acceleration in the y-direction of sensor 1).
ACCY1 = []; % Creating an array to store all the AccY1
row2 = 77955;
while row2 <= maxRow
num = raw_data(row2, columnIndex4);
ACCY1 = [ACCY1, num];
row2 = row2 + 1;
end
acc_rms_signal = [];
window = 50;
acc_rms_signal = sqrt(movmean((ACCY1.^2),window));
%% Muscle arrays
% Sensor #1 – Biceps Brachii
% Sensor #2 – Triceps Brachii
% Sensor #3 – Anterioir Deltoid
% Sensor #4 – Posterior Deltoid
% Sensor #5 – Upper Trapezius
% *Storing the muscle data in arrays*
columnIndex = 3; % Specify the index of the column you want to extract (1 for the Frame column, 2 for the Sub Frame column, and so on)
Biceps_Brachii = [];% Creating an array to store all the frames related to the EMG data
row = 4; % This is the starting position of the Frame data
% Create a for loop to run through every sensor and store in each array.
while ~isnan(raw_data(row, columnIndex))
number = raw_data(row, columnIndex);
Biceps_Brachii = [Biceps_Brachii, number];
row = row + 1;
end
%% BP filter
% filtering from 20 to Hz
fnyq = fs/2;
fcuthigh = 20;
fcutlow = 450;
%4th order Butterworth BP filter
[b,a]=butter(4,[fcuthigh,fcutlow]/fnyq,’bandpass’);
butterworth_filter_signal=filtfilt(b,a,Biceps_Brachii);
%% RMS
%
rms_signal = [];
window = 50;
rms_signal = sqrt(movmean((rec_signal.^2),window));
% Create a figure with two subplots
figure;
% Plot the first graph on the top
subplot(2, 1, 1);
plot(Time, rms_signal);
title(‘EMG’);
% Plot the second graph on the bottom
subplot(2, 1, 2);
plot(Acc_Time, acc_rms_signal);
title(‘Acceleration’); emg, cycle, signal processing MATLAB Answers — New Questions
how can i access to the export button on the architecture views of the system composer, using code?
I want to access the "export" button that is in the toolstrip of the architecture view tab, through code. Is it possible that with code or some function, I can export a view as if I had pressed the "export" button?
I have tried creating a report, but the images of the view are bad quality, it does not get the same quality and page orientation as if i clicked the export button.I want to access the "export" button that is in the toolstrip of the architecture view tab, through code. Is it possible that with code or some function, I can export a view as if I had pressed the "export" button?
I have tried creating a report, but the images of the view are bad quality, it does not get the same quality and page orientation as if i clicked the export button. I want to access the "export" button that is in the toolstrip of the architecture view tab, through code. Is it possible that with code or some function, I can export a view as if I had pressed the "export" button?
I have tried creating a report, but the images of the view are bad quality, it does not get the same quality and page orientation as if i clicked the export button. export, button, architecture views MATLAB Answers — New Questions
Calendar view bug
Hi, I am wondering if this is a known bug and if there is a way around this. Since last week, the 3 calendar view lists we have on our Sharepoint homepage, have been displaying the same info even though they are different lists.
Screenshot to illustrate what I am talking about:
Any help would be much appreciated. When I change the view to normal list instead of calendar view they are not display same info, just when it’s calendar view.
Hi, I am wondering if this is a known bug and if there is a way around this. Since last week, the 3 calendar view lists we have on our Sharepoint homepage, have been displaying the same info even though they are different lists.Screenshot to illustrate what I am talking about:Any help would be much appreciated. When I change the view to normal list instead of calendar view they are not display same info, just when it’s calendar view. Read More
How can I turn off PIM Digest emails?
Hi all,
We currently receive a weekly digest email with an update on our risky users/sign ins. However, I check these daily and act accordingly, so we really don’t need them.
I tried disabling the weekly digest and unticking my role, but still they come.
Can these weekly PIM digest emails be turned off and if so, how?
Hi all, We currently receive a weekly digest email with an update on our risky users/sign ins. However, I check these daily and act accordingly, so we really don’t need them. I tried disabling the weekly digest and unticking my role, but still they come. Can these weekly PIM digest emails be turned off and if so, how? Read More
Not getting my gmail in Outlook
Using Windows 11 and Outlook 2021. I have 2 email accounts, both gmail. 1 uses imap the other is pop.
Up until about noon today – I was getting email just fine, all of a sudden I get nothing! I have personally made no changes so I am not sure why this happened.
Any help or insight as to how to fix this would be extremely appreciated.
Thanks
Using Windows 11 and Outlook 2021. I have 2 email accounts, both gmail. 1 uses imap the other is pop.Up until about noon today – I was getting email just fine, all of a sudden I get nothing! I have personally made no changes so I am not sure why this happened.Any help or insight as to how to fix this would be extremely appreciated.Thanks Read More
Outlook Plugin – Calendar UI
We are developing a plugin solution that has to seamlessly connect with our CRM (endpoints provided via Graph QL), allowing clients to schedule, edit, cancel, and inviting participants to assignments, and request services through it.
We need assistance in a few items:
1) Potential privacy implications of read and write permissions required by the plugin to access users’ calendars.
2) Exposing calendar to personal and corporate accounts without using AD FEDERATION
We are developing a plugin solution that has to seamlessly connect with our CRM (endpoints provided via Graph QL), allowing clients to schedule, edit, cancel, and inviting participants to assignments, and request services through it.We need assistance in a few items:1) Potential privacy implications of read and write permissions required by the plugin to access users’ calendars.2) Exposing calendar to personal and corporate accounts without using AD FEDERATION Read More
I’m struggling with COUNTIFS/SUMIFS
Hello there,
I am self taught using excel and as a result I can do some tricks quite well but have gaps with even some of the most basic functionality. I also struggle a little with a lot of the terminology so please bear with me. Apologies.
I am trying to build a spreadsheet for a nursery that will count the number of children booked to attend a particular time slot on a particular day in the future.
I have one tab holding all of the individual child records and all of the data pertaining to them across a row. Name, date started, date finished, nursery, room, term, monday block 1, Monday block 2 etc.
Where a child is scheduled to be in nursery for a particular block I enter a “1”, if they are not scheduled to be there I leave the cell blank.
This is set up as a table.
I am trying to build a seperate tab which will examine that data tab and summarise the number of children scheduled to be attendant based on a dynamic, user specified date, nursery and room.
So what I would like to do is count the number of rows that meet the following criteria
1 – Where the chosen date is after the child’s start date
2 – Where the chosen date is before the child’s end date
3 – Where the chosen nursery is the same as the child’s nursery
4 – Where the chosen room is the same as the child’s room
I thought I could do this with a countifs but when I try to do that, the cells below my formula cell autocomplete with the same number of rows as are in my data table. I would simply like the cell to have a single number reflecting the nuber of children who meet the criteria specified…….if that makes sense.
I’m not sure if I’m just being an idiot, tryng to do too much in one go, simply misunderstanding the formula I should be using or a combination of all of these things.
Any advice or pointers would be greatly appreciated.
Regards,
Joe
Hello there, I am self taught using excel and as a result I can do some tricks quite well but have gaps with even some of the most basic functionality. I also struggle a little with a lot of the terminology so please bear with me. Apologies. I am trying to build a spreadsheet for a nursery that will count the number of children booked to attend a particular time slot on a particular day in the future. I have one tab holding all of the individual child records and all of the data pertaining to them across a row. Name, date started, date finished, nursery, room, term, monday block 1, Monday block 2 etc. Where a child is scheduled to be in nursery for a particular block I enter a “1”, if they are not scheduled to be there I leave the cell blank. This is set up as a table. I am trying to build a seperate tab which will examine that data tab and summarise the number of children scheduled to be attendant based on a dynamic, user specified date, nursery and room. So what I would like to do is count the number of rows that meet the following criteria 1 – Where the chosen date is after the child’s start date2 – Where the chosen date is before the child’s end date3 – Where the chosen nursery is the same as the child’s nursery 4 – Where the chosen room is the same as the child’s room I thought I could do this with a countifs but when I try to do that, the cells below my formula cell autocomplete with the same number of rows as are in my data table. I would simply like the cell to have a single number reflecting the nuber of children who meet the criteria specified…….if that makes sense. I’m not sure if I’m just being an idiot, tryng to do too much in one go, simply misunderstanding the formula I should be using or a combination of all of these things. Any advice or pointers would be greatly appreciated. Regards, Joe Read More