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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

Respondida
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(...

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

Respondida
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; ...

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 2

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

más de 14 años hace | 0

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

más de 14 años hace | 1

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 1

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

Cargar más