已回答
RATS command effect: how to explain?
|rats()| gives an output as string. So the ans you gave is a result of substraction of two strings. rats(0.3)= ' 3/10...

14 years 前 | 0

| 已接受

已回答
Auto Simulate Simulink Model
Iam not sure what kind of automation you need. You may use |timer()| object: tim1=timer('TimerFcn', ' sim(''YourSimulation.md...

14 years 前 | 0

已回答
Two 'eval' statements in a single command?
This should satisfy your need: for j=1:13 for i=1:4 eval(['var',num2str(j),'(i,:)=simulation',num2str(i),'(j,:)...

14 years 前 | 0

| 已接受

已回答
How do I edit or delete the data in a uitable?
You can always "physically" delete row-data: A=rand(4,3); th=uitable('Data', A); A(4,:)=[]; set(th, 'Data', A); ...

14 years 前 | 1

| 已接受

已回答
Candlestick question
If V is your 1x360214 data vector: seg=4000; segments=floor(length(V)/seg); V=V(1: (segments*seg) ); AlgoMatrix=resh...

14 years 前 | 0

| 已接受

已回答
Conditional plotting, changing color of line based on value.
To control colour of any segment of plot you should use |line()| >> doc line

14 years 前 | 0

已回答
How to name an array or series of arrays in a pattern?
var1=11234742; prefix='Signal_'; eval([prefix num2str(var1) '=' num2str(var1)]);

14 years 前 | 0

已回答
ASsign Array element
MyVec=440*ones(1,360214);

14 years 前 | 0

| 已接受

已回答
How to compare in matlab
Try this: TestA=( A(1,:) == k); TestA is a logic vector or this TestVec=find( A(1,:) == k); TestVec - is a vector contai...

14 years 前 | 1

已回答
How to make a list of user's reputation ? :)
for linux users (because command |system()| is involved): str1='Reputation: '; str2='">'; ANSWERS=cell(10000,2); A...

14 years 前 | 0

提问


How to make a list of user's reputation ? :)
?: <<http://img141.imageshack.us/img141/5166/rankingo.png>>

14 years 前 | 4 个回答 | 3

4

个回答

已回答
loop algebraic and variable signal
You may try to insert <http://www.mathworks.com/help/toolbox/simulink/slref/unitdelay.html unit delay block> <<http://www.mat...

14 years 前 | 1

已回答
converting two cells into one
Consider following code: a={'4'; '8'}; b={'the' ; 'be'}; spaces={' ' ; ' '}; c=strcat(b,spaces,a) EDIT: calternativ...

14 years 前 | 0

| 已接受

已回答
adding digits in numbers
Analyze this solution: N='435'; % number in a string format S=sum(N-'0')-numel(N)*('0'-0); Edit: Good point, Walter Robers...

14 years 前 | 0

已回答
Spectrogram
Frequency sampling ( _Fs_ ) - this is all about. You should specify correct _Fs_ - try |spectrogram| in this usage: S=spectro...

14 years 前 | 0

| 已接受

已回答
Add random noise to recorded sample
yes, of course - check documentation >> doc awgn I recommend this usage: y = awgn(x,snr,'measured') ;

14 years 前 | 0

| 已接受

已回答
Detection of objects
in Matlab vector/matrix indexing starts from 1, not from 0, so you should change for-loop _starting value_ on *1* .

14 years 前 | 0

已回答
Generating a vector with a pattern?
check this out: A=[1:6].^[1:6];

14 years 前 | 2

| 已接受

已回答
Load .mat file
check that current directory contains your file to load - if yes, try this (use an extensioni, if exists): load('pulse_7cm...

14 years 前 | 0

| 已接受

提问


How to react on a change of variable from workspace?
I would like to have an opportunity to react on value change of any workspace variable during any script runnig or commandline w...

14 years 前 | 3 个回答 | 1

3

个回答

已回答
Distinct colors for plotting two columns of a single matrix
Look closer on <http://www.mathworks.com/help/techdoc/creating_plots/bqsxy_a-1.html Defining the Color of Lines for Plotting>

14 years 前 | 0

已回答
How do I normalize the fft output for a signal?
Try this: Fs=1000; % Hz NFFT=2^nextpow2(size(footfall,2)); resolution=Fs/NFFT; % Hz/bin faxe=(1:(NF...

14 years 前 | 0

已回答
Input to keyboard with no key press
<http://undocumentedmatlab.com/blog/gui-automation-robot/ HERE> is the solution, also for "virtual" mouse moving and clicking

14 years 前 | 0

| 已接受

已回答
Equi power graph
check <http://www.mathworks.com/help/techdoc/creating_plots/f10-2524.html Contour plots> out.

14 years 前 | 0

| 已接受

已回答
Frequency modulating a wav file?
when .wav is one-channel (not stereo): [x fs]=wavread('NonPeriodic.wav'); Fc=1e6; % carrier = 1MHz FS=2.2*...

14 years 前 | 0

提问


How to replace MATLAB icon from a figure window?
How to replace or delete the MATLAB icon (the peaks) from a figure window?

14 years 前 | 3 个回答 | 1

3

个回答

已回答
problem in code for 16 qam
add spaces in binary vectors: a(i:i+3)=[0 0 0 0] ... a(i:i+3)=[1 1 1 1]

14 years 前 | 0

| 已接受

已回答
Graphs -how to change the color of a segment joining 2 dots multiple times in the same plot
% lets prepair input matrix MAT=zeros(3,20); MAT(3,:)=randi(1,20); MAT(1,:)=1:20; MAT(2,:)=MAT(1,:).^2; %...

14 years 前 | 0

已回答
FFT & IFFT with data with large number of samples
FFT/IFFT filtering is not appropriate in your case, because of poor spectral resolution. The best resolution you could achieve ...

14 years 前 | 0

已回答
Frequency modulation by MATLAB
From the top of my head: Fc=1e6; % carrier 1MHz Fm=1e3; % single tone - 1kHz fs=2.2*Fc; % sampling frequency (Nyq...

14 years 前 | 0

加载更多