回答済み
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...

12年以上 前 | 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 ...

12年以上 前 | 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 ...

12年以上 前 | 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. ...

12年以上 前 | 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); ...

12年以上 前 | 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...

12年以上 前 | 0

| 採用済み

回答済み
how to apply convolution to two,two dimensional signals ..let me illustrate you in an elaborate way ..if I(x,y) is one two dimensional signal and H(x,y) is another signal varying in both x and y directions.how can i convolve both the signals
Simply using conv2() You can also see the help for filter2(). Perhaps one of your matrices is a 2-D FIR filter for the data m...

12年以上 前 | 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...

12年以上 前 | 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...

12年以上 前 | 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...

12年以上 前 | 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 ...

12年以上 前 | 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: ...

12年以上 前 | 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...

12年以上 前 | 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...

12年以上 前 | 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...

12年以上 前 | 1

| 採用済み

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

12年以上 前 | 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...

12年以上 前 | 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. ...

12年以上 前 | 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...

12年以上 前 | 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 ...

12年以上 前 | 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...

12年以上 前 | 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...

12年以上 前 | 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-...

12年以上 前 | 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...

12年以上 前 | 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);

12年以上 前 | 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...

12年以上 前 | 0

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

12年以上 前 | 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 ...

12年以上 前 | 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 ...

12年以上 前 | 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...

12年以上 前 | 0

さらに読み込む