Risposto
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...

oltre 12 anni fa | 0

Risposto
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 ...

oltre 12 anni fa | 1

Risposto
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 ...

oltre 12 anni fa | 0

| accettato

Risposto
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. ...

oltre 12 anni fa | 0

| accettato

Risposto
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); ...

oltre 12 anni fa | 0

| accettato

Risposto
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...

oltre 12 anni fa | 0

| accettato

Risposto
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...

oltre 12 anni fa | 0

| accettato

Risposto
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...

oltre 12 anni fa | 0

| accettato

Risposto
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...

oltre 12 anni fa | 0

| accettato

Risposto
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 ...

oltre 12 anni fa | 0

Risposto
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: ...

oltre 12 anni fa | 0

Risposto
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...

oltre 12 anni fa | 0

Risposto
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...

oltre 12 anni fa | 2

| accettato

Risposto
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...

oltre 12 anni fa | 1

| accettato

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

oltre 12 anni fa | 0

Risposto
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...

oltre 12 anni fa | 0

Risposto
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. ...

oltre 12 anni fa | 7

| accettato

Risposto
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...

oltre 12 anni fa | 0

Risposto
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 ...

oltre 12 anni fa | 0

Risposto
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...

oltre 12 anni fa | 0

| accettato

Risposto
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...

oltre 12 anni fa | 0

Risposto
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-...

oltre 12 anni fa | 4

| accettato

Risposto
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...

oltre 12 anni fa | 0

| accettato

Risposto
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);

oltre 12 anni fa | 0

Risposto
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...

oltre 12 anni fa | 0

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

oltre 12 anni fa | 2

| accettato

Risposto
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 ...

oltre 12 anni fa | 0

| accettato

Risposto
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 ...

oltre 12 anni fa | 0

| accettato

Risposto
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...

oltre 12 anni fa | 0

Carica altro