Jump to content
Here is a matlab code I am working on. It needs to run this line equation and then output each iteration of "line" into the matrix below. I should be able to create this matrix without typing in all the values.  BUT i get an error of 

 

"??? Undefined function or method 'y' for input arguments of type 'double'.."

 

 

while i<=6;

 

line(i)=.6*y(i+1)+(-2.12)*y(i)+1.4*y(i-1);

 

    

  

  i=i+1;

end

 

% MATRIX=[-2.12      .6       0       0        0

%          1.4      2.12     .6       0        0

%          0        1.4     -2.12    .6        0

%          0         0       1.4     -2.12   -.6];

 

rref(MATRIX)

 

 

 

 

thanks in advance

STEAM NAME: JewishBacon GPU  Sapphire dual x R9 280x OC edition CPU core i7 4770k stock speed COOLER H100i  CASE Fractal R4 Window Black  MOBO MSI gd-65 gaming Storage 1TB WD Blue drive, 1TB Samsung 7200 rpm, 120 GB OCZ SSD, 64 GB WD Blue ssd  RAM 12 GB @ 1600 Ghz kingston RAM  MiscNZXT HUE, disk read/write, 2x 21 inch 1920x1080 monitors   

Link to comment
https://linustechtips.com/topic/355809-any-matlab-users-on-here/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×