I need to find slope of a curve

조회 수: 4 (최근 30일)
Abhinav
Abhinav 2016년 8월 21일
답변: simone martinelli 2016년 9월 28일
I have this graph plotted from FFT data (in excel). I need to find the slope of the curve seperately. so one value for line A (positive slope) and line B (negative slope). Idea is to get a ratio from that and compare the ratio with other samples. Usually i would go to my teacher but he is on holiday and i need this done well before he comes back.Also i am a complete novice when it comes to matlab, so a slightly detailed explanation would be very helpful. Thanks in advance.

답변 (1개)

simone martinelli
simone martinelli 2016년 9월 28일
numA = xlsread(filename,sheet,xlRange) insert the range depending od quantity of data value A
numB = xlsread(filename,sheet,xlRange) insert the range depending od quantity of data value B
slopeA=diff(numA);% slope between different object of vector A
slopeB=diff(numB);% slope between different object of vector B

카테고리

Help CenterFile Exchange에서 Holidays / Seasons에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by