Community Profile

photo

Jon


Last seen: 3 days ago
175 total contributions since 2013

Contact

Jon's Badges

  • First Review
  • 3 Month Streak
  • Thankful Level 2
  • Knowledgeable Level 3
  • First Answer

View details...

Contributions in
View by

Answered
How can I seperate these number from a cell and put it into a matrix.
You will not be able to put your data from the cell array you show to a matrix because you have both numeric and non-numeric dat...

3 days ago | 0

Answered
Error, array indices must be positive integers or logical values
In your code Df is a 2 by 200 matrix not a function. It therefore does not make sense in the last line of your code to have the ...

3 days ago | 0

| accepted

Answered
Negative Eigenvalues found in 12x12 Matrix
I would trust the result of the eig function. If you do not think your matrix, cor, should have negative eigenvalues, then you ...

3 days ago | 0

Answered
How to solve this error "Not enough input arguments."
Your function requires 4 input arguments. You must have called it with less than 4 input arguments. Please check your code where...

3 days ago | 0

Answered
I cant solve linear programming
It is of course possible to have a linear programming problem that is unbounded. This happens if there are no constraints that p...

3 days ago | 0

Answered
How to write a for loop that creates a vector of [1:1000, 1001:2000,....,n]
Just to make Geoff's suggestion more concrete, suppose you had a length 100000 vector of data points. You could put this into a ...

4 days ago | 0

Answered
the meaning of basic matlab words
Are you familiar at all with "Object Oriented Programming" this is a general approach to software development used in many compu...

4 days ago | 0

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

4 days ago | 1

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

4 days ago | 1

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

5 days ago | 0

| accepted

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

5 days ago | 1

| accepted

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

5 days ago | 0

| accepted

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

5 days ago | 0

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

5 days ago | 0

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

5 days ago | 0

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

6 days ago | 1

| accepted

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

6 days ago | 0

| accepted

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

6 days ago | 0

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

6 days ago | 0

| accepted

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

6 days ago | 0

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

6 days ago | 0

| accepted

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

7 days ago | 0

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

7 days ago | 0

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

7 days ago | 0

| accepted

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

7 days ago | 1

| accepted

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

7 days ago | 0

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

7 days ago | 0

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

7 days ago | 0

Answered
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 months ago | 0

Answered
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 months ago | 2

| accepted

Load more