MATLAB Answers

0

Is it possible to convert an ECG/EEG signal to numerical data form?

Asked by A.Mariya Jomet on 26 Nov 2018
Latest activity Commented on by A.Mariya Jomet on 1 Dec 2018
I have to encrypt some data. Which includes patient details, pressure , temperature etc and also ECG/EEG signal. I am using RSA method for the encryption. I have the code to send all data as message (patient details & other numerical entries). But how can I encrypt ECG signal. Is there any method to convert signal to numerical data, so that I can encrypt with the same method.
Suggestions please

  0 Comments

Sign in to comment.

Products


Release

R2016a

1 Answer

Answer by Walter Roberson
on 26 Nov 2018

If you have pure numeric data then typecast uint8 and encrypt that .
If you have a struct then you can break it into pieces and do those . Or you can look in the File Exchange for the "fast serialization" contribution .

  8 Comments

I posted above,
If you have pure numeric data then typecast uint8 and encrypt that .
Well, you have pure numeric data, so typecast it to uint8 and encrypt the typecast data.
Thankyou sir,
I did that.
Y = typecast(Orig_Sig, 'uint8');
But even after it shows "Index exceeds matrix dimensions."
attaching the code
p=5861;
q=8387;
[Pk,Phi,d,e] = intialize(p,q);
%M = input('\nEnter the message: ','s');
M=Y;
x=length(M);
c=0;
for j= 1:x
for i=0:122
%for i=0:5760
if strcmp(M(j),char(i))
c(j)=i;
end
end
end
disp('ASCII Code of the entered Message:');
disp(c);
% % %Encryption
for j= 1:x
cipher(j)= crypt(c(j),Pk,e);
end
disp('Cipher Text of the entered Message:');
disp(cipher);
% % %Decryption
for j= 1:x
message(j)= crypt(cipher(j),Pk,d);
end
how to solve this?
Solved the problem.
First extract imprortant data from ECG signal, such as heart rate, QRS complex etc. And then encrypted it along with the other data.

Sign in to comment.