Community Profile

photo

Tian Lin


Active since 2011

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


how to change data
i have a matrix like this: [1 0 0 1 1 1 1 0 1 1 0] i need to change to: [1 0 0 4 4 4 4 0 2 2 0] how to make a loop?thank...

11 years ago | 7 answers | 1

7

answers

Question


loop error
x=[1.1 2.4 3.1 4.8 5.9 6.2 7.9 8.9 9.7 10.3 11.2 12.6 13.7 14.2 15.9 16.8 17.0 18.5 19.6 20.3 21.7 22.6 23.8 24.7 25.9 26.1 27...

13 years ago | 1 answer | 0

1

answer

Question


error for Index exceeds matrix dimensions
This is my code: for k=1:length(X0); %X0 is a 1xN cell,N is an unknown number. if X0{:,k}==0; X0(:,k)=[]; ...

13 years ago | 2 answers | 0

2

answers

Question


get data from cell
I have a cell which structure is 1x5 like A=[1x25 double] [1x13 double] [1x9 double] [1x7 double] [1x5 double]. ...

13 years ago | 1 answer | 0

1

answer

Question


how to make loop
I have asked the question as http://www.mathworks.com/matlabcentral/answers/3748-how-to-make-a-loop-for-end. Matt fig helped m...

13 years ago | 1 answer | 0

1

answer

Question


how to make a loop(for...end)
I'm a new guy for matlab loop. Righi now I want to now some rools about loop(for...end). Such as how to make a loop to get all o...

13 years ago | 4 answers | 0

4

answers

Question


Get data from a matrix
I have a matrix such as x0=[3.88,3.88,3.88,3.88,3.88,3.88,3.59,3.59,3.59,3.59,3.59,3.23,3.59,3.59,3.23,3.23,3.23,2.94,2.94,2.94...

13 years ago | 1 answer | 0

1

answer

Question


Polynomial curve fitting--how to use cubic
I have this code:x=[1.69,1.99,1.99,1.99,1.99,1.99,2.70,2.70,2.70,3.00,3.00,3.00,3.00,3.37,3.37]; plot(x,'r-'); I use the tool ...

13 years ago | 1 answer | 0

1

answer