Answered

How to convert a table into an array

Zreal = Z_wires{:,1}; Zimg = Z_wires{:,2}; Zcomplex = Z_wires{:,3}; Z_wires_matrix = [Zreal, Zimg, Zcomplex] or even just: ...

How to convert a table into an array

Zreal = Z_wires{:,1}; Zimg = Z_wires{:,2}; Zcomplex = Z_wires{:,3}; Z_wires_matrix = [Zreal, Zimg, Zcomplex] or even just: ...

4 months ago | 1

| accepted

Question

Help using contourc without meshable x-y data

I have a surface of which i would like to compute a section with the z = a plane using contourc function. if we try to plot th...

4 months ago | 1 answer | 0

Answered

Solving equations for a specified variable in terms of other variables

syms g l1 l2 m1 m2 theta1 theta2 omega1 omega2 alpha1 alpha2 x1= l1*sin(theta1); y1= -l1*cos(theta1); x2 = x1+l2*sin(thet...

Solving equations for a specified variable in terms of other variables

syms g l1 l2 m1 m2 theta1 theta2 omega1 omega2 alpha1 alpha2 x1= l1*sin(theta1); y1= -l1*cos(theta1); x2 = x1+l2*sin(thet...

12 months ago | 0

Answered

Help sending values through varargin?

Inside the function varargin is a cell with all the extra inputs, if you want to call it inside you function: function [xroot,r...

Help sending values through varargin?

Inside the function varargin is a cell with all the extra inputs, if you want to call it inside you function: function [xroot,r...

12 months ago | 1

Answered

How to store vectors as parameters in a matrix

A = [plane(1:3);plane2(1:3);plane3(1:3)]; b = [plane1(4);plane2(4);plane3(4)]; Now A is 3x3 matrix and b is 3x1 vector.

How to store vectors as parameters in a matrix

A = [plane(1:3);plane2(1:3);plane3(1:3)]; b = [plane1(4);plane2(4);plane3(4)]; Now A is 3x3 matrix and b is 3x1 vector.

12 months ago | 0

Answered

How to construct matrix for variable radius?

I maybe understood what you're asking for: k = 100; % number of transversal discretization ri = 0:0.7/k:0.7; i = 0; for z=...

How to construct matrix for variable radius?

I maybe understood what you're asking for: k = 100; % number of transversal discretization ri = 0:0.7/k:0.7; i = 0; for z=...

12 months ago | 0

Answered

How i can store a results of a loop FOR (are then Matrix's) in a new Matrix?

Ee = [-P(1) e0 -P(3) P(2) -P(2) P(3) e0 -P(1) -P(3) -P(2) P(1) e0]; i = 0; % adding counter inde...

How i can store a results of a loop FOR (are then Matrix's) in a new Matrix?

Ee = [-P(1) e0 -P(3) P(2) -P(2) P(3) e0 -P(1) -P(3) -P(2) P(1) e0]; i = 0; % adding counter inde...

12 months ago | 0

| accepted

Question

Help with Matrix block multiplication

Hi, i need help with block matrix multiplication. I think a practical example should explain what i'm looking for. Given: A = ...

12 months ago | 1 answer | 0

Question

Element wise multiplication array-matrix between each element of the array with the whole matrix

Hi, as mentioned in the title i am looking for a way to achieve a particular element wise multiplication. For example given: A ...

12 months ago | 1 answer | 0

Question

How to properly overload horzcat and vertcat?

Hi, im having some trouble overloading horzcat/vertcat for my class with 2 properties: classdef myClass properties ...

12 months ago | 1 answer | 0

Question

Vectorization of matrices multiplication

Hi, i have some trouble finding out how to vectorize the following loop: for k = 1:PointsLength h(k,1) = transpose(PointsA(:...

1 year ago | 1 answer | 0

Question

Problem passing function to lsqnonlin with costant parameters

Hello, i have this function to pass to lsqnonlin : [val,Jac] = myfunction(x,par1,par2,par3) my function computes already the J...

1 year ago | 1 answer | 0