Question

What's wrong with my code?

Hi! So I am trying to solve x for M = A^T A och d = A^T b but according to my teacher I should recieve a 3*3 matrix and not a 3...

2 months ago | 0 answers | 0

Question

Why isn't my matrix correct?

So I am trying to solve for x in Mx = d, but I only get a 3*2 matrix. I should get a 3*3 matrix. What am I doing wrong? A = ...

2 months ago | 1 answer | 0

Question

Why is my circle invisible?

I can not figure out why my circle is invisiable when I plot it (It is a regression). Am I missing something? It used to work ea...

2 months ago | 1 answer | 0

Question

least square circle, why doesn't it work?

Hi, so I have four data points (x and y) and I want to find A and B from least square equation Ax=B (to fit the circle's equatio...

2 months ago | 1 answer | 0

Question

Non linear least square fitting

Hi, I am really stuck trying to figure out how to fit a circle to some data points. I have watched plenty of videos on the top...

2 months ago | 2 answers | 1

Answered

How to construct matrix?

This seems like a good idea, but I can't seem to run the script.

How to construct matrix?

This seems like a good idea, but I can't seem to run the script.

3 months ago | 0

Question

How to construct matrix?

So I have written the following 4*3 matrix but I want to construct it with 'ones' and '.*' but I am unsure how to. [12 2 1; 4 ...

3 months ago | 2 answers | 0

Question

Error trying to plot circle

Hi I am trying to plot a circle but I alsways get the same error " Error in circle (line 11) a = r.*cos(v)+j; Can you see why?...

3 months ago | 1 answer | 0

Answered

Functions Matlab, how to modify?

So I tried Turlough's suggestion again and it seems to be working fine now. But since two vectors will be generated (-d,b,c) and...

Functions Matlab, how to modify?

So I tried Turlough's suggestion again and it seems to be working fine now. But since two vectors will be generated (-d,b,c) and...

3 months ago | 0

Question

Functions Matlab, how to modify?

Hi, so I have two vectors, Q = (a,l,m) and Z = (d,b,c). I have created a function to calculate Z, but the problem is that I do...

3 months ago | 2 answers | 0

Question

Functions in Matlab, problem

I have a vector A = (A1, A2, A3) which is orthogonal to another unit vector, v = (v1,v2,v3), whose first coordinate is 0. I have...

3 months ago | 0 answers | 0

Question

How to convert expression to function?

Hi, I am trying to convert my expression to a function, but when I remove the informative text I can not call/run the function. ...

3 months ago | 1 answer | 0

Question

How to not get an ans from function?

Hi, I have created a function and it works the way I want it to. However, when I run the function I keep getting an 'ans' and ...

3 months ago | 1 answer | 0

Question

How to code orthogonal unit vectors?

Hi, I have two vectors, u = (u1, u2, u3) and the vector v = (v1, v2, v3) with the lenght of 1. The two vectors are orthagonal to...

3 months ago | 1 answer | 0

Question

Orthogonal vectors, how to code?

Hi, I am trying to put in my code that two vectors w⃗ = (w1, w2, w3) and ⃗v = (v1, v2, v3), with the lenght of 1, are orthogo...

3 months ago | 1 answer | 0

Question

Ploting two different vectors in the same figure

Hi, I have two vectors v1=[0; -1/sqrt(2);1/sqrt(2)]; and v2=[0; 1/sqrt(2); -1/sqrt(2)]; which I am trying to plot on the same fi...

3 months ago | 1 answer | 0

Question

Anyone that can find what is wrong about the function?

It says " Not enough input values" but I can not see which values I have missed? Can you?

3 months ago | 1 answer | 0

Answered

Error when trying to modify a code (vectors)

Thanx, but does this mean I can just insert the expressions for v ( v1 = +/- w2/((w3^2)+(w2^2)) and v2 = +/- w3/((w3^2)+(w2^2)) ...

Error when trying to modify a code (vectors)

Thanx, but does this mean I can just insert the expressions for v ( v1 = +/- w2/((w3^2)+(w2^2)) and v2 = +/- w3/((w3^2)+(w2^2)) ...

3 months ago | 0

Question

+/- signs when coding ?

How to type in v1 = +/- w2/((w3^2)+(w2^2)) and v2 = +/- w3/((w3^2)+(w2^2))? The problem is that the vectors can be both positi...

3 months ago | 1 answer | 0