Answered
Dynamic Output File Naming - Screen Capture
I think if you change filehandle = java.io.File('screencapture.jpg'); to filehandle = java.io.File([num2str(i), '.j...

15 years ago | 0

| accepted

Answered
Unclear as to why I'm getting a dimension mismatch?
First, Walter is correct that you likely don't want to do what you are trying to do. Second, I don't think you are doing what yo...

15 years ago | 0

Answered
How to plot so that its figure window doesn't become on top?
You must have some extra code you are not telling us about. The plot function will generally plot into the current axis. I don't...

15 years ago | 1

Answered
detect debug mode
I don't think there is a robust way to tell. For example, you can get the "k>>" prompt with a keyboard command and I have no ide...

15 years ago | 0

| accepted

Answered
GPU and CPU computing results different
When you say very small, do you mean 1e-16 small? If so, that is close to the precision of double precision numbers. Check out: ...

15 years ago | 0

Answered
Get next plot color
I think the number of children should equal the number of calls to plot. You need to use mod to loop through the colors (i.e if ...

15 years ago | 1

| accepted

Answered
Path management for different versions of projects
Your folder naming does not seem to fully capture the power of modern version control systems. If you think of your project as h...

15 years ago | 2

Answered
how to maintain security
I think if you set the HitTest and HandleVisibility properties to off, you can lock down an axis pretty well. For even more "sec...

15 years ago | 0

Answered
How to use vectors in conditional functions?
Without any more information regarding what doesn't work, I am just guessing ... The == operator with a scalar returns a scal...

15 years ago | 0

Answered
How to convert Pascal to dB, knowing the microphone sensitivity?
I think you are probably missing a piece of information to do the conversion. Your signal in MATLAB is probably in some arbitrar...

15 years ago | 0

| accepted

Answered
Error using hilbert for envelope detection
have you redefined hilbert someplace in your code which hilbert should give something like .../signal/signal/hilbert....

15 years ago | 0

Answered
Adding a beep cue before a specific location
You have cueTone defined so all you need to do is add it to your snd array ... if idx == 1 out = snd; elseif ...

15 years ago | 0

| accepted

Answered
Basic probability question
x = rand(1, 10); % Makes x have values between 0 and 1. y = ones(size(x)); % Start off with all ones y(x > 0.6) = 2; % ...

15 years ago | 0

| accepted

Answered
Load constants from file
Another solution is to create a file, lets call it loadconstants.m. In that file just put A=1; B=2; C=3; Then when...

15 years ago | 0

Answered
Least Squares Fitting Method with a Circle
Have you looked at the FEX: <http://www.mathworks.com/matlabcentral/fileexchange/?term=fit+chernov>

15 years ago | 0

Answered
Matlab GUI - Edit text only allow numbers and '.'
If the key is invlaid you want to set the string of the edit box to be whatever the string is minus the last element x = ge...

15 years ago | 0

| accepted

Answered
Multiple Callback Functions
It is ugly ... obj = uicontrol(...,'style','popupmenu',... 'Callback', @(h,e)(cellfun(@(x)feval(x,h,e), ... {@(h,...

15 years ago | 2

| accepted

Answered
how to find argument or angle of a complex number in matlab?
The function angle is the correct function. The error is unrelated. You are likely not simple calling angle(x) but rather...

15 years ago | 1

Answered
confidence intervals for line and corresponding normcdf
The question is not so clear to me and is outside my area of expertise, but I will give it a stab ... Have you thought about ...

15 years ago | 0

Question


Desktop layout
What is your MATLAB desktop layout like? I have always kept everything but the command window undocked. Recently, I got a big...

15 years ago | 3 answers | 2

3

answers

Answered
A script to create a single matrix from matrix in different matlab files
n = 10; c = 100; x = nan(100, 10); for ii = 1:n data = load(['FileName_', num2str(ii)]); x(:, ii) = data.A;...

15 years ago | 0

| accepted

Answered
Step by step 1-D filtering
Step by step 1-D filtering is requires you to have a filter defined in terms of b and a. A very simple low pass filter is b...

15 years ago | 0

| accepted

Answered
automatic intake of the input ( tartget images) from matlab directory in Target Detection
Something like ... temp = dir; filenames = {temp(3:end).name}; % The first two names are . and .. and should be ignored ...

15 years ago | 0

| accepted

Answered
Vary TolX for different parameters
It might be possible ... A simpler work around would be to scale your parameter so the scaled parameter no longer has a low s...

15 years ago | 1

| accepted

Answered
gzip keeps original file
If you like the unix gzip, why not just use it directly ... system(['gzip ', FileNameStr])

15 years ago | 0

Answered
timer and Interruptible=Off button callback priority/preemption?
Non-timer graphic callbacks only run when the event queue is flushed. This means as long as you are careful with your timer call...

15 years ago | 1

Answered
suggestion for the integrating the gaussian function
I don't really understand the question. Your Gaussian function seems to depend on two variables (t and x). The t makes me think ...

15 years ago | 0

| accepted

Answered
snr and eb no
In general the E/N0 notation denotes the signal energy over the spectrum level of the noise. As for differences between SNR and ...

15 years ago | 0

| accepted

Answered
Error Bars
There are a number of functions on the FEX that should allow you to do this. I haven't used any of them, but <http://www.mathwo...

15 years ago | 1

| accepted

Load more