Question

Why am I getting the error "Invalid or Deleted Object"

This is my code %constants A and B calculations y1 = Mean(1); x1 = Mean_step(1); initial = y1*x1; y2 = Mean(2); x2 = Mean_...

mehr als 2 Jahre ago | 1 answer | 0

Question

What's the best way to shorten this?

This is a very lengthy code for something repetitive, I want to know whether there is a simpler, more efficient way of doing thi...

mehr als 2 Jahre ago | 2 answers | 0

Question

Text Box location Issue

Hi, I have an animated plot that changes axis limits as it updates, the text I have (which is docked to a certain location of t...

mehr als 2 Jahre ago | 1 answer | 0

Question

How to save animated plots

Hi I have an animated plot, and I want to save it - possibly an animation, and I want to know how to do it?

mehr als 2 Jahre ago | 1 answer | 1

Question

How to highlight a moving data point

Hi, I have an animated plot, the dynamic graph is a mathermatical model based on the 2 points on the other static graph. The ...

mehr als 2 Jahre ago | 1 answer | 0

Question

Continuously overwriting plot in a loop

Dear MATLAB Gods, I have a plot in a loop that changes after each iteration, currently I have a hold on...hold off line which p...

mehr als 2 Jahre ago | 1 answer | 0

Question

Changing color of the Matlab plot at different ranges

Hi, I want to have the below graph in two colors, the y-values > 600 should be red. Right now I have a basic plot command. ...

mehr als 2 Jahre ago | 1 answer | 0

Question

Removing a Range of Elements from an array

Hi, I have a matrix M and I am interested in the 12th column which has elements [1 2 3 4..... 540 589 760 761 770 47 46 47 48]...

mehr als 2 Jahre ago | 2 answers | 0

Question

Reducing a vector size when it is being updated in a loop

Hi, I have a vector A that is being updated in a loop, A contains data from a Trial, and the length of it changes with each it...

mehr als 2 Jahre ago | 1 answer | 0

Question

Switching the elements of an array

hi, I am plotting data from 2 vectors, the x-axis elements (in a vector called M) needs to be flipped and make the first ele...

mehr als 2 Jahre ago | 1 answer | 0

Question

Fitting an Equation on to graph

I have a graph with the approximate shape of 1/x type. I wish to fit it with the equation 1/(x-A) +B . How can I fit a particula...

mehr als 2 Jahre ago | 1 answer | 0

Question

Switching scales on x axis

I am trying to swap the numbers on the x axis, which represents a distance of the plates of a capactior. Basically the capacitan...

mehr als 2 Jahre ago | 1 answer | 0

Question

Matrix element changing with loop

I keep getting Dimensions of matrices being concatenated are not consistent error. for k=1:61 a(:,k)=angle(k,:); A=[c...

fast 3 Jahre ago | 1 answer | 0

Question

Taking the second derivative

I have two arrays M and V, both are the same dimesions. I am trying to find and plot this vs. M, this is the code I am working...

fast 3 Jahre ago | 1 answer | 0

Question

Changing the Title of a plot in a nested loop

I have a Nested Loop that runs multiple iterations, and each iteration is going to spit out a plot. I want to know whether th...

fast 3 Jahre ago | 1 answer | 0

Question

Removing Extreme Value from Colorbar

I am working with a 3D scatter plot that is mapping the X,Y, and Z positions of a certain body, the time spent at each point is ...

fast 3 Jahre ago | 1 answer | 0

Question

Deleting Entries in an Array

I am working with a 1627x11 array, labelled A, and I want to delete the entries that have 0 in the 9th column (i.e delete the wh...

fast 3 Jahre ago | 2 answers | 0