A répondu
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...

environ 13 ans il y a | 0

| A accepté

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

environ 13 ans il y a | 0

A répondu
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,:)...

environ 13 ans il y a | 0

| A accepté

A répondu
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); ...

environ 13 ans il y a | 1

| A accepté

A répondu
Candlestick question
If V is your 1x360214 data vector: seg=4000; segments=floor(length(V)/seg); V=V(1: (segments*seg) ); AlgoMatrix=resh...

environ 13 ans il y a | 0

| A accepté

A répondu
Conditional plotting, changing color of line based on value.
To control colour of any segment of plot you should use |line()| >> doc line

environ 13 ans il y a | 0

A répondu
How to name an array or series of arrays in a pattern?
var1=11234742; prefix='Signal_'; eval([prefix num2str(var1) '=' num2str(var1)]);

environ 13 ans il y a | 0

A répondu
ASsign Array element
MyVec=440*ones(1,360214);

environ 13 ans il y a | 0

| A accepté

A répondu
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...

environ 13 ans il y a | 1

A répondu
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...

environ 13 ans il y a | 0

Question


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

environ 13 ans il y a | 4 réponses | 3

4

réponses

A répondu
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...

environ 13 ans il y a | 1

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

environ 13 ans il y a | 0

| A accepté

A répondu
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...

environ 13 ans il y a | 0

A répondu
Spectrogram
Frequency sampling ( _Fs_ ) - this is all about. You should specify correct _Fs_ - try |spectrogram| in this usage: S=spectro...

environ 13 ans il y a | 0

| A accepté

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

environ 13 ans il y a | 0

| A accepté

A répondu
Detection of objects
in Matlab vector/matrix indexing starts from 1, not from 0, so you should change for-loop _starting value_ on *1* .

environ 13 ans il y a | 0

A répondu
Generating a vector with a pattern?
check this out: A=[1:6].^[1:6];

environ 13 ans il y a | 2

| A accepté

A répondu
Load .mat file
check that current directory contains your file to load - if yes, try this (use an extensioni, if exists): load('pulse_7cm...

environ 13 ans il y a | 0

| A accepté

Question


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...

environ 13 ans il y a | 3 réponses | 1

3

réponses

A répondu
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>

environ 13 ans il y a | 0

A répondu
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...

environ 13 ans il y a | 0

A répondu
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

environ 13 ans il y a | 0

| A accepté

A répondu
Equi power graph
check <http://www.mathworks.com/help/techdoc/creating_plots/f10-2524.html Contour plots> out.

environ 13 ans il y a | 0

| A accepté

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

environ 13 ans il y a | 0

Question


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

environ 13 ans il y a | 3 réponses | 1

3

réponses

A répondu
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]

environ 13 ans il y a | 0

| A accepté

A répondu
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; %...

environ 13 ans il y a | 0

A répondu
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 ...

environ 13 ans il y a | 0

A répondu
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...

environ 13 ans il y a | 0

Charger plus