Risposto
Plot text file
There are several ways to do this. One very easy method is to use the |stem| function instead of the |plot| function: ste...

quasi 13 anni fa | 0

Risposto
Including files in matlab
One approach would be to make |file1.m| into a function that accepts input arguments when called by |file2.m| and returns output...

quasi 13 anni fa | 0

Risposto
Approximate e using random points
You may be able to eliminate the |for| loop by vectorizing the code I posted in my previous answer. The approach would be to ma...

quasi 13 anni fa | 0

Risposto
Approximate e using random points
Please try something like the following: NumIter = 1000*[1;5;10;20;30;50]; NumTrials = size(NumIter,1); e_app...

quasi 13 anni fa | 0

Risposto
Approximation of e using random points
Please post a new question on MATLAB Answers with a link to this one for background info.

quasi 13 anni fa | 0

Risposto
Approximation of e using random points
BTW, were you able to compute a good value for _e_ using this method? How close to the correct value did you get?

quasi 13 anni fa | 0

Risposto
Approximation of e using random points
Yes, you can solve it with either a |for| loop or a |while| loop in conjunction with an |if| statement. So you were on a perfec...

quasi 13 anni fa | 0

Risposto
is there a command in matlab for waiting
Alternatively: if exist('result','var') ... else ... end HTH. Rick

quasi 13 anni fa | 0

Risposto
Approximation of e using random points
Please try the following: countBelow = sum(idx); countTotal = size(x,1); ratio = countBelow/countTotal; HTH...

quasi 13 anni fa | 0

Risposto
is there a command in matlab for waiting
if isempty(result) ... else ... end

quasi 13 anni fa | 1

Risposto
Approximation of e using random points
Hi Austin, I have not tested the following code, so it may not be 100 percent correct, but it should give you the basic idea. ...

quasi 13 anni fa | 0

| accettato

Risposto
is there a command in matlab for waiting
>> doc pause

quasi 13 anni fa | 0

Risposto
Frequency Analysis by Simulink
Alternaitively, you could use the function |freqz|. For more information: >> doc freqz HTH. Rick

quasi 13 anni fa | 0

Risposto
Frequency Analysis by Simulink
I would recommend trying it in MATLAB first. In the following code, I am assuming that the signal is stored in an _M_ x 1 array...

quasi 13 anni fa | 0

Risposto
What is the best command to return the % two stocks are cointegrated?
The Cyclist is correct. The Econometrics Toolbox has two functions that test for cointegration: * The Johansen cointegration t...

quasi 13 anni fa | 0

Risposto
renaming mat and subdirectories
Please take a look at the following functions: >> doc genpath >> doc dir >> doc movefile >> doc regexprep I...

quasi 13 anni fa | 0

Risposto
Calculating cycle frequency of a square wave
You may want to try using the |spectrogram| function: >> doc spectrogram HTH. Rick

quasi 13 anni fa | 0

Risposto
Calculating cycle frequency of a square wave
You could try transforming the signal from the time-domain to the frequency domain, and then identifying the fundamental frequen...

quasi 13 anni fa | 0

Risposto
filtering help
I would recommend that you take a look at the signal in the frequency domain, and try to figure out whether the noise is primari...

quasi 13 anni fa | 0

Risposto
processing signal
I will assume that |v| is a 2500 x 3 matrix where each column is one of the three phases of electrical power. I will also assum...

quasi 13 anni fa | 1

Risposto
adding noise signal to orginal signal
Do you have access to the _Communications System Toolbox_? If so, you can use the |awgn| function. For more information: >...

quasi 13 anni fa | 0

| accettato

Risposto
processing signal
Can you please answer the following questions? # Are the samples stored in a data file, or have you already brought them into t...

quasi 13 anni fa | 2

| accettato

Risposto
AWGN for a grayscale image
Yes, |imnoise| is the right function to use. Why are you concerned that it might not be the correct function to use? Ric...

quasi 13 anni fa | 1

| accettato

Risposto
How to count length of array?
Hi Jan, Please try the following: max_words = length(wordsarray{1}); HTH. Rick

quasi 13 anni fa | 0

Risposto
Include fft.m in Java Project
I think the easiest thing to do would be to modify the MATLAB source code for the |time2rms| function, and then re-deploy using ...

quasi 13 anni fa | 0

Risposto
Log Normal Distribution Fitting
You can find closed-form equations for the PDF and CDF on Wikipedia, and then use one or the other to estimate a curve that "fit...

quasi 13 anni fa | 1

Risposto
Include fft.m in Java Project
Hi Frank, The issue is not with deploying |fft| using Builder JA, but rather with |fft| itself. The |fft| function does not su...

quasi 13 anni fa | 0

| accettato

Risposto
How to use boxes to plot a freqency band?
You may want to consider using |patch| objects. For more information: >> doc patch HTH. Rick

quasi 13 anni fa | 0

Risposto
how to do ray tracing?
You can use MATLAB to perform the matrix computations that support ray tracing. For example, you can represent the lens in MATL...

quasi 13 anni fa | 0

Risposto
How to write several results in the same sheet of a Xls file ?
In the following code, I am assuming that your data is stored in arrays |A|, |B|, |C|, and |D| of various sizes: filename ...

quasi 13 anni fa | 1

Carica altro