Answered
I cant generate a square wave in matlab using the square wave command
You can get similar functionality with square = @(M, N, duty)repmat([ones(floor(N/duty), 1); -ones(ceil(N/duty), 1)], M, 1)...

13 years ago | 0

Answered
How to search for contributors with most answers matching a chosen tag
I have concerns about this strategy and employing functionality like this. It seems like you (or others) might use it as a means...

13 years ago | 0

Answered
GPU and SSH
COMPUTE=:0 Such an easy answer. Apparently you need to set the COMPUTE environment variable.

13 years ago | 0

| accepted

Question


GPU and SSH
I just got a new machine with an NVIDIA Quadro 4000 GPU and thought I would give GPU processing a try. I have installed Arch Lin...

13 years ago | 2 answers | 0

2

answers

Answered
Answers vs Newsgroup
I will chime in with my pet peeve: The CSSM is "free" while Answers is owned and controlled by TMW with editorial policies that ...

13 years ago | 4

Answered
Cannot read PCM file formats with more than 32 bits per sample.
I am assuming this comes from trying to use the WAVREAD function. I think the error is pretty straight forward. The PCM file (ak...

13 years ago | 0

Answered
create best fit line
If you just want to plot the data and line doc lsline If you want the equation for the the line doc polyfit

13 years ago | 0

Answered
Progress bar for several functions nested in GUI
There are tons of waitbar and status bar submissions to the FEX. My guess is <http://www.mathworks.com/matlabcentral/fileexchang...

13 years ago | 0

Answered
MATLAB gets stuck in the "Initializing" state during startup from bat file
1. open DOS 2. type matlab -r "addpath('D:\CODE\MATLAB\Matlab_Code\startUp');abs_autoStartUp" 3. hit enter Critica...

13 years ago | 0

Question


Using j for imaginary numbers
I tend to use i for imaginary numbers and not j. In confirming that MATLAB is happy to use either I typed j and got ...

13 years ago | 2 answers | 0

2

answers

Answered
When using Corrcoef
I am not sure exactly what you want ... *EDIT* but not really different N = 10; x = randn(N); y = corrcoef(x); ...

13 years ago | 0

| accepted

Answered
Matrix element counting by rows, histograms, etc.
It is not the fastest and you probably could preallocate z if you wanted to. It also ignores your ps, but getting rid of the ext...

13 years ago | 1

| accepted

Answered
is it possible to use "find" to process every element of an array without loop
I know it has a loop, but what about something like this: a = randperm(1e5); X = 2e3*randn(1, 1e5); [b, ai] = s...

13 years ago | 1

Answered
Reverberation Time
There are already a three implementations <http://www.mathworks.com/matlabcentral/fileexchange/?term=t60 FEX: t60>

13 years ago | 0

Answered
sending email when face is detected
doc sendmail

13 years ago | 0

Answered
Problem with legends
I don't know of an easy clean way to do it, but you can hack it pretty easily by plotting an empty plot with the desired line .....

13 years ago | 0

| accepted

Answered
I have written a code please help me in getting the output .
Wow, this question keeps coming up. The WAVWRITE function expects its input (in your case decodedx) to be an array with all valu...

13 years ago | 0

| accepted

Answered
Different results when running the same MATLAB program on different version of MATLAB
Looking at dftmtx in r2011a type dftmtx reveals that it has been changed on 2010/11/08. There is no change log and I do ...

13 years ago | 0

Answered
having errors while converting .mat file to .wav file
Instead of wavwrite(x.(f{1}),8000,'foo.wav') try nBits = 16; Y = x.(f{1}); Y = Y./max(abs(Y(:)))*(1-(2^-(nBit...

13 years ago | 0

| accepted

Answered
Matrix consist of letters
Do you want something like this X = [repmat('x', 1, 10); repmat('y', 1, 10); repmat('z', 1, 10)] Or maybe this makes m...

13 years ago | 0

| accepted

Answered
Different results when running the same MATLAB program on different version of MATLAB
That is pretty dang close. In fact, if I counted the zeros correctly, the difference is on the order of eps(1) Basical...

13 years ago | 0

Answered
Hightlighting data on a plot
myCurrentTime(myCurrentValues>1.7)

13 years ago | 0

Answered
How to get the same rand
doc randstream

13 years ago | 0

Answered
Passing base workspace variables to callback functions
What you are trying to do is difficult because it is bad programming practice with or without using globals. Basically you are t...

13 years ago | 0

| accepted

Answered
using print command to create high resolution image causes problem with x scale
Almost all printing and exporting problems are solved with <http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig ...

13 years ago | 0

Answered
how can I trained mammograms images that can help out in testing of other mammograms
This question http://www.mathworks.com/matlabcentral/answers/4785-image-preprocessing-from-mammogram-image suggests "multiscale ...

13 years ago | 0

Answered
What is [] to the left of "=" means?
In this case the [] does not mean anything *EDIT* [processed_I] = preA(handles, connected_I, 0); and processed_I...

13 years ago | 1

Answered
parfor - can't get my head around it
The MATLAB parser (???) cannot tell that count can be sliced. The parser thinks that potentially b(i) might equal b(j) for some ...

13 years ago | 0

Answered
having errors while converting .mat file to .wav file
The error means that at least for one sample either x<-1 or x>1. *EDIT* See: http://www.mathworks.com/matlabcentral/answers/...

13 years ago | 0

Answered
How to make a function/script start over
See http://www.mathworks.com/matlabcentral/answers/1093-how-do-i-reset-matlab-to-its-launched-state Assuming you have a log...

13 years ago | 0

Load more