Community Profile # Bahareh

### American University of Sharjah

30 total contributions since 2011

#### Bahareh's Badges

View details...

Contributions in
View by

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

5 years ago | 1 answer | 0

### 1

answer

Question

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.

9 years ago | 1 answer | 0

### 1

answer

Question

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

9 years ago | 1 answer | 0

### 1

answer

Question

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

9 years ago | 2 answers | 0

### 2

answers

Question

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

9 years ago | 0 answers | 0

### 0

answers

Question

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

9 years ago | 1 answer | 0

### 1

answer

Question

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

9 years ago | 3 answers | 0

### 3

answers

Question

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

9 years ago | 5 answers | 0

### 5

answers

Question

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

9 years ago | 1 answer | 0

### 1

answer

Question

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

9 years ago | 1 answer | 0

### 1

answer

Question

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

9 years ago | 2 answers | 0

### 2

answers

Question

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

9 years ago | 1 answer | 0

### 1

answer

Question

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

9 years ago | 1 answer | 0

### 1

answer

Question

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

9 years ago | 1 answer | 0

### 1

answer

Question

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

9 years ago | 2 answers | 1

### 2

answers

Question

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

9 years ago | 1 answer | 0

### 1

answer

Question

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?

9 years ago | 5 answers | 0

### 5

answers

Question

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

9 years ago | 2 answers | 0

### 2

answers

Question

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

9 years ago | 1 answer | 0

### 1

answer

Question

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

10 years ago | 1 answer | 0

### 1

answer

Question

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

10 years ago | 3 answers | 0

### 3

answers

Question

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

10 years ago | 1 answer | 0

### 1

answer

Question

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

10 years ago | 1 answer | 0

### 1

answer

Question

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

10 years ago | 1 answer | 0

### 1

answer

Question

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

10 years ago | 1 answer | 0

### 1

answer

Question

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

10 years ago | 2 answers | 0

### 2

answers

Question

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

10 years ago | 1 answer | 0

### 1

answer

Question

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

10 years ago | 1 answer | 0

### 1

answer

Question

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

10 years ago | 1 answer | 0

### 1

answer

Question

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

10 years ago | 1 answer | 0

answer