Réponse apportée
Function Error not understood
You may want to use |X.^n| to achieve element-wise operation

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Column Circulant Matrix
gallery('circul',[1 2 3])' You can then take the first L columns

plus de 14 ans il y a | 0

Réponse apportée
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(...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Matrix division to solve Ax=b
Use x = a\b see the documentation doc mldivide doc mrdivide

plus de 14 ans il y a | 0

Réponse apportée
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 ...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
How to plot 3D data on a plane by color
You can also try |image| or |imagesc|. doc image doc imagesc

plus de 14 ans il y a | 0

Réponse apportée
plot help
You can manually set the axis xlim([240 275])

plus de 14 ans il y a | 0

Réponse apportée
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; ...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
how to test error
You ma be able to use |try/catch| http://www.mathworks.com/help/techdoc/ref/try.html

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 2

Réponse apportée
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 ...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 1

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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. ...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 1

| A accepté

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

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 1

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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: ...

plus de 14 ans il y a | 0

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

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
switch
There are several examples in the documentation doc switch http://www.mathworks.com/help/techdoc/ref/switch.html

plus de 14 ans il y a | 0

Réponse apportée
cheby1
This is clearly explained in documentation. doc cheby1 http://www.mathworks.com/help/toolbox/signal/ref/cheby1.html |...

plus de 14 ans il y a | 0

Réponse apportée
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 ...

plus de 14 ans il y a | 0

Charger plus