Community Profile

photo

Syed Shah


Last seen: 3 years ago Active since 2021

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Content Feed

View by

Question


Stuck on printing two different vectors, maybe Syntax?
>> N = 1062; tFinal = 5; h=tFinal/N; t=linspace(0,tFinal,N+1); z=zeros(1,N+1); z(1)=1; for n=1:N z(n+1) = z(n) + h* ...

3 years ago | 1 answer | 0

1

answer

Question


I don't understand why the elements are not the same on both sides
>> N = 200; h=tFinal/N; t=linspace(0,tFinal,N+1); % type 'help linspace' to see how this works z=zeros(1,N+1); z(1)=1; for ...

3 years ago | 1 answer | 0

1

answer

Question


Why isn't my code working because of delimeters?
>> N = 200; h=tFinal/N; t=linspace(0,tFinal,N+1); % type 'help linspace' to see how this works z=zeros(1,N+1); z(1)=1; for ...

3 years ago | 1 answer | 0

1

answer