**Statistics**

**MATLAB Answers**

**54** Questions

**0** Answers

RANK**15,670**

of 257,960

REPUTATION**2**

CONTRIBUTIONS

**54** Questions

**0** Answers

ANSWER ACCEPTANCE **
51.85%
**

VOTES RECEIVED**1**

RANK

of 17,780

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 110,186

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**

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

4 years ago | 0 answers | 0

### 0

answersQuestion

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

4 years ago | 1 answer | 0

### 1

answerQuestion

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

4 years ago | 1 answer | 0

### 1

answerQuestion

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

4 years ago | 1 answer | 0

### 1

answerQuestion

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

4 years ago | 2 answers | 0

### 2

answersQuestion

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

4 years ago | 0 answers | 0

### 0

answersQuestion

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

4 years ago | 1 answer | 0

### 1

answerQuestion

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

4 years ago | 2 answers | 0

### 2

answersQuestion

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

4 years ago | 1 answer | 0

### 1

answerQuestion

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

4 years ago | 1 answer | 0

### 1

answerQuestion

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

4 years ago | 2 answers | 1

### 2

answersQuestion

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

4 years ago | 1 answer | 0

### 1

answerQuestion

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

4 years ago | 1 answer | 0

### 1

answerQuestion

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

4 years ago | 1 answer | 0

### 1

answerQuestion

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

4 years ago | 2 answers | 0

### 2

answersQuestion

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

4 years ago | 3 answers | 0

### 3

answersQuestion

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

4 years ago | 1 answer | 0

### 1

answerQuestion

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

5 years ago | 2 answers | 0

### 2

answersQuestion

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

5 years ago | 1 answer | 0

### 1

answerQuestion

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

5 years ago | 2 answers | 0

### 2

answersQuestion

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

5 years ago | 1 answer | 0

### 1

answerQuestion

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

5 years ago | 1 answer | 0

### 1

answerQuestion

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

5 years ago | 1 answer | 0

### 1

answerQuestion

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

5 years ago | 2 answers | 0

### 2

answersQuestion

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

5 years ago | 2 answers | 0

### 2

answersQuestion

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

5 years ago | 1 answer | 0

### 1

answerQuestion

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

5 years ago | 1 answer | 0

### 1

answerQuestion

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

5 years ago | 1 answer | 0

### 1

answerQuestion

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

5 years ago | 1 answer | 0

### 1

answerQuestion

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

5 years ago | 1 answer | 0