Answered
Function Error not understood
You may want to use |X.^n| to achieve element-wise operation

14 years ago | 0

| accepted

Answered
Column Circulant Matrix
gallery('circul',[1 2 3])' You can then take the first L columns

14 years ago | 0

Answered
printing value of a variable in a plot at some fixed coordinates
You can use |text| with |num2str| or |sprintf| doc text doc num2str doc sprintf for example text(x,y,sprintf(...

14 years ago | 0

| accepted

Answered
Matrix division to solve Ax=b
Use x = a\b see the documentation doc mldivide doc mrdivide

14 years ago | 0

Answered
index out of bounds because numel(c)=2
You have an issue with your algorithm. You are growing your c and d at each iteration. When j is 2, it never went into the part ...

14 years ago | 0

Answered
Pls help me generate circulant matrix
You may want to use M:-1:M/2 in your code, or something like that. M:M/2 returns an empty vector so there is n...

14 years ago | 1

| accepted

Answered
Matrix Input
You can either save the matrix into a variable and then pass that variable to |input|, or write matrix at the prompt using delim...

14 years ago | 0

| accepted

Answered
To read a text file using matlab
Use |fopen| to open the file and then use |fscanf| or |fgetl| to read in the content. You can also use |fread|. For example, the...

14 years ago | 1

| accepted

Answered
How to plot 3D data on a plane by color
You can also try |image| or |imagesc|. doc image doc imagesc

14 years ago | 0

Answered
plot help
You can manually set the axis xlim([240 275])

14 years ago | 0

Answered
Solving for c in v(t,g,m,c) given intial v,g,m,t
Are you looking for a symbolic solution? If you want a numerical one, you can use |fzero| v = 28, g = 9.81, m =90, t =4; ...

14 years ago | 1

| accepted

Answered
how to test error
You ma be able to use |try/catch| http://www.mathworks.com/help/techdoc/ref/try.html

14 years ago | 0

| accepted

Answered
Close my terminal but keep matlab running on a remote Ubuntu
I normally use VNC for such purpose. I started a VNC server on the remote machine and then connect to it using a VNC client. Onc...

14 years ago | 0

Answered
String search
It is probably easier to write all lines that have the specific string into a new file so you don't have to worry about the file...

14 years ago | 2

Answered
Urgent: I dont have a clue how to merge to Matrices and split-up Arrays.
For part (a), you can do the following: DataA= [1 120 1 130 2 140 3 180 3 160]; DataB= [1 91 2 92 ...

14 years ago | 0

Answered
help installing dsp toolbox on existing MATLAB Version 7.10.0.499 (R2010a) for Mac OS X Version: 10.6.8
Does the instruction say that you will be able to see it using "ver"? This is not a toolbox from MathWorks so I don't think "ver...

14 years ago | 1

Answered
Rotation of a set of points onto the X axis
I'm not sure why you need to play with theta, unless you care about the orientation. If you just want the line to become horizon...

14 years ago | 0

Answered
From normal vector (and point) to 3D plane
Like Jan mentioned, the question you are asking does not have a unique solution, so you may want to clarify it a little bit. ...

14 years ago | 0

Answered
Get information of property type of object properties (i.e. 'dependent')
You can use meta class and access PropertyList http://www.mathworks.com/help/techdoc/ref/meta.class.html http://www.mathwo...

14 years ago | 1

| accepted

Answered
psd ----> spectrum psd?
You will replace line [Yxx,f] = psd(y,NFFT,fs,NFFT,NOVERLAP); with hspec = spectrum.welch('OverlapPercent',0,'Seg...

14 years ago | 0

Answered
psd ----> spectrum psd?
You need to replace |psd| call with corresponding |spectrum.psd| code. Here is an example showing how to use |spectrum.psd| to c...

14 years ago | 0

Answered
How to save these values in a matrix
Use a for loop and preallocate z, i.e., add z = zeros(91*91,2) at front and then replace the assignment to z with c...

14 years ago | 1

Answered
Copyfile without overwriting
I don't think you can do that with |copyfile|. You can do it with |fopen|, but you need to open it with option 'a', and then app...

14 years ago | 0

| accepted

Answered
Plotting lines from random number generators
I don't quite understand what you mean by plotting them as straight lines, do you want to connect them to the center? If so, jus...

14 years ago | 0

Answered
Using Variable Contents to Create Variable names
http://www.mathworks.com/matlabcentral/answers/19981-assigning-data-to-variable-names-in-a-vector-during-a-for-loop http://ww...

14 years ago | 0

Answered
random signal delay
There are two questions in your post so I'm not sure if I understand exactly what you look for. I'll include my thoughts below: ...

14 years ago | 0

Answered
Quickest way to get points in a matrix given two 1-D arrays?
A(sub2ind(size(A),B(:),C(:)))

14 years ago | 0

| accepted

Answered
switch
There are several examples in the documentation doc switch http://www.mathworks.com/help/techdoc/ref/switch.html

14 years ago | 0

Answered
cheby1
This is clearly explained in documentation. doc cheby1 http://www.mathworks.com/help/toolbox/signal/ref/cheby1.html |...

14 years ago | 0

Answered
Time Delay of Arrival
# record the data. # read the data into MATLAB # do a cross correlation between two channels and translate the lag to time ...

14 years ago | 0

Load more