Answered
concatenate mutiple tables repetative
It's recommanded to generate one variable w instead of w1,w2,... If you have no choice to do it, you can try this: n=5 ...

13 years ago | 0

Answered
how to generate random numbers in space
I don't know why you are calling (x,y) point in space? n=50; M=cell(3,4) out=cellfun(@(x) randi(n,1,2),M,'un',0) celldis...

13 years ago | 0

Answered
How to set only a row of data in a table in GUI?
A=[1 2 3;4 5 6;7 8 9]; % If your table contains 8 rows, create a new array with 8 rows B=[num2cell(A);cell(5,3)] f=figure, ...

13 years ago | 0

| accepted

Answered
How to open a file in MATLAB, which has comma as decimal separator.
*Edit* fid=fopen('file.txt') s=textscan(fid,'%s %s') fclose(fid) v1=str2double(strrep(s{1},',','.')) v2=str2double(s{2}...

13 years ago | 1

| accepted

Answered
how to store your outputs of your step response?
A = [0 0 1 0;0 0 0 1;-24 9 -3 0;4.5 -4.5 0 0]; B=[0 0;0 0;12 4;0 3.5]; C = [0 0 1 0;0 0 -3 0]; D = [0 0;0 0]; s=ss(A,B,C,D...

13 years ago | 0

| accepted

Answered
Script to function help
Look at <http://www.mathworks.com/help/simulink/slref/interpretedmatlabfunction.html interpreted matlab function> block

13 years ago | 0

Answered
see/access cells, variable, etc in Workspace during GUI application
You can declare them as |global| doc global

13 years ago | 0

| accepted

Answered
create consecutive duplicates of rows
a=(1:5)' b=repmat(a',5,1) b=b(:)

13 years ago | 1

| accepted

Answered
how to save data from gui handles?
a= get(handles.SliderCareChild,'Value'); handles.ValueCareChild(end+1,1)=a save('filename','a')

13 years ago | 0

Answered
To fill a closed curve
Look at <http://www.mathworks.com/help/matlab/ref/fill.html fill> function

13 years ago | 1

Answered
Writing X Y values from char to a txt file
n=5 str=regexp(sprintf('X%d Y%d ',repmat(1:n,2)),'X\d\s+Y\d','match') fid=fopen('file.txt','w') fprintf(fid,'%s\r\n',str{:}...

13 years ago | 0

Answered
simulink :Control System: MIMO Observer
I don't know what kind of observer you are using, can you explain what are the sizes of the observer model (A1,B1,C1,D1), and th...

13 years ago | 0

| accepted

Answered
problem using counter in a for loop
What is this? x(i) = i+x(i+1); x is unkown

13 years ago | 0

Answered
attempt to solve y,but get numel(y)=1
Have you initialized y?

13 years ago | 0

Answered
how to obtain compiled non editable files in matlab?
Look at this link <http://www.mathworks.com/videos/getting-started-with-matlab-compiler-68744.html>

13 years ago | 0

| accepted

Answered
convert a double array to something like logical
A=[1;5;7;4]; B=zeros(numel(A),max(A)) B(sub2ind(size(B),(1:numel(A))',A))=1

13 years ago | 0

Answered
Set listbox with excel content --Attempt to reference field of non-structure array
|cell2str| is not a valid Matlab function, it's |cellstr| and the variable |text| is already a cell array

13 years ago | 0

Answered
Cell array in uitable
If a is your cell array b=cat(2,a{:}) x=b(:,[1 3]) y=b(:,[2 4])

13 years ago | 0

Answered
Numerate lines to a text file
If A is your nx3 array c1=1:size(A,1) A=[c1; A'] fid=fopen('filename.txt','w') fprintf(fid, '%d %d %d %d \r\n',A...

13 years ago | 0

Answered
Export transfer function model to workspace from Simulink without linmod
*Edit* Your model name is transfer, and you have two transfer function named |Transfer Fcn| and |Transfer Fcn1| To get t...

13 years ago | 0

Answered
how to read a text file and read it line by line?
v={'11-11111';'11-25519';'32-68129';'36-14111'} n= '14-68129' idx=find(strcmp(v,n)) %To read v fid=fopen('num.tx...

13 years ago | 1

Answered
Put Two matrix into 1 column matrix
X=X'; Y=Y'; XY=[X(:) Y(:)]' XY=XY(:)

13 years ago | 1

| accepted

Answered
Replace NaN with blanks
A = [20.00;30.00;30.00; NaN] A=num2cell(A) A(cellfun(@isnan,A))={[]}

13 years ago | 1

| accepted

Answered
Spec. Cell exportation from a loop
Move xlswrite from the loop and put it after: xlswrite('testsheet.xlsx', cat(1,Kapitalwert{:}),'Kapitalwerte');

13 years ago | 0

| accepted

Answered
writing and saving multiple numerical arrays to multiple excel sppreadsheets
for r=1:300; file=sprintf('datasets%d.xls',r); xlswrite(file,data); end

13 years ago | 0

| accepted

Answered
how do i enter experimental data in matlab gui and plot ?
<http://www.mathworks.com/videos/creating-a-gui-with-guide-68979.html Creating a GUI with GUIDE>

13 years ago | 0

| accepted

Answered
How to fill in this matrix?
*Edit* n=1536/4 c2=repmat(1:n,4,1); time(2,:)=circshift(mod(c2(:)',24)+1,[0 4]) %or n=1536/(24*4) a=repmat(1:2...

13 years ago | 0

| accepted

Answered
new array using average row of the old array
*Edit* out=bsxfun(@minus,M,mean(M,2)).*not(~M) %or idx=M==0; out=bsxfun(@minus,M,mean(M,2)); out(idx)=0

13 years ago | 1

| accepted

Answered
transforming cells having multi-dimensional matrics to 2-dimensional matrix.
nsm=4, nr=3, num_class=2 z{1,1}=ones(nsm,nr, num_class)*10; z{1,2}=ones(nsm,nr, num_class)*15; z{1,3}=ones(nsm,nr, num_cl...

13 years ago | 0

Load more