統計
All
Feeds
解決済み
Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.
約1年 前
回答済み
Why do AnalysisPoints change the results of systune optimization?
Hello there. The addition of analysis points does not change the system dynamics, but it does change the underlying LFT model. ...
Why do AnalysisPoints change the results of systune optimization?
Hello there. The addition of analysis points does not change the system dynamics, but it does change the underlying LFT model. ...
約5年 前 | 1
| 採用済み
回答済み
Why do state space and its equivalent transfer function models yield different step responses?
Hi there, Examine the state-space model sys_ss: >> sys_ss Note that it has a non-unity E matrix. This happens becaus...
Why do state space and its equivalent transfer function models yield different step responses?
Hi there, Examine the state-space model sys_ss: >> sys_ss Note that it has a non-unity E matrix. This happens becaus...
9年以上 前 | 0
| 採用済み
回答済み
Error simple program PID
Is there a reason you need to do this with syms? At least in the code you showed, it doesn't look like you are using any Symbol...
Error simple program PID
Is there a reason you need to do this with syms? At least in the code you showed, it doesn't look like you are using any Symbol...
11年弱 前 | 0
回答済み
How can I use 'name' to specify input/output pairs between two systems connected in an LFT arrangement?
If I understand what you want to do, you can assign values to the InputName and OutputName properties of your state-space models...
How can I use 'name' to specify input/output pairs between two systems connected in an LFT arrangement?
If I understand what you want to do, you can assign values to the InputName and OutputName properties of your state-space models...
11年弱 前 | 0
| 採用済み
回答済み
Getting bode plot for a circuit in Simulink
Looking at your screenshot of the Linear Analysis tool, it appears that you trying to obtain a linear model using the Model I/Os...
Getting bode plot for a circuit in Simulink
Looking at your screenshot of the Linear Analysis tool, it appears that you trying to obtain a linear model using the Model I/Os...
11年弱 前 | 0
回答済み
How do I specify which toolbox a function should be used from?
MATLAB determines which freqresp to use based upon what type of input you give it. The first argument to the Control System Too...
How do I specify which toolbox a function should be used from?
MATLAB determines which freqresp to use based upon what type of input you give it. The first argument to the Control System Too...
11年弱 前 | 1
| 採用済み
回答済み
Matlab, Simulink, which block?
Perhaps what you want is the Gain block, with the gain value set to 0.5. This takes an input and multiplies it by 0.5, to outpu...
Matlab, Simulink, which block?
Perhaps what you want is the Gain block, with the gain value set to 0.5. This takes an input and multiplies it by 0.5, to outpu...
約11年 前 | 0
| 採用済み
回答済み
Does the bode function automatically converts the vector points into decibels?
The *bode* function of Control System Toolbox will plot the frequency response of a transfer function in dB. The function can a...
Does the bode function automatically converts the vector points into decibels?
The *bode* function of Control System Toolbox will plot the frequency response of a transfer function in dB. The function can a...
約11年 前 | 1
回答済み
Why can't I find the number 1.7?
It's because your computer can't store decimal numbers in an exact form - there is always small but finite roundoff error in flo...
Why can't I find the number 1.7?
It's because your computer can't store decimal numbers in an exact form - there is always small but finite roundoff error in flo...
約11年 前 | 1
解決済み
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...
約11年 前
解決済み
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...
約11年 前
解決済み
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
約11年 前
解決済み
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 ...
約11年 前
解決済み
Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...
約11年 前
解決済み
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
約11年 前
回答済み
>> R1=1; L=10e-3; C1=10e-6; R2=10; A=[-R1/L -1/L;1/C1 -1/(R2*C1)]; B=[1/L;0]; C=[0 1]; D=[0]; step(A,B,C,D),grid >> bode(A,B,C,D),grid ??? Error using ==> lti.bode at 95 Plots must be of the same type and size to be superimposed. Error in ==> bode a
I do not get the error you see. Do you have a hold in between the step command and the bode command that you did not show here?...
>> R1=1; L=10e-3; C1=10e-6; R2=10; A=[-R1/L -1/L;1/C1 -1/(R2*C1)]; B=[1/L;0]; C=[0 1]; D=[0]; step(A,B,C,D),grid >> bode(A,B,C,D),grid ??? Error using ==> lti.bode at 95 Plots must be of the same type and size to be superimposed. Error in ==> bode a
I do not get the error you see. Do you have a hold in between the step command and the bode command that you did not show here?...
約11年 前 | 1
| 採用済み
解決済み
Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...
11年以上 前
解決済み
Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.
11年以上 前
解決済み
middleAsColumn: Return all but first and last element as a column vector
Given input A, return all but the first and last elements, arranged as a column vector. (I.e., all dimensions after the first s...
11年以上 前
解決済み
Matrix indexing with two vectors of indices
Given a matrix M and two index vectors a and b, return a row vector x where x(i) = M(a(i),b(i)).
11年以上 前
解決済み
Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...
11年以上 前
解決済み
Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...
11年以上 前
解決済み
Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
11年以上 前
解決済み
Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...
11年以上 前
解決済み
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 ...
11年以上 前
解決済み
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...
11年以上 前
解決済み
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 ...
11年以上 前