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

mehr als 11 Jahre vor | 0

Beantwortet
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]?

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 2

| akzeptiert

Beantwortet
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

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
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

mehr als 11 Jahre vor | 1

| akzeptiert

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

Beantwortet
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...

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 9

Beantwortet
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...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 1

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 2

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

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 11 Jahre vor | 1

| akzeptiert

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

mehr als 11 Jahre vor | 0

Beantwortet
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)*...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
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] ...

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 1

| akzeptiert

Beantwortet
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)

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

Beantwortet
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 ...

mehr als 11 Jahre vor | 0

Beantwortet
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')

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

Mehr laden