A = load('r08_edfm.mat');
B = load('r08_edfm.mat');
d = A.val(1,:);
d_T = d';
input_channel = 3;
noisy_sig = B.val(input_channel,:);
noisy_sig_T = noisy_sig'
at workspace im getting these values

댓글 수: 6

Rehman Tanim
Rehman Tanim 2020년 11월 27일
the .mat file is:
Rehman Tanim
Rehman Tanim 2020년 11월 27일
편집: Rehman Tanim 2020년 11월 27일
Want to know how the values r taken and how it is converted?
KSSV
KSSV 2020년 11월 27일
You have the data already in your mat files, and the code is laoding the data and trasposing the first column.
Rehman Tanim
Rehman Tanim 2020년 11월 27일
yes but how -42.81 becomes -429
i mean how it is converted?
KSSV
KSSV 2020년 11월 27일
What you are looking into are completely two different data sets. There is no conversion of numbers taking place.
Rehman Tanim
Rehman Tanim 2020년 11월 27일
편집: Image Analyst 2020년 11월 27일
Can you please explain the data of A.val of first row? How is the data stored?

댓글을 달려면 로그인하십시오.

 채택된 답변

Image Analyst
Image Analyst 2020년 11월 27일

1 개 추천

You forgot to attach the .mat files so we can't do much. The first row of the val matrix stored in the mat file is extracted and put into a variable you cryptically call "d". We don't know what that first row means and so we can't "explain" it. All we can tell is that the first row of val from A is stored in a row vector "d" and then you're transposing it and putting it into column vector d_T, and you're then getting the third row of the val matrix from a different mat file and calling that noise, and also transposing that row vector into a column vector called "noisy_sig_T".
Can't you ask the people who created the mat file? If you don't even know what it means, then why do you want to do anything with it? Where did you get that script, or did you write it?

댓글 수: 4

Rehman Tanim
Rehman Tanim 2020년 11월 27일
편집: Rehman Tanim 2020년 11월 27일
sorry i forgot to attach the file
Rehman Tanim
Rehman Tanim 2020년 11월 27일
편집: Rehman Tanim 2020년 11월 27일
Sorry problem was on my title,i couldnt actually explain the thing
I understood the whole thing ,in the (.mat) file there is "Direct_1" column which i m storing in A.
In the (.mat) file "Direct_1" column values are (-42.801,-44.301,-46.801,-49.301..........) but when im storing the transposed data it stores like this(-429,-444,-469,-494........)
i just wanted to know this thing for example how -42.801 is stored as -429
Image Analyst
Image Analyst 2020년 11월 27일
There is no "Direct_1" column in the mat file:
A =
struct with fields:
val: [6×10000 double]
B =
struct with fields:
val: [6×10000 double]
so I'm not sure what you're talking about. And all the values in val are around 4-500 in the first part of the array, not around 42.
Rehman Tanim
Rehman Tanim 2020년 11월 27일
thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Structures에 대해 자세히 알아보기

질문:

2020년 11월 27일

댓글:

2020년 11월 27일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by