Skip to content

Conversation

Yanhof
Copy link
Collaborator

@Yanhof Yanhof commented Dec 26, 2023

No description provided.

% w_n = 2*pi *(n-1)/N;
% temp = 0;
% for k = 1:n
% f(n) = temp + u(k)*exp(-1j*w_n*(k-1));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not f(n) = f(n) + u(k)*... here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was used for debugging (is also commented out), see active function where is with f(n)

t1 = data1(:,1),
y1 = data1(:,2)
std1= data1(:,3)
reg = [ones(size(y1,1),1), t1, t1.^2 ];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be length here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed, but not necessary as size(...,1) = length(...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants