Question

Solving for a matrix

C is a variable matrix, C=[w,x,y,x] I have an equation T*Q*M=B; All the matrices are 4*4 B and Q are known constant matrices....

3 months ago | 2 answers | 0

Question

cell to matrix conversion with a slight modification

I have a 1×501 cell array(named C). Each element in the cell is a 4*4 matrix, which means I have 501 matrices of 4*4 dimensions....

3 months ago | 1 answer | 0

Question

I need to create a cell array initializing each element in it to 3*1 null matrix.

I need to create a cell array initializing each element in it to 3*1 null matrix. How to proceed? F=cell(a,2*n); is my cell and...

3 months ago | 2 answers | 0

Question

How to proceed in this case?

I have a set of matrices F1,F2,....,F16; each of them is 3*1 matrices. All these matrices should be stored as F := [F1,....,F...

3 months ago | 0 answers | 0

Question

Can I use linprog to solve for the vector k

I should obtain a vector k=[k1,k2,....,kn], here k1,k2..kn are vectors. F is a 3*1 wrench matrix (where it contains the moment...

3 months ago | 0 answers | 0

Question

How to make my function accept input file?

function [edges,nodes,path]=PRM(obstacles) This is my function.I have a csv file named obstacles.But when I run it, I get the m...

4 months ago | 2 answers | 0

Question

Could you please check my code?

R=[1,-0.5,-0.5]; for i=2:25 a = -0.50; b = 0.50; R = [R;i,(b-a).*rand(1,1) + a,(b-a).*rand(1,1) + a]; end R=[R;26,0.5,0.5]...

4 months ago | 1 answer | 0

Question

Finding the 2 closest coordinates for a point

I have got a 30 points in the set [-0.5,0.5]^2 in a matrix R generated from the random function. For each point, I need to find ...

4 months ago | 1 answer | 0

Question

I am supposed to get list of matrices but I am getting this.What do they mean?

traj = 1×10 cell array Columns 1 through 8 {4×4 double} {4×4 double} {4×4 double} {4×4 double} {4×4...

4 months ago | 2 answers | 0

Question

How to obtain a .csv file?

I have written and ran a code,I got the output as a matrix.Now to use the matrix in a software, I need to generate a .csv file o...

4 months ago | 1 answer | 0

Question

Using wrapTo2Pi without toolbox

Is there any other alternative from using wrapto2Pi function because I get an error saying I donot have a toolbox.I requested fo...

4 months ago | 1 answer | 0

Question

i am not getting correct output.please help

function [e]=eccentricity(a,b) if (a||b==0) disp('warning'); elseif a<b temp=a; a=b; b=tem...

5 months ago | 1 answer | 0