Answered
I have installed 64 bit matlab in place of 32 bit, but now my old programs are not running
What do you mean by my old programs? m-files or simulink models? Check if the toolbox used by your script are installed by typin...

13 years ago | 0

Answered
1.1 - int32(1) = 0 ?
<http://www.mathworks.com/help/matlab/numeric-types.html> when the operation is possible between two classes, I think the priori...

13 years ago | 0

Answered
Selecting unique tracks to plot multiple lines in a figure?
c1=A(:,1); idx=unique(c1); n=numel(idx); c=cell(n,1); for k=1:n c{k}=A(A(:,1)==idx(k),2:3); end c{1} c{2}

13 years ago | 0

| accepted

Answered
Issue with axis tick labels
set(gca,'XTickLabel',{'0';' ';'10';' ';'20';' ';'30';' ';'40'})

13 years ago | 0

| accepted

Answered
how can store string and number in a matrix?
A={'matlab', {'ver',12}}

13 years ago | 2

| accepted

Answered
Combining Data from different Cells in a cell array
cellfun(@(x,y) [x y],xcoordinate',ycoordinate','un',0)

13 years ago | 1

| accepted

Answered
Error using ' Transpose on ND array is not defined.
You image x is probably nxmx3. check it by size(x)

13 years ago | 0

| accepted

Answered
How to introduce different step sizes in a simulink model?
You can not have different fixed step size, but you can set different sample times (they have to be multiple of the fixed step s...

13 years ago | 0

Answered
How to pick specific values from a matrix?
A(10:10:end,:)

13 years ago | 0

| accepted

Answered
Find closest matrix from list
I propose this criterion sum(abs(a-b)) to be the smallest for k=1:100 s(k)=sum(sum(abs(A-M(k).x))) end [~,idx]=min...

13 years ago | 0

Answered
How to compare two matrices of diffrent dimensions by looping.
B=randi(100,512,512) ; % the big matrix [n,m]=size(B); S=randi(100,256,20) % the small matrix [n1,m1]=size(S); q1=fix(n/n1...

13 years ago | 0

Answered
Help with vectorizing find command
parents =arrayfun(@(x) indexes(find(x < cs,1)),r); But the for loop is 15 faster *Edit* parents=zeros(1,numel(r)...

13 years ago | 1

Answered
How to read a .csv file in matlab?
Use <http://www.mathworks.com/help/matlab/ref/csvread.html csvread function>

13 years ago | 0

| accepted

Answered
Result ilaplace a number
double(coeffs(b))

13 years ago | 0

Answered
iam using ezplot, and getting error again and again.
You, probably have an m file named ezplot.m in your default folder

13 years ago | 1

| accepted

Answered
Comparing arrays between matrices in random order
A = [1 2 3 4 5;2 5 3 4 6;1 4 6 3 7;1 4 2 6 4]; B = [2 5 3 4 6;1 4 6 3 7;1 2 3 4 5;9 9 9 9 9]; for k=1:size(A,1) idx...

13 years ago | 0

| accepted

Answered
How to change seconds since 1st January 1985 to YYYY-MM-DD-HR-M-S format?
dat0='01-01-1985 00:00:00' dat00=datevec(dat0,'dd-mm-yyyy HH:MM:SS') a=95604 dat00(6)=dat00(6)+a new_de=datestr(datenum(d...

13 years ago | 0

Answered
How to convert from decimal time to hh:mm:ss
datestr(yournumber,'HH:MM:SS')

13 years ago | 6

| accepted

Answered
Need Help getting a 1:1 scale on a plot
t=0:0.1:10 y=2*cos(t)+4 plot(t,y) fig_width=5; fig_length=10; set(gcf,'Units','inches','position',[0 0 fig_width fig_leng...

13 years ago | 0

Answered
how do I add gaussian white noise with 0 mean and 1 std?
moyenne=0; % mean ecart_type=1; % std t=0:0.1:10 signal=10*sin(t) % your signal noise= moyenne + ecart_type*randn(1...

13 years ago | 0

Answered
how to repeat cycles in a DFT equation
Use repmat function repmat(Xz,100,1)

13 years ago | 0

Answered
Generating a particular sequnce of numbers
*Edit* This is twice faster then Stafford's answer A4=zeros(1,d*(d+1)/2); % Pre-allocate c=0; for k=1:d A4(c+1:...

13 years ago | 3

Answered
Using find in a loop
Use |find(expression,1)| I = [1, 2, 4, 3,3,3,5, 10,8,7, 2,4, 5, 6, 8,6,5 ]; for ii = 1:15 Maxi(ii) = max(I(ii:(ii+2))...

13 years ago | 0

Answered
how to create rectangular checkerbox matrix
n=7; m=5; colvector=ones(1,m); colvector(2:2:end)=0; rowvector=ones(1,n); rowvector(2:2:end)=0; M=hankel(colvector,rowve...

13 years ago | 0

| accepted

Answered
how to write data on excel.
xlswrite('force_data.xls',[fr_max, fr_min, fr_mean, fr_std])

13 years ago | 0

| accepted

Answered
How to compare two matrices of diffrent dimensions by looping.
B=randi(100,9) % the big matrix [n,m]=size(B); S=randi(100,3) % the small matrix out=[]; for id1=1:3:n-3 for id2=1:...

13 years ago | 0

Answered
how can i use linspace to generate a row vector with two similar points?
a=sort([16 linspace(2,20,1000)])

13 years ago | 0

Answered
I want to find vector of determinants
Your code is correct, you can use arrayfun function out=arrayfun(@(x) det([a(x) b(x);c(x) d(x)]),1:numel(a))

13 years ago | 0

| accepted

Answered
Help on creating an cell array
A={'Name' 'Age';'Mick' 70;'Jhon' 80} %or header={'name' 'age'} names={'Mick';'Jhon';'Ana'} ages={70;80;20} Yource...

13 years ago | 0

| accepted

Answered
How to realize a transfer function with higher order of numerator than denominator in simulink
I will give a short example: G(s)=s % G(s)=Y(s)/U(s, U(s) is the input and Y(s) is the output % Y(s)/U(s)=S then Y(s)=U(s...

13 years ago | 1

Load more