필터 지우기
필터 지우기

How to assign values with a smooth trend

조회 수: 2 (최근 30일)
SAZZAD HOSSAIN
SAZZAD HOSSAIN 2013년 5월 20일
Hello all
I have a 1by500 array which i have divided into two parts right in the middle (250). Initially its all zeros but i am intending to assign nonzero values in there. The values would look something like this -
N = 500; x = zeros(1,N); d = 25; x(1:N/2-d) = 100; % from 1 to 225 x(N/2+d+1:end) = 10; % from 276 to 500
The problem is that i need the values in between (from 226 to 275) to change smoothly from 100 to 10. The change cannot be linear. I would want a smooth exponential like change and I dont know how i can do that. Can anyone please help me?
Thanks in advance.
Sazzad

답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by