Beantwortet
Font of axis data and legends
you can set once using this command per matlab session or add this to your start-up program set(0, 'DefaultAxesFontSize', A...

fast 13 Jahre vor | 0

Beantwortet
"Levelling" out a signal with moving average
I would recommend fitting an exponential curve rather than a poly fit. e.g see example 8.10 in Steven M. Kay, "Fundamentals of...

fast 13 Jahre vor | 0

Gelöst


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

etwa 13 Jahre vor

Gelöst


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

etwa 13 Jahre vor

Gelöst


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

etwa 13 Jahre vor

Gelöst


Add two numbers
Given a and b, return the sum a+b in c.

etwa 13 Jahre vor

Gelöst


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

etwa 13 Jahre vor

Gelöst


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

etwa 13 Jahre vor

Gelöst


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

etwa 13 Jahre vor

Gelöst


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

etwa 13 Jahre vor

Gelöst


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

etwa 13 Jahre vor

Gelöst


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

etwa 13 Jahre vor

Beantwortet
mathematical expectation
As you have given it, you are only calculating the outer-product and not the covariance. To calculate the covariance you need m...

etwa 13 Jahre vor | 0

Beantwortet
Time series ARMA model estimation results different from textbook
Assuming that the there is no typo in the data (I dint check), I tried your code through system id GUI of Matlab system id toolb...

etwa 13 Jahre vor | 0

Frage


Error in publishing
I use Matlab 7.12.0 R2011a, on a Windows XP SP3 box. I am trying to use the publish feature of Matlab to automatically create a ...

mehr als 13 Jahre vor | 1 Antwort | 1

1

Antwort

Frage


Best method to clear persistent variables
Hello all, Recently I came to know that it is not a good idea to use clear all; So, I started using clear varia...

mehr als 13 Jahre vor | 3 Antworten | 3

3

Antworten

Beantwortet
Scaling of time
I am of the opinion that the question and solutions offered here don't match. Your question seems to be of a compression. Howeve...

mehr als 13 Jahre vor | 0

Beantwortet
Polar fill sector
I was just wondering if the pie chart could be intelligently used to obtain the same result. @Walter: You would probably know b...

mehr als 13 Jahre vor | 0

Beantwortet
How do I model a time series in MATLAB using ARMA?
Apart from looking at the prediction errors (like correlation analysis) it is always a good idea to analyze the plant (measured)...

mehr als 13 Jahre vor | 0

Beantwortet
time series prediction
To continue on what Rajiv said above, the X in ARX or ARMAX stands for eXogenous input. An AR (ARMA) model is noise driven but a...

mehr als 13 Jahre vor | 0

Beantwortet
How can I simulate a LTI system with complex data?
It looks like impulse() function does not take continuous time systems with complex coefficients; However, if I were to just sol...

mehr als 13 Jahre vor | 0

Beantwortet
Multiple legands with semilogy
My guess is that you are probably using more strings in legend(); e.g: you are plotting only one array and passing two legend s...

mehr als 13 Jahre vor | 1

Beantwortet
Removing a specific number from vector
A = 4; Z = [1 9 2 3 4 5] Z1 = Z(find(Z~=A)) that should work

mehr als 13 Jahre vor | 5

Beantwortet
Out of memory problem
What is the OS virtual memory setting on your machine? on WinXP see My Computer--> Properties --> Advanced Tab --> Change butto...

mehr als 13 Jahre vor | 0

Beantwortet
Matlab rounding to zero?
Like Sean said, convert all variables to some floating point format. You might do something like, for i=1:10000 A(i,:...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
keep figures from popping up when running.
I won't promise you that this is the best solution, however, is one of them. You could set the 'visible' property off the fig...

mehr als 13 Jahre vor | 1

Frage


What am I not seeing here
Here is a small script that I wrote after I missed a colon and saw some unexpected (by me) behavior in some work I was doing. ...

mehr als 13 Jahre vor | 2 Antworten | 6

2

Antworten

Beantwortet
Where can I upload images and files for use on MATLAB Answers?
I would put the files on my personal website or dropbox public folder and share a link ( <http://www.dropbox.com>). In both case...

mehr als 13 Jahre vor | 3

Frage


Matlab is confused between line (function) and line (variable)
see code: In a certain power system simulation, I am naming my outputs (typically more than one, a linear MIMO simulation) in t...

mehr als 13 Jahre vor | 4 Antworten | 0

4

Antworten