# Jon

**Statistics**

RANK**89**

of 249,796

REPUTATION**1,309**

CONTRIBUTIONS

**9** Questions

**468** Answers

ANSWER ACCEPTANCE **
77.78%
**

VOTES RECEIVED**137**

RANK

of 17,366

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 103,517

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Why doesn't Newton's method calculate the correct temperature

Is there a reason you are using your own solver here rather than the MATLAB fzero (for function of one variable) or fsolve for s...

1 day ago | 0

Simulation of random walk

It looks like you already "store the j values into the array node_visited. So it looks like you should be doing your summaries...

5 days ago | 0

| accepted

Check an entire matrix against each value of another matrix

If I understand what you are looking for, I think this will do it in a very simple way c = intersect(a,b) >> a = [4 3]; b = [...

5 days ago | 0

| accepted

How can the points of a scatter plot placed on a new matrix?

Assuming you mean by the first point, second point, etc in the scatter plot their order of appearance from left to right (along ...

5 days ago | 0

| accepted

How to find indices in a vector satisfying a condition for a minimum consecutive number of entries

Here's one approach. You could shorten this up a little by combining some of the individual statements into more complicated on...

6 days ago | 1

| accepted

Check numbers in a 5x5 array

You can also do this without any loops using MATLAB's intersect function which lists the common elements between two arrays. Hin...

6 days ago | 0

Can someone help me writing this equation in matlab, I appreciate,..

Here is an example where I have supplied some arbitrary values for P,N, phi and omega. You can modify with the values you actual...

7 days ago | 0

| accepted

Drop Down Button (App Designer) return index of repeated elements

Here's a skeleton of the logic regarding using unique. You will have to adapt details regarding getting the users selection etc....

7 days ago | 0

| accepted

Dimensions of arrays being concatenated are not consistent error .

There is a problem with your approach, which is setting the initial condition for the second block (the one that the switch is ...

7 days ago | 0

| accepted

how can i negative all value in a matrix except diagonal?

Am = -(A - diag(diag(A))) + diag(diag(A))

8 days ago | 1

Algorithm to calculate trajectories from a vector field

The trajectories you are seeking are solutions to a set of ordinary differential equations with initial conditions given by the ...

8 days ago | 1

| accepted

how to save some variables created in a loop

You need to provide a vector to collect your values in, so something like this numIterations = 10; % put total iterations here ...

8 days ago | 0

Tell the user something is wrong

If I understand your question, I think that you may find that you can use MATLAB's errordlg function can do what you are looking...

8 days ago | 0

How to convert cell to matrix

Side stepping the issue a little bit, I can read in your data file perfectly as numerical values and not use cell2mat at all usi...

9 days ago | 1

| accepted

sensitivity analysis generate random integer values

Sound like you are looking for the MATLAB randi function, you can get details by typing doc randi on the command line

9 days ago | 0

Save each output step in rows in a larger matrix

You have a number of problems with your code. The main problem, if you want to save the results of each iteration in variable Q...

11 days ago | 0

| accepted

representing the correlation function

In your code the sin wave signal will have an amplitude of one, and the stadard deviation of the noise signal will also be one. ...

12 days ago | 0

Struggling to plot the data over timestamps!

I copied and pasted your data into an .xlsx file (attached here) and ran your commands (only modified to have the .xlsx file in ...

12 days ago | 0

How to create an interactive graph to show how data changes when one factor in an equation is changed

Here is a good example of building an app in app designer with graphs that change as values of parameters are changed by the us...

12 days ago | 0

| accepted

find the equal values that stand together on the same row or column or diagonal in the matrix

I am assuming here that to satisfy your criteria you must have a group of 5 or more ones in any row, column or diagonal or a gro...

14 days ago | 1

Why does my closed loop pole-zero map appear to indicate a critically damped system but a step input results in an under-damped response?

If you remove the time delay the response has no oscillations as you expected. I know you said "**Just as a side note, taking a...

1 month ago | 0

| accepted

Why does a sine bandwidth decrease with 1/dur, dur beeing the signal duration

I don't have enough time at the moment to look at your code in depth, but I'm suspecting that you are experiencing "leakage" eff...

1 month ago | 0

Comparing curves to an original signal

In terms of frequency response of a transfer function it looks like you could make the orange curve move towards the purple cur...

1 month ago | 0

| accepted

How to randomise trials without following in successive ones

OK, I think I finally got it. Thanks for your patience. If I am understanding correctly I think this code should do what you ar...

1 month ago | 0

| accepted

Sum 2 Matrices and take the average value of their summation and store them in another Matrix with the same dimension.

C_T = (C_T1 + C_T2)/2

1 month ago | 0

| accepted

polynomial interpoltaion & least squares

I'm not totally clear on what you are trying to do from your description, but here are few things that I think will help you. Y...

1 month ago | 0

Find unique values in a pseudo inverse based on SVD

I think that you can identify the "non-unique" components in your specific example, by looking at the last two columns of V (or ...

1 month ago | 0

if statement is not working

The problem is that your if statement will only be true if all of the elements of theta satisfy the condition. If you only want...

1 month ago | 2

| accepted

Merge columns in two tables depending on column names

I think you can probably accomplish what you want using one or more of MATLAB's join, innerjoin, and outerjoin commands. Please...

1 month ago | 0

| accepted

i am trying to write a program to find the day of any date.

I think MATLAB's weekday function should do this for you, type doc weekday on the command line for details

1 month ago | 0

| accepted