MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > How to scale 

Just a simple question ! Suppose my signal is linspace(0,4,512) if i want to scale it between 0.5 to 0.5 then what is the best way 
"kk KKsingh" <akikumar1983@gmail.com> wrote in message <hmns27$ht2$1@fred.mathworks.com>... 
kk KKsingh wrote: 
Its not working for 0.5 to +0.5 
For t it should be ((t1)/15)0.5 
well didnt get this 
kk KKsingh wrote: 
kk KKsingh wrote: 
Its not working ......i am getting samples between 1.8 to 0.3 ..not between 0.5 to +0.5 and that lower bound formula also not works on this.....i need some thing general which can scale any signal between 0,5 and +0.5 and after i apply fft and apply some signal processing things i come back and i again rescale it to plot it......will it effect my signal in any case 
% Data 
And what is best way to scale it back avoiding any round off errors 
On Mar 12, 5:02 pm, "kk KKsingh" <akikumar1...@gmail.com> wrote: 
Yes I am trying to scale a signal , basically i am scaling a time axis 
Yes I am trying to scale a signal , basically i am scaling a time axis 
On Mar 13, 1:27 am, "kk KKsingh" <akikumar1...@gmail.com> wrote: 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.