**Statistics**

**MATLAB Answers**

**30** Questions

**0** Answers

RANK**23,081**

of 291,842

REPUTATION**1**

CONTRIBUTIONS

**30** Questions

**0** Answers

ANSWER ACCEPTANCE **
70.0%
**

VOTES RECEIVED**1**

RANK

of 19,827

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 146,709

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Feeds**

Question

multiplying a 1xn vector to each element of a 1xm vector to create a 1xmn vector

Hello all, I have a 1xn vector, say d=[ 1 -1 -1 1] and would like to multiply it by each element of a 1xm vector say v=[-1+ 1i...

8 years ago | 1 answer | 0

### 1

answerQuestion

computing SNR in matlab

Hello all, I have a noisy sinisoid signal and would like to compute its SNR in MATLAB. Can anybody help me? Thanks.

12 years ago | 1 answer | 0

### 1

answerQuestion

sampling

I have a composition of 4 sinusoidal tones and would like to sample it at 50kHz. Here is my code:{t1=cos(2*pi*(0:.1:6)); t2=co...

12 years ago | 1 answer | 0

### 1

answerQuestion

Matlab figure

Hello All, I have a matlab figure consists of two plots in one graph. I would like to split them into two graphs using subplo...

12 years ago | 2 answers | 0

### 2

answersQuestion

impulsive noise

Hello all, Does anybody have an idea how to simulate impulsive noise class A in matlab? Thanks.

12 years ago | 0 answers | 0

### 0

answersQuestion

converting a group of .fig files into .pdf

Hello all, I have about 30 .fig files and would like to convert them into .pdf in one go. Is there an easy way to do it? Than...

12 years ago | 1 answer | 0

### 1

answerQuestion

surface plot

Hello all, I have the following code: a = 0:.1:1; b = 0:.01:.1; for k = 1:length(a) c = a(k) + b(k); end I would ...

12 years ago | 3 answers | 0

### 3

answersQuestion

having one "for" loop instead of two

Hello all, I have two "for" loops. for a=0:10 for b=0:10 c=a+b; end end I would like two combine them and put them ...

12 years ago | 5 answers | 0

### 5

answersQuestion

using surfl

Hello all, I need to plot two graphs using "surfl" in my code. I use the following commands: figure() surfl (a,b,c) f...

12 years ago | 1 answer | 0

### 1

answerQuestion

exiting a loop

Hello all, I have a while loop in which while abs(a-b)>=delta rest of code end Sometimes the condition of this w...

12 years ago | 1 answer | 0

### 1

answerQuestion

mean

I have a 76x5 matrix and would like to convert this to a 76x1 matrix whose rows are the mean of each of the rows of the original...

12 years ago | 2 answers | 0

### 2

answersQuestion

legend

I have a matrix m which varies with vectors a and b. I've plotted m versus a for different values of b, but I don't know how to ...

12 years ago | 1 answer | 0

### 1

answerQuestion

playing an under-sampled .wav music in matlab

Hello all, I've undersampled a .wav music and would like to play it in Matlab to hear the effect of aliasing. Can you please ...

12 years ago | 1 answer | 0

### 1

answerQuestion

downsampling a music in matlab

Hello all, I have a .wav type music and would like to undersample it at 4kHz to view the aliasing effect. Can somebody help m...

12 years ago | 1 answer | 0

### 1

answerQuestion

viewing spectrum of an audio signal in matlab

Hello all, I have an audio signal (.wav) and would like to view its spectrum in matlab. Can anybody help me in this manner? ...

12 years ago | 2 answers | 1

### 2

answersQuestion

rayleighhchan object

Hello all, I'm working with h=rayleighchan() object. Can anybody tell me how I can create a matrix of h with specific size? i...

13 years ago | 1 answer | 0

### 1

answerQuestion

A basic matlab problem

Hello all, If I want to create a matrix of for example 9.5 with a specific size i.e. [9.5 9.5 .... 9.5], what should I do?

13 years ago | 5 answers | 0

### 5

answersQuestion

Finding diag of two cells

Hello, I have two cells(a and b) each with size 1x4 and each of them contains 2x1 matrix in each of its columns. I would like t...

13 years ago | 2 answers | 0

### 2

answersQuestion

finding power 2 of an object

Hello, Is there any way to find power 2 of an object?

13 years ago | 1 answer | 0

### 1

answerQuestion

general MATLAB queation

Hello, How can we change the size of an object in MATLAB?

13 years ago | 1 answer | 0

### 1

answerQuestion

solving two equations with 4 unknowns

Hello all, Can you please tell me how can I solve 4 equations with 2 unknowns in MATLAB?

13 years ago | 3 answers | 0

### 3

answersQuestion

using rayleighchan

Hello, I'm trying to write a code that computes the optimal TX/RX response for a Rayleigh channel using rayleighchan() in MAT...

13 years ago | 1 answer | 0

### 1

answerQuestion

simple question in matlab

Hello all, I have the following for loop: for n = 3:32 r(n) = rank(magic(n)); end r Shouldn't this loop start from n=3...

13 years ago | 1 answer | 0

### 1

answerQuestion

Gaussian mixture model

[EDIT: 20110610 10:31 CDT - reformat - WDR] Hello, I have two sets of training data each with size 800x3. I'd like to fit them...

13 years ago | 1 answer | 0

### 1

answerQuestion

svmtrain

Hello all, I have two sets of data each of size 3x400. I would like to train them using svmtrain but I don't know what I shou...

13 years ago | 1 answer | 0

### 1

answerQuestion

kmeans() in MATLAB

Hello, I have 10 classes and would like to use kmeans command in MATLAB to find the centroid and indices for the 10 classes. wh...

13 years ago | 2 answers | 0

### 2

answersQuestion

k nearest neighbor

Hi, I have 3 500x2 training data and 3 500x2 testing data. i would like to apply k nearest neighbor method to find classificati...

13 years ago | 1 answer | 0

### 1

answerQuestion

extracting non-zero elements in a matrix or an array

Hello, I have two questions. I would be so glad if you can please help me. 1. How can I extract the number of non-zero eleme...

13 years ago | 1 answer | 0

### 1

answerQuestion

saving matrix elements into array

Hi, I have 9 matrices with size 500x2. I would like to save them into a 3x3 array; i.e. my first 500x2 matrix be the first elem...

13 years ago | 1 answer | 0

### 1

answerQuestion

using contour()

I have a distribution with a 1x2 mean vector and a 2x2 covariance matrix. I would like to display the distribution using contour...

13 years ago | 1 answer | 0