필터 지우기
필터 지우기

What is the purpose of lines 1-7 of this code?

조회 수: 1 (최근 30일)
Saira Prince
Saira Prince 2019년 3월 28일
답변: abouessire ismail 2019년 3월 28일
ELEVATED=[]
[fname path]=uigetfile('*.mat');
fname=strcat(path,fname);
load(fname );
1) z=zeros(100,1);
2) A=val(1,:)
3) v1=val(1,:)-val(1,1)
4) A=v1
5) A=A'
6) zc=A(1)
7) A=[z;A;z]
% s = A(1:1:400);
s = A;
ls = length(s);
figure(1)
plot(s);
title('Actual Signal'),grid on

채택된 답변

abouessire ismail
abouessire ismail 2019년 3월 28일
Hi !!
i have some note for you.
-from 2 to 4, you can also use
A=val(1,:)-val(1,1);
-6 line unusefull because we doesn't work with
the variable zc.
-work directly with A why you use may variable.
that's it.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by