None.

Question

How to change axis values when using spy command?

I have a 1515x1165 matrix of binary data, denoted as A. I also have two vectors, denoted as x and y, that contain the range of x...

2 years ago | 0 answers | 0

Question

How to convert two 3D coordinates to Euler angles?

I have two vectors representing (lat, long, alt). I need to calculate the Euler angles (roll, pitch, yaw) required to go from ve...

2 years ago | 1 answer | 0

Question

Use image function to create heat map and 3D plot?

I have 4 variables (X, Y, Z, W) I am trying to plot at the same time. I already have code set up to plot a heat map showing popu...

2 years ago | 1 answer | 0

Question

How to shade area between an upper bound and lower bound curve?

I have an upper bound curve comprised of vectors xmax, ymax. I also have a lower bound curve comprised of vectors xmin, ymin. Th...

3 years ago | 1 answer | 0

Question

Scale any angle between [0, 180] and [0,-181] degrees

How do I scale any angle that I get to be between 0 and +/-180 degrees? So lets say I have 750 degrees, I want the output to be ...

3 years ago | 2 answers | 0

Question

Apply bus signals to a mux for use in interpreted matlab function block in simulink

I know that bus signals are not to be mixed with a mux in Simulink, but I need to import some variables from a bus used prior in...

3 years ago | 0 answers | 0

Question

Maximum size of output not bounded in matlab function block for linspace error

I am using matlab function block in simulink and need to use linspace for use in my function. When I run the model, I get an err...

3 years ago | 1 answer | 0

Question

Solving for unknown matrix?

I have three known matrices, and one unknown matrix that I need to solve for. The matrices are defined in the code below. The eq...

3 years ago | 2 answers | 0

Question

How to solve for P(t) relating two sets of state variables?

I have two sets of state variables, A and Ap, and I need to solve for P(t), which relates the two. The equation to do so is Ap =...

3 years ago | 1 answer | 0

Question

Mirror x-axis of Image but not the x-axis of the plot over top of it?

I have an image that I am plotting. The x-axis is reversed and I need to merely flip the image. I am trying to use set(gca,'xdir...

3 years ago | 1 answer | 0

Question

How to remove repeating rows without unique function?

I have a 624x2 matrix of ordered pairs, of which there are some repeating rows that I must remove. Is there a way to remove thes...

3 years ago | 2 answers | 1

Question

Unique function doesn't work in Simulink

I have a 624x2 matrix that needs to have repeated ordered pairs removed. The first column represents x values and the 2nd column...

3 years ago | 1 answer | 0

Question

Remove empty sets in iteration to avoid indexing error?

I have a for loop and inside I have a find function. I am receiving a "Subscripted assignment dimension mismatch" error. After l...

3 years ago | 1 answer | 0

Question

Return row and col of ismembertol comparisons?

I have a layered matrix, N, that is 834x834x3 and I want to scan that matrix using ismembertol to see which ordered pairs from F...

3 years ago | 1 answer | 0

Question

Is there a way to use find function if I know there will be some empty sets?

I am using matlab's 'find' function below. I get an error saying "Subscripted assignment dimension mismatch," because there are ...

3 years ago | 2 answers | 0

Question

Use linspace without scalar input?

I want to use linspace that goes from two non-scalar terms. Is there a way to use linspace with specified number of points, n, f...

3 years ago | 3 answers | 0

Question

How to use arrayfun in Simulink?

I am trying to use arrayfun in Simulink but first got the error "Function 'arrayfun' is not supported for code generation. Consi...

3 years ago | 1 answer | 0

Question

"Subscripted assignment dimension mismatch" when using "find" with a tolerance?

My code gets pretty in depth so I am not sure if posting it all would be helpful at all. Essentially I am using find with a tole...

3 years ago | 2 answers | 0

Question

return iteration number from selected for loop value?

I have a for loop that calculates distance that a projectile travels given different acceleration values. What I want is to retu...

3 years ago | 1 answer | 0

Question

specify rows and columns to find min value?

I have a matrix, N, and a matrix RC, and what I want is to search for a minimum value in N based on values in RC for rows and co...

3 years ago | 2 answers | 0

Question

Find index of specific ordered pair in layered matrix

I have an ordered pair matrix, A=[x y], and a layered matrix, N, with three layers. What I want to do is search layer 2 for the ...

3 years ago | 1 answer | 0

Question

Split a series of lines into equal parts

I have a vector of x values with each x corresponding to an endpoint of a line. Starting at 0, I want to split up each line made...

3 years ago | 1 answer | 0

Question

Remove repeating values from vectors

I have two vectors, r and c, which have repeating patterns in them. c repeats the same number 3 times and then increases by 4, a...

3 years ago | 1 answer | 0

Question

Find min in matrix given specific rows and columns?

I have a matrix, A, and I want to find the minimum value given specified row and column vectors, r and c. I also want to return ...

3 years ago | 2 answers | 0

Question

Divide and expand matrix

I have a 600x600 matrix with integer values in each cell. What I want to do is expand that matrix into a 6,000x6,000 matrix. How...

3 years ago | 2 answers | 0

Question

Save Simulink subsystem output as constant

I have a simulink system with multiple subsystems. In one subsystem, I want the output to be a constant singlular value not upda...

3 years ago | 1 answer | 0

Question

Solve system of nonlinear equations without symbolic variables

Is there a way to solve a system of 3 nonlinear equations without symbolic variables? I showed how to solve the equations I need...

3 years ago | 1 answer | 0

Question

Solve system of equations in simulink

I wrote a script to solve a system of 3 equations in matlab. The code can be seen below. I need to add this in simulink simulink...

3 years ago | 1 answer | 0

Question

Series Summation With Function Handles

I am performing a Monte Caro simulation with non-linear optimization inside using fmincon. Fmincon requires the use of function ...

3 years ago | 1 answer | 0

Question

How to use fmincon in for loop

I am trying to use fmincon in a for loop but am not sure how to incorporate function handles with the iterations required. I am ...

3 years ago | 1 answer | 0