Answered
How do I launch a matlab gui from the desktop?
If you have a <http://www.mathworks.com/products/compiler/ Matlab compiler> toolbox, create an executable which could be lunched...

14 years ago | 0

Answered
Convert each cell to numeric
seqs{1} seqs{2}

14 years ago | 1

| accepted

Answered
How to: simple stack bar
close A=[76 96 68 15 112 160] cl='rgbkcm' for k=1:6 bar(k,A(k),cl(k)) hold on end set(gca,'xtick',1:6) ...

14 years ago | 0

Answered
how to call a variable in a button function from another button function
If var1 is your variable, when var1 is created or updated: handles.var1=var1 guidata(hObject,handles) To call your vari...

14 years ago | 0

Answered
Determining unique abbreviations in a dataset
s=['AK';'AZ';'CA';'CA';'IL';'ID';'ID';'MS';'NH'] out=unique(s,'rows')

14 years ago | 0

Answered
Convert CurrentPoint to X and Y Value.
x=get(gco,'Xdata'); y=get(gco,'Ydata')

14 years ago | 2

| accepted

Answered
LEAST SQUARES Estimation code
Try my submission <http://www.mathworks.com/matlabcentral/fileexchange/37631-identification-by-least-square-method>

14 years ago | 1

Answered
Error in loading image
Try clear imread A=imread('Image1.jpg'); imshow(A) % You probably used |imread| as a variable

14 years ago | 0

Answered
Detect Inf or Nan in Embedded Matlab Function block
Use *isnan* or *isinf* function

14 years ago | 0

| accepted

Answered
plotting data in an non orthogonal coordinate system
3D plot close k=10 x=0:0.1:10 y=sin(x) z=10*x.*y plot3(x,y,z) %----------New coordinate system------------------ b=s...

14 years ago | 2

| accepted

Answered
plotting data in an non orthogonal coordinate system
close x=0:0.1:10 y=sin(x) plot(x,y) % If you want to plot in the the new coordinate system newvector_j=a+b*j, % we sup...

14 years ago | 0

Answered
How can I configure , so that MATLAB will not allow duplicate built in function by re-definition ?
*det* is a Matlab function. when you do det=1 you are creating a new variable det, and shadows the function det. To rest...

14 years ago | 0

Answered
First 5 minimum elements of a vector
vector=rand(10,1) [x,idx]=sort(vector) out_x=x(1:5) % 5 first values out_idx=idx(1:5) % corresponding indices

14 years ago | 1

| accepted

Answered
Series generated by recursive formula
y=0:10 % Example k=10 x(1)=0 for n=1:10 x(n+1)=j*x(n)+k*y(n+1) end

14 years ago | 0

Answered
Reading files with extension.
A = dir([uigetdir('C:\','Select directory of a files'),'/*.a']);

14 years ago | 1

Answered
How I can save varibles to a file? For example, the variable test to the file data.data.
a=[1 2;3 4] xlswrite('yourfile.xls',a)

14 years ago | 0

| accepted

Answered
How to pick out the corresponding answers
A=[2 5 3 9 1 10] B=[2 5 7 4 9 5] C=[5 2 4 7 6 1] [x,idx]=min(A) % x is the min value and idx is the corresponding index ...

14 years ago | 0

| accepted

Answered
How to release zero elements in sparse matrix
Your example is not correct, what you should do is a=ones(10,10); nzmax(a) a(1:5,1:5)=0 a=sparse(a) nzmax(a)

14 years ago | 0

| accepted

Answered
uitable row display-problem
Maybe you should initialize in your opening function set(handles.infoTable, 'data',[]);

14 years ago | 0

| accepted

Answered
Add rows in uitable
cData = {complete; AInfo; BInfo; CInfo; DInfo}; old_data=get(handles.infoTable,'data'); new_data=[old_data;cData] set(h...

14 years ago | 1

| accepted

Answered
Finding maximum and minimum values of an array by specifying the range.
dat=datestr(data(:,1),'dd-mmm-yyyy HH:MM:SS') % data your 1000*2 array dat1=datevec(dat) day=dat1(:,3) [a,b,c]=unique(dat...

14 years ago | 0

Answered
Is it possible to programmatically change the size of a Simulink block?
set_param('yourmodel/yourblockname','position',[x0,y0,x0+width,y0+height]) doc set_param

14 years ago | 1

| accepted

Answered
Disply data in row (uitable)
Maybe you should use ( *,* ) instead of ( *;* ) cData = {complete, AInfo,BInfo, CInfo, DInfo};

14 years ago | 0

| accepted

Answered
how to link from matlab to flash?
If you mean linking such Matlab-Excell, it does not exist. But you can lunch your swf file from Matlab: (if your folder is D:) ...

14 years ago | 0

Answered
How can I break down my Simulink model into smaller parts and allow multiple cores to process the model?
You can use <http://www.mathworks.com/products/parallel-computing/ Parallel Computing Toolbox>

14 years ago | 0

Answered
How can I store a complex number on a binary file?
x = complex(rand(1,1), rand(1,1)); a=[real(x) imag(x)] fid = fopen('test.bin', 'w'); fwrite(fid, a, 'double'); fclose(fid)...

14 years ago | 0

Answered
Removing Space from code output II
A=[0 1 2 3 4]; a=num2str(A) a(a==' ')=[]; out=str2num(a)

14 years ago | 0

Answered
I have 6 Excel sheets each having 3 colums of data and i need to plot these in a 3D graph.How do i plot all these in one single 3D graph.
for k=1:6 data=xlsread('yourfile.xls',sprintf('sheet%d',k)) d{k}=data; % to store all your data x=data(:,1); ...

14 years ago | 0

Answered
Matrix multiply slices of 3d Matricies
n=3; m=4; k=5; p=2; A=rand(n,m,k) B=rand(m,p,k) C=zeros(n,p,k) for ii=1:k C(:,:,ii)=A(:,:,ii)*B(:,:,ii) end

14 years ago | 0

Answered
Help interpolating time series
x=[0 1 2 4] y=sin(x) xi=[0 0.5 1 1.5 2 2.5 3 3.5 4] method='spline' yi=interp1(x,y,xi,method)

14 years ago | 0

Load more