Question

While Loop goes to debug

So I have the functions to find area and Drag, got them down pat fine and I know they are correct or extremly close to the corre...

4 months ago | 1 answer | 0

Question

fprintf columns turning out weirdly

So I've got some sets of data and their all columns, such as the example below. As obvious x and y both become column matrices o...

4 months ago | 1 answer | 0

Question

Undefined function 'mtimes' for input arguments of type 'function_handle'.

So I'm very puzzled as to how I find out my C values from the C lin fit. It tells me define my formula's as function handles...

4 months ago | 2 answers | 0

Question

Unary operator '-' is not supported for operand of type 'function_handle' in for loop function

Hi Matlab forums, hope you are all having a good day. If anyone could spare some time to help me,I have encounted the error cal...

4 months ago | 1 answer | 0

Answered

For Loop Error, unable to perform operation, LHS incompatible with RHS

My problem is that the for loop is set up for function handles not vectors. I would need to change the code to make it work for ...

For Loop Error, unable to perform operation, LHS incompatible with RHS

My problem is that the for loop is set up for function handles not vectors. I would need to change the code to make it work for ...

4 months ago | 0

| accepted

Question

For Loop Error, unable to perform operation, LHS incompatible with RHS

So I have this for while loop that I am calculating, and what I think is the problem is that it's trying to stuff 121 values int...

4 months ago | 1 answer | 0

Question

Index exceeds number of array elements

I'm really stuck with this task I've been given. When I run this script of mine written to answer the formula's shown, on line 2...

5 months ago | 0 answers | 0

Question

Loop answers slightly out from correct values

So in my script, I'm using a loop/ if else function. The values this function spits me out are very close to the Pi values in se...

5 months ago | 2 answers | 0

Question

Getting wrong answer,

So I have these formula's and information given to me. From question 1 I find the Zi values which I have done using Sym Z ...

5 months ago | 1 answer | 0

Question

Solve function (and other code help)

I wish to find what Z is at these heights, so I looked up the code for it S = solve(eqn,var) Z = solve(Re.*Z/Re.+Z=.hi, Z) hi ...

5 months ago | 1 answer | 0

Question

How to find the angle in MatLab

Hey so I'm new to Matlab and I've been given this question and I have to find out the angle. I found out the Hypotenuse by doing...

6 months ago | 1 answer | 0

Question

Index exceeds the number of arrays

A friend of mine is doing the exact same code My code: A = 4; W = 0.6; T = 0:10; x = A*cos(W'*T') plot(T',x') title('Disp...

6 months ago | 1 answer | 0