Feeds
질문
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...
6년 초과 전 | 답변 수: 0 | 0
0
답변질문
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...
6년 초과 전 | 답변 수: 1 | 0
1
답변질문
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...
6년 초과 전 | 답변 수: 1 | 0
1
답변질문
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...
6년 초과 전 | 답변 수: 1 | 0
1
답변질문
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 ...
6년 초과 전 | 답변 수: 2 | 0
2
답변질문
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...
거의 7년 전 | 답변 수: 0 | 0
0
답변질문
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...
거의 7년 전 | 답변 수: 1 | 0
1
답변질문
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...
거의 7년 전 | 답변 수: 3 | 0
3
답변질문
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 =...
거의 7년 전 | 답변 수: 1 | 0
1
답변질문
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...
거의 7년 전 | 답변 수: 1 | 0
1
답변질문
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...
거의 7년 전 | 답변 수: 2 | 1
2
답변질문
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...
거의 7년 전 | 답변 수: 1 | 0
1
답변질문
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...
거의 7년 전 | 답변 수: 1 | 0
1
답변질문
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...
거의 7년 전 | 답변 수: 1 | 0
1
답변질문
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 ...
거의 7년 전 | 답변 수: 2 | 0
2
답변질문
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...
거의 7년 전 | 답변 수: 3 | 0
3
답변질문
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...
거의 7년 전 | 답변 수: 1 | 0
1
답변질문
"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...
대략 7년 전 | 답변 수: 2 | 0
2
답변질문
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...
대략 7년 전 | 답변 수: 1 | 0
1
답변질문
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...
대략 7년 전 | 답변 수: 2 | 0
2
답변질문
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 ...
대략 7년 전 | 답변 수: 1 | 0
1
답변질문
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...
대략 7년 전 | 답변 수: 1 | 0
1
답변질문
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...
대략 7년 전 | 답변 수: 1 | 0
1
답변질문
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 ...
대략 7년 전 | 답변 수: 2 | 0
2
답변질문
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...
대략 7년 전 | 답변 수: 2 | 0
2
답변질문
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...
대략 7년 전 | 답변 수: 1 | 0
1
답변질문
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...
대략 7년 전 | 답변 수: 1 | 0
1
답변질문
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...
대략 7년 전 | 답변 수: 1 | 0
1
답변질문
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 ...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
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 ...
7년 초과 전 | 답변 수: 1 | 0