Réponse apportée
how to take psd
Bit hard to help since you haven't given us some key information, but assuming you are sampling at a reasonable sampling rate, a...

plus de 6 ans il y a | 0

Réponse apportée
How to plot each state space variables seperatly
Couple of things. First up, you haven't inserted B into your state-space model so consequently you don't get any output. To ge...

plus de 6 ans il y a | 5

Réponse apportée
plotting matrices in scatter form
Not easily, but the disperse function from the user's group (see https://au.mathworks.com/matlabcentral/fileexchange/33866-dispe...

plus de 6 ans il y a | 0

Réponse apportée
Error using plot - Vectors must be the same length.
It's a little hard to second guess what you are trying to do, but it seems that you need to pad vector B with zeros or something...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Changing the number of decimal points for a complex double array
Are you sure rounding is going on? When you view the workspace, sure it shows you the truncated/rounded version on the screen,...

plus de 6 ans il y a | 2

| A accepté

Réponse apportée
From Matlab to LateX
You also have the latex command (from the symbolic toolbox). See >> help latex

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Contourf: fill inside instead of outside
A quick hack (following the essence of your code) is cmap = colormap; cmap(end,:) = [1,1,1]; colormap(cmap); contourf(x,y,abs...

plus de 6 ans il y a | 0

Question


Yet another lu(A) question and pivoting
Does Matlab automatically detect "psychologically" lower triangular matrices when solving Ax=b? I.e. if you do an lu decompos...

plus de 6 ans il y a | 2 réponses | 0

2

réponses

A résolu


Is this matrix orthogonal?
Given a square matrix, a, determine whether it is orthogonal. INPUT: a, a n x n matrix OUTPUT: true or false

presque 7 ans il y a

Réponse apportée
How to Multiply a number to a row of matrix
or if you have a recent version of Matlab, then one can avoid the cryptic bxfun with >> A.*[1;2]

environ 8 ans il y a | 1

Question


Why is airy(3,1) complex? (No numerical round-off in the complex part)
Why does Matlab return a complex number for airy(3,1)? The result is a pure real, the imaginary part is identically zero (no...

plus de 13 ans il y a | 3 réponses | 0

3

réponses

Réponse apportée
Why is airy(3,1) complex? (No numerical round-off in the complex part)
R2012a

plus de 13 ans il y a | 0

Question


Fitting a polynomial through a given point (without lsqlin)
Has anyone written a routine to fit a polynomial constrained to run through a single arbitrary point (x0,y0) without using lsqli...

plus de 13 ans il y a | 1 réponse | 0

0

réponse

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

presque 14 ans il y a

A résolu


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

presque 14 ans il y a

A résolu


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

presque 14 ans il y a

A résolu


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

presque 14 ans il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

presque 14 ans il y a

Question


Failure to include DLLs when compiling Simulink.
Hi, We are trying to compile a standalone Simulink application using the RTW build function in the Simulink Coder. The probl...

plus de 14 ans il y a | 1 réponse | 0

1

réponse

Question


Bug in single/double operations?
Can anybody explain this behaviour? If you run the following code, it behaves as expected. You finish up with approximately ...

plus de 14 ans il y a | 2 réponses | 0

2

réponses