Feeds
已回答
Create vector/matrix inside function
Hello, this is because functions have their own workspace. There is a good explanation in the MATLAB doc, please execute the...
Create vector/matrix inside function
Hello, this is because functions have their own workspace. There is a good explanation in the MATLAB doc, please execute the...
8 years 前 | 1
已回答
Removing connecting lines between points in plot
Hello, add the following name value pair: 'LineStyle','none' Kind regards, Stefan
Removing connecting lines between points in plot
Hello, add the following name value pair: 'LineStyle','none' Kind regards, Stefan
8 years 前 | 6
| 已接受
已回答
Where did PID Tuner extended mode go?
Hello, set "Domain" from "Time" to "Frequency", then the Bandwith and Phase Margin can be tuned. Is this what you were lookin...
Where did PID Tuner extended mode go?
Hello, set "Domain" from "Time" to "Frequency", then the Bandwith and Phase Margin can be tuned. Is this what you were lookin...
8 years 前 | 0
已回答
Fill the array after each loop iteration
Hello, why use the |r| at all? Try n_iter = 10; cosTheta = zeros(1,n_iter); % Memory preallocation for k=1:n_iter ...
Fill the array after each loop iteration
Hello, why use the |r| at all? Try n_iter = 10; cosTheta = zeros(1,n_iter); % Memory preallocation for k=1:n_iter ...
8 years 前 | 1
| 已接受
已回答
how to assign values in for loop to a matrix in matlab function block?
Hello, the MATLAB Function block has limitations due to code generation. Either you preallocate the memory for |phi| and assi...
how to assign values in for loop to a matrix in matlab function block?
Hello, the MATLAB Function block has limitations due to code generation. Either you preallocate the memory for |phi| and assi...
8 years 前 | 1
| 已接受
已回答
What does this symbol in simulink represent?
Hello right click on a signal: *Linear Analysis Points/Input Perturbation*. You need Simulink Control Design for this. Kin...
What does this symbol in simulink represent?
Hello right click on a signal: *Linear Analysis Points/Input Perturbation*. You need Simulink Control Design for this. Kin...
8 years 前 | 0
| 已接受
已回答
How do I import data form an excel file into MATLAB?
Hello, I think the following docs will help you. Execute the commands in the MATLAB Command Window: * Import Tool (Using G...
How do I import data form an excel file into MATLAB?
Hello, I think the following docs will help you. Execute the commands in the MATLAB Command Window: * Import Tool (Using G...
8 years 前 | 0
已回答
How can I change the "Set Point"? (Feedback)
Hello, I think your feedback might not be correct. I will abbreviate _(X1-X2)_ as _Y_: _Y = G1(s) * (F(s)*W + C(s)*(R - Y)...
How can I change the "Set Point"? (Feedback)
Hello, I think your feedback might not be correct. I will abbreviate _(X1-X2)_ as _Y_: _Y = G1(s) * (F(s)*W + C(s)*(R - Y)...
8 years 前 | 0
| 已接受
已回答
Why I get different result at Simulink? (Matlab, Simulink)
Hello, I suppose that depends on the solver. The documentation of the "step" function describes in the "More About/Algorithms...
Why I get different result at Simulink? (Matlab, Simulink)
Hello, I suppose that depends on the solver. The documentation of the "step" function describes in the "More About/Algorithms...
8 years 前 | 2
| 已接受
已解决
Model a falling body
An object is falling freely from a height of 22 meters under the force of gravity. <<http://blogs.mathworks.com/images/seth/c...
8 years 前
已回答
Why doesn't my for loop work?
Hello, I think the error is in this assignment: userValues(i) = []; This will not just delete the value from the arra...
Why doesn't my for loop work?
Hello, I think the error is in this assignment: userValues(i) = []; This will not just delete the value from the arra...
8 years 前 | 0
已解决
Model a mass spring system
Model an ideal mass-spring system shown below where the spring is initially stretched. <<http://blogs.mathworks.com/images/se...
8 years 前
已解决
Add damping to a mass spring system
Model an ideal mass-spring-damper system shown below where the spring is initially stretched. <<http://blogs.mathworks.com/im...
8 years 前
已解决
Make a full wave rectifier
Produce a full wave rectifier waveform for the given sine wave source. For a sine wave input, the output of the full wave rec...
8 years 前
已解决
Make a half wave rectifier
Produce a signal that outputs the given sine wave source when it is greater than zero and outputs zero when it is less than zero...
8 years 前
已解决
Add offset to a signal
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-offset-eqn.png>> You should see a downward...
8 years 前
已解决
Produce a sine wave
Produce a sine wave with amplitude 3: <<http://blogs.mathworks.com/images/seth/cody/sine-eqn.png>>
8 years 前
已解决
Add a block to a model
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-block-eqn.png>> In this case, the slope of...
8 years 前
已解决
Produce a cosine wave
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/cosine-eqn.png>>
8 years 前
已解决
Connect blocks in a model
Connect the blocks in the model to produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/connect-blocks...
8 years 前
已解决
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...
8 years 前
已解决
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...
8 years 前
已解决
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 ...
8 years 前
已解决
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...
8 years 前
已解决
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 ...
8 years 前
已解决
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...
8 years 前
已解决
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
8 years 前
已解决
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 ...
8 years 前
已解决
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...
8 years 前