Community Profile

photo

Espen


Active since 2011

Followers: 0   Following: 0

Message

Playing some with matlab and trying to understand the language

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


textscan and fscanf for text with some rows only text and some rows only numbers
>> matrix=[1:4;4:7] matrix = 1 2 3 4 4 5 6 7 >> save onematrix.reef matrix -ascii >> fid=f...

12 years ago | 1 answer | 0

1

answer

Question


problem with getting for loop to work
function int=calculateintegral(from,to,subinterval) inttemp=0; if rem(subinterval,2)>0 int='subinterval must be devi...

12 years ago | 1 answer | 0

1

answer

Question


fprintf applied to variable
function balancepoint=findbalpoint(A) weight=0; i=1; while weight<sum(A)/2 weight=weight+A(i); ...

12 years ago | 1 answer | 0

1

answer

Question


how to stop while statement
function isitalike=comparestrings(a,b) n=length(a); m=length(b); c=logical(0); y=m; z=n; f=0; ...

12 years ago | 1 answer | 0

1

answer

Question


string as input for function
this function handles a string as input: function rev=stringrev(a) n=length(a); for i=1:n b(i)=a(n-i+1...

12 years ago | 1 answer | 0

1

answer