Answered
How can I split a word to parts?
b='llo'

11 years ago | 0

Answered
sub2ind is not giving me diesired results
You have a problem with the size of your matrix, if your matrix is 23x51 how can you get the coordinates [237 228]?

11 years ago | 0

Answered
What's the sum of the first 556 multiples of 47
47*sum(0:555)

11 years ago | 0

Answered
finding the max of the first x rows in a column vector
max(a(1:50))

11 years ago | 2

| accepted

Answered
What is the difference between hold on and hold all?
With the latest version of Matlab there is no difference, hold all will be removed in the futur

11 years ago | 0

| accepted

Answered
displaying the colors of a color matrix
figure hold on for k=1:size(C,1) plot([0 1],[k k],'linewidth',8,'color',C(k,:)) end

11 years ago | 1

| accepted

Answered
Command to delete a matrix from workspace and save workspace?
you can use clear yourmatrix

11 years ago | 0

Answered
mean according to another column
If your matrix is named a idx=a(:,4)<=0.01 out=mean(a(idx,1:3),2)

11 years ago | 0

Answered
separate a column according to a histogram
a=[0.85216 0.97547 1.24458 1.30496 1.36451 1.60435 1.75188 1.78986 1.88271 1.96502 2.16654 2.68219 2.88473] b...

11 years ago | 0

| accepted

Answered
Add value in column to previous?
a=[1 1 1 1 1] b=cumsum(a)

11 years ago | 0

| accepted

Answered
How do I remove rows in a matrix, that have zero in them?
A(any(A==0,2),:)=[]

11 years ago | 0

Answered
sequence of numbers in matlab
first:increment:second Example 0:0.01:10

11 years ago | 9

Answered
what does this line of code mean?
Read the documentation <http://www.mathworks.com/help/matlab/matrices-and-arrays.html> If you have 3d array a(:,:,1)=[1...

11 years ago | 0

| accepted

Answered
how to access the matrix in matlab current folder
Read the documentation <http://www.mathworks.com/help/matlab/matrices-and-arrays.html> For example a=[1 2 3;4 5 6;7 8 9...

11 years ago | 0

Answered
How to extract statistical features from a matrix?
Use the functions median mean std

11 years ago | 1

Answered
choosing values with criteria from a set of values given
out=a out(c<a)=b(c<a)

11 years ago | 0

Answered
How to count how many numbers there are in a string?
str='a b c 45 3 2' out=numel(regexp(str,'\d+','match'))

11 years ago | 2

Answered
Reading digits from a text file
str=['1010';'0010';'1111'] out=str-'0'

11 years ago | 0

| accepted

Answered
Sort cell array columns by two dimensions
array = {'A' 'A' 'B' 'B' 'B' 'C' 'C' 1 0.1 1 0.1 0.5 1 0.1 2 3 2 4 5 2 3} array=sortrows(array',[1...

11 years ago | 1

| accepted

Answered
Fill in a matrix
randi(8,1,16)

11 years ago | 0

Answered
Help with H(z) response function
ts=1 % Sample time H1=tf([2/3 2/5 4/7],[1 0 0],ts) H2=tf([4/3 8/5 3/7],[1 0 0],ts) H3=tf([3 2 4],[1 0 0],ts) H=(H1+H2)*...

11 years ago | 0

| accepted

Answered
Check and replace elements in a matrix
a=[ 1 1 1 0 0 1 1 0; 0 1 1 1 0 1 0 0 ] a1=a(:,1:4); a2=a(:,5:end) a1(cumsum(a1,2)>2)=0 a2(cumsum(a2,2)>1)=0 b=[a1 a2] ...

11 years ago | 0

| accepted

Answered
creating a plot for given functions
plot3(x,y,z)

11 years ago | 0

| accepted

Answered
How to simplify or expand factors?
Use the product .* x=0:0.01:11; y=(x-1).*(x-2)

11 years ago | 1

| accepted

Answered
Replace first number of matrix with the next larger value
v=randi(10,1,10) % Example idx=find(v(2:end)>v(1),1)+1 v(1)=v(idx)

11 years ago | 0

| accepted

Answered
modify shape of char array
Use s{} instaed of s() [a,b] = size(array); for i=1:a s{i,1}= strcat(array(i,1),array(i,2),array(i,2),array(i,3),arr...

11 years ago | 0

| accepted

Answered
Count Numbers between two values in random vectors
find(A==5)-find(A==1)-1

11 years ago | 0

Answered
Transforming matrices in a sophisticated way
It's better to put your matrics inside a cell array, instead of creating a new variabl for each matrix a{1} = [1 2 0 ; 4 3 ...

11 years ago | 0

Answered
how polt binary even and odd from for example {0 0 1 1 0 0 }
a=[0 0 1 1 0 0] stem(a,'r')

11 years ago | 0

Answered
HELP copy matrix and inserting in another matrix
[n,m]=size(U) W(1:n,1:m)=U

11 years ago | 0

Load more