Answered
What does this refers to?
That is the norm. It is implemented in MATLAB with norm() Without additional information, it is not clear which norm || || re...

13 years ago | 0

Answered
What does this refers to?
I'm assuming this means the average (or mean). In that usage, it is a case of the bra-ket notation introduced by Dirac. For a...

13 years ago | 0

| accepted

Answered
How to set colors in quiver (2D)?
I would separate the elements which are turning inward vs outward since you have a vector of indices and use two different calls...

13 years ago | 1

| accepted

Answered
Lena Image Fourier Transform
Yes, use fft2() This question seems identical (but with less detail) to this one: <http://www.mathworks.com/matlabcentral/...

13 years ago | 0

Answered
How to implement the following?
As you note in the tag, that notation is used most often for the inner product, which is a linear functional, a linear operator ...

13 years ago | 0

| accepted

Answered
Difference between "diff(x^2)" and "2*x"
syms x1 x2 F; U=x1^2+(x2-F)^2; sol = solve(diff(U,x1)==0,diff(U,x2)==0,x1,x2); sol.x1 sol.x2 Identical for...

13 years ago | 0

Answered
Can an mfile(s) written in Matlab on Windows be run on matlab for a Mac without compatibility issues?
Yes, unless that M file is using some specific Windows system commands, or is really a mex file compiled for Windows

13 years ago | 0

Answered
Undefined function 'awgn' for input arguments of type 'double'
Does this command return a 1: license('test','communication_toolbox') Are you in a networked configuration where only so ...

13 years ago | 0

| accepted

Answered
What syntax can I use, say, in the calculation of the number of tanks of a plant where the length of each tank should not be greater than 50? Below is the code I tried...
length is a MATLAB function so you should try to avoid using variable names that are the same as MATLAB function names. area is ...

13 years ago | 0

Answered
Why is airy(3,1) complex? (No numerical round-off in the complex part)
What release are you using? >> format long >> isreal(airy(3,1)) ans = 1

13 years ago | 0

Answered
What's "randval(a,b)"?
It is not a MathWorks' function. So apparently you have downloaded, or somebody downloaded, or has written a function randval()....

13 years ago | 0

Answered
Need help selecting the max of array A, then selecting corresponding array B
The problem is the 's' at the end of your fprintf() statement printf('\n The country with the lowest percentage of wind en...

13 years ago | 0

| accepted

Answered
Need help selecting the max of array A, then selecting corresponding array B
What about just [maxval,index] = max(pe); cn{index} By using cn{index} you get the country back as a string -- a ...

13 years ago | 0

Answered
Performing PSD from FFT. How to unpack FFT?
Hi Elena, You can use your own window function with pwelch.m. You just supply a vector, then you can just overlap by 634 samp...

13 years ago | 0

Answered
How to calculate diagonal for NxN matrix ?
Just use trace() trace(A)

13 years ago | 0

Answered
how to read a period of wav file in matlab?
If you use wavread, you can use an argument to read a range of samples. You would have to increment that in a loop. The same ...

13 years ago | 0

| accepted

Answered
How does one create a dataset from a large array and subsequently name the variables?
Why don't you organize the excel file and then create the dataset directly from the excel file with the A = dataset('XLSFil...

13 years ago | 0

Answered
how i can convert matrix to dat
You can just use save with the -ascii option. x = randn(10,10); save mymatrix.dat x -ascii Or the forms: save('mym...

13 years ago | 2

| accepted

Answered
What command prompts for file name then creates/opends file?
Look at uigetfile [filename, pathname, filterindex] = uigetfile( ... {'*.mat','MAT-files (*.mat)'; ... ...

13 years ago | 0

| accepted

Answered
How can I convert 2-D array to 1-D array.
oprtn_pts = randn(3,2); oprtn_pts = reshape(a,6,1); It takes the elements from oprtn_pts columnwise.

13 years ago | 0

Answered
Dear all, my question is how to compute the power density spectra for a discrete velocity measurement.
You have a 1-D vector (row or column) vector and you want to compute a power spectral density estimate? Do you have the Signa...

13 years ago | 1

Answered
Fourier filtering in Matlab
Unfortunately padding the time series with zeros is not going to improve your ability to recover oscillations for which your ori...

13 years ago | 0

Answered
Using simulink: why have the digital passband blocks disappeared?
Can you please say specifically which blocks you are referring to? Are you sure these blocks are part of core Simulink and not p...

13 years ago | 0

Answered
where is the error?
I can run this without error. I think you have some variable in your workspace that is conflicting with this and causing the err...

13 years ago | 1

Answered
How do you write a FUNTION-M file?
Your title is not an accurate description of your post. Your post is asking somebody to write specific code for you, not a gener...

13 years ago | 0

Answered
How can i do hough transform
The Image Processing Toolbox has a function, hough.m, and the Computer Vision System Toolbox has a System object, vision.HoughTr...

13 years ago | 0

Answered
Error using ==> plot Vectors must be the same lengths.
You have to have an x and y variable that are the same length So ScopeData.time and ScopeData.signals.values(:) do not ...

13 years ago | 0

Answered
How can I solve "Undefined function or method 'IFFT_oversampling' for input arguments of type 'double'."?
where did you get this function from? IFFT_oversampling This is not a MathWorks' function, so if you have downloaded it f...

13 years ago | 0

Answered
extract a thin band of frequencies from entire spectrum using FFT
You can just create a vector of zeros to match the size of the original DFT vector and then fill the correct indices of the vect...

13 years ago | 0

Answered
Sum all the Channels in matrix
M = randn(100,100,5); R = sum(M,3); Did you read the help for sum?

13 years ago | 1

Load more