Answered
Removing the integral part of number from a matrix
A=[9.875 1.234 0.987 2.341] rem(A,1)

12 years ago | 0

Answered
How to find certain index of a diagonal matrix , when a condition meets?
n=size(A,1); idx=find(A(sub2ind([n n],1:n,1:n))>=0.9)

12 years ago | 1

| accepted

Answered
How to convert this matrix to a cell array?
A=rand(6,1400) out=num2cell(A,1)

12 years ago | 0

Answered
Construct data matrix from single column
reshape(A,62,500)

12 years ago | 0

| accepted

Answered
Given a vector how do I use loops to show the in index value of where in the vector there is a certain value.
Without a loop x=[4,6,7,6,4,3,3,5,6,3,3,3,6,7,5,3] idx=strfind(x,[3 3])

12 years ago | 0

Answered
matlab workspace memory calcualtion
d=whos; memory_size=d.bytes

12 years ago | 0

Answered
Unique numbers in array
out= unique(A) Or out=unique(A,'rows')

12 years ago | 0

Answered
how to launch windows app from Matlab?
!your_application

12 years ago | 0

Answered
how remove tow of three consecutive same values in a vector
a = [1,2,3,1,1,1,2,3,2,3,1,1,1,1,2,3,3,3,2,2,1]; b = [1,2,3,11,12,13,20,21,25,27,31,32,33,34,36,40,41,42,47,48,50]; c=diff(a...

12 years ago | 0

| accepted

Answered
text position with plotyy
x=0:0.1:10 y1=20*sin(x); y2=100*cos(x); [ax,h1,h2]=plotyy(x,y1,x,y2) text( 'position',[1 10],'String','rrr','parent',ax(2)...

12 years ago | 0

| accepted

Answered
How to sort all the columns of a file into a single column?
out=sort(A(:))

12 years ago | 0

Answered
How can I use meshgrid in a loop?
Use cell array P{i}=

12 years ago | 0

| accepted

Answered
automatically index .fig files
for k=1:10 filename=sprintf('file%d.fig',k) %do your plot and save your figure end

12 years ago | 0

Answered
Ezplot non-integer axis limits
Look at this example f=@(x) x.^2 ezplot(f,[-1 1]) Have you an example which didn't work?

12 years ago | 0

Answered
The FIND command returns an empty matrix for a number I know exists
Look at <http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F>

12 years ago | 1

Answered
conversion of a dataset array
A={'ID' 'SP' 'MD' 'FI' '1234' 'BBB-' 'Baa3' [] '1235' [] [] 'A-' '1236' 'BB' 'Ba1' 'BB+' ...

12 years ago | 0

Answered
How to retain only the rows of a matrix based on the unique numbers in the first column of the matrix?
[ii,jj,kk]=unique(a(:,1),'stable'); out1=a(jj,:) out2=cell2mat(accumarray(kk,1:numel(kk),[],@(x) {a(max(x),:)}));

12 years ago | 0

| accepted

Answered
Automatically Change Variable in a Plot
for k=1:3 eval(sprintf('plot(D%d)',k)) hold on end

12 years ago | 0

| accepted

Answered
Writing a program that checks if an array's elements are integers.
~mod(A,1)

12 years ago | 2

| accepted

Answered
find the rank of a element in a an array of numbers
v=[4 5 2 7 8] idx=find(v==2)

12 years ago | 0

| accepted

Answered
hwo to arrange certain rows of a matrix into cell array
A=[1 2 0 12;2 3 1 54;7 8 2 12;2 10 3 12;0 1 4 54;1 1 4 77] [ii,jj,kk]=unique(A(:,4)) out=accumarray(kk,1:numel(kk),[],@(x) ...

12 years ago | 0

| accepted

Answered
how to make a variable as equal input over 30 sections
f = 100; z = 0.5*ones(1,30) b = 2; c = 4; Y = f*b*c*z; disp(Y);

12 years ago | 0

| accepted

Answered
Getting Error: Undefined function 'colspace' for input arguments of type 'double'.
colspace(sym(A))

12 years ago | 0

| accepted

Answered
how write files using for loop
for k=1:10 filename=sprintf('%d.txt',k) %do end

12 years ago | 1

Answered
replace multiple "1" with only one "1"
Try this FF1 = 'eE_?@ wwqy W' FF3=strjoin(strsplit(FF1))

12 years ago | 0

Answered
write a m-file base on the random source in simulink
You can use this <http://www.mathworks.com/help/simulink/slref/randomnumber.html block>

12 years ago | 0

Answered
replace multiple "1" with only one "1"
FF1 = 'eE_?@ wwqy W' FF2=abs(FF1) FF3=FF2 a=[0 FF2==32 0]; ii1=strfind(a,[0 1]) ii2=strfind(a,[1 0])-1 FF3(cell2mat(...

12 years ago | 0

Answered
How do you open data contained within one cell of a variable?
your cell array A should be a 1x54 cell, to access your data use a curly brackets A{1} A{2}

12 years ago | 0

| accepted

Answered
How we can take polynomial of n variable as input.?
The polynomial is represented by its coefficients, just ask for a vector of polynomial coefficients c=input('input the vect...

12 years ago | 0

Answered
Creating a new variable in a loop automatically. Please help!
This is not a good idea <http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F>

12 years ago | 0

Load more