回答済み
How to only plot the better result from a loop of 48 iterations in a convergence plot?
You could do something like this, assuming that your output is in vector y and iteration number is in vector iterCount plot(ite...

13日 前 | 1

回答済み
How to find the intersection point by plotting the red line like below?
Assuming you have the water level in a vector, lets call it h, along with the values of pExceed in another vector, you can int...

13日 前 | 1

回答済み
How can I achieve Matrix-Vector element-wise operations in Simulink Matlab Function Block?
I'm not sure why the MATLAB Function block can not handle the implicit scalar expansion, but I just tried using an Interpreted M...

14日 前 | 0

| 採用済み

回答済み
For LOOP for splitting an ECG signal into different CHUNKS
It's not really clear to me from your description what you are trying to do. From what I can infer from your description you ha...

14日 前 | 1

| 採用済み

回答済み
How to fix the time values of repeating sequence to get triangular wave?
I'm sorry I also have no experience with Simulink for Power Electronics so I can not help you with any issues that are specific ...

14日 前 | 0

| 採用済み

回答済み
How to fix the time values of repeating sequence to get triangular wave?
If you want to make a triangular wave of amplitude A with period T just use Time Values [0 T] Output Values [0 A] You don't h...

14日 前 | 0

回答済み
Controlling Dynamic Stability Using Torque Vectoring.
MATLAB Answers is a good place to come for help with problems that you are having once you get far enough to actually be working...

14日 前 | 0

回答済み
Run cmd command from MATLAB
The system command can definitely be used for this purpose. I suspect that your problem is with the string you are passing the c...

14日 前 | 0

回答済み
How to create a Toeplitz matrix?
You can use MATLAB toeplitz function for this. See the documentation by typing doc toeplitz on the command line. Since your to...

15日 前 | 1

| 採用済み

回答済み
Unable to perform assignment because the left and right sides have a different number of elements.
In your expression, the left hand side is just a scalar (only has one element) but you are trying to assign a length 4 column ve...

15日 前 | 0

| 採用済み

回答済み
Givens rotation QR decomposition
It looks to me like your code reproduces what is in the pseudocode. Are you sure that the psuedocode that you based your code o...

15日 前 | 0

回答済み
Saddle points of a 2D matrix
Here is a simple approach. Note I define a saddle point as one that is either the largest in its column and smallest in its row ...

15日 前 | 0

| 採用済み

回答済み
I need help with the model of vertical axis wind turbine
Here's a paper that shows an example of using Simulink to model a vertical axis wind turbine: Modeling of a Vertical Axis Wind ...

15日 前 | 0

回答済み
input command for more than one values
If in response to the prompt you enter a vector using MATLAB syntax, that is surround the answer with square brackets, then this...

15日 前 | 0

| 採用済み

回答済み
How do extract rows containting certain strings from a table to make a new table?
Suppose you had a table called myTable with a column (variable name) named quality with certain words such as 'NaN' 'CORRECT' et...

16日 前 | 0

| 採用済み

回答済み
Chessboard , Euclidean and City Block distance simplest codes(functions) for all order of matrix that i can understand as i am student and at start of this language.
Please give it a try, just get started see what problems you have and where you are stuck, and then ask about these issues. Jus...

16日 前 | 0

回答済み
Identify 'Presses' From Continuous Data
Let's say you call your continuous data from one channel x (you can generalize this later to a matrix over the 10 channels). Le...

16日 前 | 0

| 採用済み

回答済み
Soliving system of ODEs written as function in simulink
You should be able to define your dynamic model (system of ode's) using a Simulink S-function block. Please see https://www.mat...

16日 前 | 1

| 採用済み

回答済み
Trouble Solving For A Variable In A Loop
Please do your best to start writing the script that your assignment asks for. If you get stuck at a certain point, then please ...

16日 前 | 0

回答済み
All possible combination of variables in equation to give best result.
Assuming A and B are both column vectors You can create a table with all possible sums using total = A + B' You can then find ...

16日 前 | 0

回答済み
Compute auto-covariance matrix from noise
You can generate the 5 signals in just one call to randn, for example x = randn(10000,5); Which will make a matrix with 10000 ...

16日 前 | 0

回答済み
Dice rolling & loops
You can generate a vector with 10 dice rolls using rolls = randi(6,1,10) You can determine how many of the 10 rolls are eithe...

4ヶ月 前 | 0

回答済み
Integration via trapezoidal rule in various sections of the same array
Assuming you can find the indices of your ranges by some means, e.g. findpeaks, then make an array of the ranges, for example r...

4ヶ月 前 | 2

| 採用済み

回答済み
How to compute the partial derivative
As @Kalyan suggested you could use the symbolic toolbox if you have it. Otherwise you could just go to the definition of a parti...

4ヶ月 前 | 0

| 採用済み

回答済み
Birthday problem with 3+ people?
Here are some ideas that you might use To generate random birthdays for groups of 50 people - look at randi, ignoring leap year...

4ヶ月 前 | 2

| 採用済み

回答済み
Fix one curve, while change another
Here is one approach. You can modify the YData property of the second curve. Here is a little example x = 1:10 y1 = x; y2 = x...

4ヶ月 前 | 1

| 採用済み

回答済み
Accessing timetable data using user defined column
You can do something like this v = T.value(T.time_lin==0.4)

4ヶ月 前 | 0

| 採用済み

回答済み
Solving first order differential equation
Your verbal problem description in which you call L and ouput, but in fact you know what it is, somewhat confuses me, but in any...

4ヶ月 前 | 0

回答済み
Battery model - using vector concatenate to collate individual cell outputs
I have never experienced any issues with combining individual signals with a mux. The individual signals retain their original v...

4ヶ月 前 | 0

回答済み
I can't find solution of sinusoidal function's by numerical methods
I assume that you are trying to approximate the integral of f(x) between x = a and x = b. You are initializing x incorrectly. Y...

4ヶ月 前 | 1

| 採用済み

Load more