已回答
How do I plot d using Matlab
Not sure why you are trying to construct your signal like this. Take advantage of MATLAB's vector operations. Nt = 1...

10 years 前 | 0

已回答
Decimation factor with RESAMPLE
resample uses upfirdn() under the hood, which is ultimately a MEX file implementation of a polyphase filtering of the input, so ...

10 years 前 | 1

已回答
How to perform K-means for multidimensional data i.e of size 9*105
Hi, do you have the Statistics Toolbox? If so see the help for kmeans() However, kmeans() assumes that rows are observations ...

10 years 前 | 0

| 已接受

已回答
What is the syntax of fprintf? Suppose there are two flot numbers 1 and 2, and F_ID is the file identifier. Write the command to sabe the two numbers to F_ID?
fprintf(F_ID, '%1.1f %1.1f\n', X) where X has two columns. X is the variable in the MATLAB workspace contain the numbers. ...

10 years 前 | 0

| 已接受

已回答
Standart deviation between two matrix
What do you mean "between two matrix" std() on a matrix returns the standard deviation of the columns A = randn(100,6); ...

10 years 前 | 0

| 已接受

已回答
I need a code for Haar wavelet transform.
You can use wavedec2() with either wavelet name 'haar', or 'db1' load woman; J = 4; % level of the MRA [C,S] = wavede...

10 years 前 | 0

| 已接受

已回答
using char as formula inside a script
What about just using subs (and you must mean -cos(2) not cos(2)) syms x funct = sin(x); intgl = int(funct) finval...

10 years 前 | 0

| 已接受

已回答
Why is there an error?
The simple answer is your input argument is spelled numpolys in the function declaration, but you spell it numploys in the for...

10 years 前 | 0

| 已接受

已回答
why is periodogram(y,w) not periodogram(y.*w)
The difference is that the syntax periodogram(y,w) uses the window normalization constant explained here: http://www.mathwork...

10 years 前 | 0

| 已接受

已回答
How to replace middle value of matrix 4x4 with the other matrix 2x2?
A = randn(4,4); B = randi([0 1],2,2); A([6 7 10 11]) = B; I determined those linear indices using: sub2ind([4 ...

10 years 前 | 0

已回答
how to apply dwt and inverse dwt for an image
Are you sure it is just not the scaling of the image in imshow() that is causing you problems? For example, note: ...

10 years 前 | 0

已回答
How can I convert more column vector into cell array
Maybe you need to be more precise x = randn(1000,1); x = {x}; Or let's assume you have the column vectors in a matri...

10 years 前 | 0

已回答
Adding noise with certain standard deviation to uncorrupted data
when you say 0.1047 rad/second, do you want these values to be bounded by a certain interval? or is the frequency value continuo...

10 years 前 | 2

| 已接受

已回答
sampling rate and fft
No, you don't need to specify the sampling rate, but if you wish to create a meaning frequency vector, then you need to know the...

10 years 前 | 1

| 已接受

已回答
Convert a string to number
how about just using format long data = '0.0782238'; data = str2num(data); format long data

10 years 前 | 0

已回答
Wich app/tool is suitable to elaborate experimental data?
The answer is likely YES, but I'm afraid you need to be much more specific about what your data are and what you are trying to d...

10 years 前 | 0

已回答
how to calculate and plot power spectral density of a given signal
If you have the Signal Processing Toolbox, it is easiest to use periodogram(). That handles all the scaling for you. ...

10 years 前 | 7

| 已接受

已回答
help using sortrows please
Hi Tom, sortrows(A) sorts the rows of the matrix A based on the entries in column 1. so: A = [100.3598 110.5698...

10 years 前 | 0

已回答
Select 'DeviceName' for dsp.AudioRecorder and dsp.AudioPlayer
Hi Daniel, can you try this: To select or change the Audio Hardware API, select Preferences from the MATLAB Toolstrip. Then ...

10 years 前 | 0

已回答
Select 'DeviceName' for dsp.AudioRecorder and dsp.AudioPlayer
Enter devinfo = audiodevinfo; then look at devinfo.output the name there should be a valid DeviceName property...

10 years 前 | 0

| 已接受

已回答
Question about summations from excel (backwards sum)
There are a couple issues here. A sum that goes from 0 to 20 has 21 elements not 20 as you indicate. Further, summation is com...

10 years 前 | 0

已回答
finding out phase shift in time domain from FFT result
You can get the phase from the output of fft() Fs = 1000; t = 0:1/Fs:1-1/Fs; x = cos(2*pi*100*t-pi/4)+cos(2*pi*200*t-...

10 years 前 | 4

| 已接受

已回答
Newbie: ploting Rectangular Signals and apply Grahm-Schmidt procedure??
Presumably you have these as N-dimensional vectors in the MATLAB workspace. Place those vectors as columns of a matrix and us qr...

10 years 前 | 0

| 已接受

已回答
how to find the numerical integration in matlab
a = 1; b = 2; f = @(x) sin(x)./sqrt(a+b*sin(x)); quad(f,0,2);

10 years 前 | 0

已回答
how to find the numerical integration in matlab
What version of MATLAB are you using? There is an integral() function for numerical integration. Of course, you'll need value...

10 years 前 | 0

已回答
Random Binary Sequence Generator
use randi() x = randi([0 1],10000,1);

10 years 前 | 2

| 已接受

已回答
how can I set double-value array input in a function?
This error message indicates that you have the function HighestPrice.m in a folder that is not on the MATLAB path. Let's say ...

10 years 前 | 0

| 已接受

已回答
Is it possible to change 'file.m' to 'file.exe' ?
Yes, but it requires other products you may or may not have. One way: <http://www.mathworks.com/products/compiler/ MATLAB ...

10 years 前 | 0

| 已接受

已回答
matlab code for digital filter design to remove gaussian noise from a speech signal ?
So what is not working about the above code? You can probably push the passband frequency a bit lower without affect intelligib...

10 years 前 | 0

加载更多