Question

Can I plot with a function?

I need to plot the velocity function versus time, but when I do, nothing shows up on the graph. Any ideas? t = [0,0.52,1.04,1...

23 jours ago | 1 answer | 0

Question

Use fzero but I have arrays

I need to use fzero() to determine when the liquid stops flowing @ Q = 0. I know I need to create an equation or loop of some so...

23 jours ago | 2 answers | 0

Question

How to call specific number from polyfit

Hello, How does one call a specific number from the polyfit below? I'd like to do O27fifth = p(27), but this does not work/isn'...

environ un mois ago | 2 answers | 0

Question

Can I assign a variable to a number in a matrix from another matrix?

Using the matrix that comes from eig(), I would like to assign individual values in it to 3 separate variables, and then plug th...

environ 2 mois ago | 2 answers | 0

Question

If statement error with less than OR greater than

if lambda <= 0 | >= 2 error('value is not valid'); end I keep getting an error on ">= 2", saying it is an invalud use o...

environ 2 mois ago | 1 answer | 0

Question

Animate a rectangle, for loop used

Hello! The code below takes a large matrix (x) and shows 'o' moving up and down on a plot. I would like to change the 'o' into a...

environ 2 mois ago | 1 answer | 0

Question

Massive matrix, tridiagonal, ones()

I need to transform this matrix, taking the three diagonal lines that have numbers and make them their own matrices. My matrix, ...

2 mois ago | 1 answer | 0

Question

Plot 2 1x4 matrices

I'm trying to plot these two matricies: x = [1 4 4 1]; y = [1 1 4 4]; They're supposed to be coordinates to create this I kno...

2 mois ago | 1 answer | 0

Question

Reynolds number, FalsePosition getting multiple errors with no output

I am to create a function that uses FalsePosition (function shown below) to solve for f in the given equation. I think I'm missi...

3 mois ago | 1 answer | 0

Question

is for loop or while loop better?

I'm completing a homework question, and would like advice before I continue my code. I will paste the problem below. I chose to...

3 mois ago | 1 answer | 0

Question

Newton's Law of Cooling Euler's method, don't understand how it works in matlab

Hello! My professor has only given one example on Euler's method, so I'm really working from scratch here and would like guidan...

3 mois ago | 1 answer | 0

Question

for loop issue not all answer printing out

This is my assignment: Write an M-file to compute A. Test it with P =$100 , 000 and an interest rate of 3.3 % ( r = 0.033 ). Use...

3 mois ago | 2 answers | 0