Info

This question is closed. Reopen it to edit or answer.

i'm getting vertcat and horizon error in a=[z A z] ..i dont know why?? pls tell me how to resolve

1 view (last 30 days)
function [ecg_h,temp]=R_detect1(data)
fs=200;
gr=1;
% x=data(:,1);
y=data;
[r c]=size(y);
temp=[];
A=y;
z=zeros(100,1);
zc=A(1);
A=[z A z];
s = A;

Answers (1)

Cedric Wannaz
Cedric Wannaz on 10 Oct 2017
I'm not sure what you want to achieve with this, but I'd say that
z=zeros(size(A,1),1);
would at least make dimensions match.
  2 Comments
Image Analyst
Image Analyst on 12 Oct 2017
That's asking us a bit much to learn/analyse all that code, especially when you didn't even provide the data, which pretty much prevents us from running the code.

Community Treasure Hunt

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

Start Hunting!