Answered
How to ensure that dynamically create symbolically variables are real?
I don't think you can, for example force the variable A1 to be real. If A1=5+j Then index = {'1'}; List = {'A','...

12 years ago | 0

Answered
How to increment data steps in a loop?
A=rand(7000,1) for k=1:7000-30+1 b=A(k:k+29); % do end

12 years ago | 0

| accepted

Answered
i want to divide 256*256 image into 8*8 blocks and store the 8*8 blocks in the matrix or 2d array something.
Im=rand(256,256); %Example ii=1:8:256 [a,b]=ndgrid(ii,ii) M=arrayfun(@(x,y) Im(x:x+7,y:y+7),a,b,'un',0) % Example block [6...

12 years ago | 0

Answered
How to change Elements in Matrix per row depending on their size in reference to a particular Element (without loop)
B=A([ 1 3 4],:); B(B>3)=3 A([1 3 4],:)=B B=A([ 2 5],:); B(B>2)=2 A([2 5],:)=B

12 years ago | 0

| accepted

Answered
combine each entry of a cell array and a double array
A={'A1','A2','A3'} B={'B1','B2'} [ii,jj]=ndgrid(1:numel(A),1:numel(B)) strcat(A(ii(:))',B(jj(:))') %or A={'A1','A2...

12 years ago | 0

Answered
How to store the result of each iteration of a forloop into MATLAB
for i=1:4 for j=1:4 v{i,j}=tf([K(i*j)],[T(i*j) one(i*j)], [L(i*j)]); end end %to get the transfer...

12 years ago | 0

| accepted

Answered
what are the inbuilt functions defined in this program?
You can check Matlab windows command: help newff If you don't find it , try in the web, maybe it belongs to a toolbox yo...

12 years ago | 0

Answered
Switching coordinate systems axes in scatter3 function.
It seems obvious scatter3(y,x,z)

12 years ago | 0

| accepted

Answered
how to increase the a column matrix of 780 elements in to 780X780 matrix withthe same elements..??
repmat(c1,1,780) %Example c1=[1;2;3;4] % Example out=repmat(c1,1,numel(c1))

12 years ago | 0

Answered
which version of matlab contains imread2 command?
imread2 is not a built-in Matlab function. You can check by searching in the web imread2 matlab

12 years ago | 0

Answered
Can I get list of functions removed in latest version of matlab?
<http://www.mathworks.com/products/matlab/whatsnew.html>

12 years ago | 0

| accepted

Answered
I am not quite sure how to create 5 random numbers between 0 and 10.
s(1)=rng randi([0 10],1,5) to get the same sequence rng(s(1)) randi([0 10],1,5)

12 years ago | 0

| accepted

Answered
how to load and read image sequences in order in matlab
d=dir('*.tif') for i=1:numel(d) im=imread(d(i).name); I{i}=double(im); end

12 years ago | 1

Answered
Is possible put a vector as a diagonal of matrix ?
n=3; a=repmat([1 2 zeros(1,2*n-2)],n,1); b=arrayfun(@(x) circshift(a(x,:),[0 2*(x-1)]),(1:n)','un',0); out=cell2mat(b)

12 years ago | 0

Answered
replace the elements of a matrix
A(A==1)=B

12 years ago | 0

| accepted

Answered
about import .txt file,how to change special character in its name
s='Chande.2008052716-17hZCFPF.GY.txt' s1=strrep(s,'.','_') s1=strrep(s1,'-','_') %or s='Chande.2008052716-17hZCFPF...

12 years ago | 0

| accepted

Answered
MATLAB help window doesn't display well. (R2013a 64-bits in WIN7)
<http://www.mathworks.com/matlabcentral/answers/104025#answer_117295>

12 years ago | 0

Answered
How to dynamically create symbolic variables?
*Edit* index = {'1'}; List = {'A','B','C'}; Temp=strcat(List,index) A=sym(Temp)

12 years ago | 1

| accepted

Answered
writing data to delimeted file with column headers and numeric data
subjects={'sub1', 'sub2', 'sub3'} M=rand(5,3) v=[subjects;num2cell(M)] xlswrite('test_file.xlsx',v) % Or you can use fpr...

12 years ago | 0

Answered
For loop syntax in example gives me errors?
This example uses Mupad, in Matlab windows command lunch Mupad by mupad You can read in the link you posted Use only ...

12 years ago | 0

Answered
Find elements of a vector
B=unique(A) You can make the result without sorting B=unique(A,'stable')

12 years ago | 0

| accepted

Answered
how to combine 2 columns together?
A={'0%';'1%';'2%'} B={'1.0';'2.0';'3.0'} out=strcat(A,B) If your data are different from what I posted, then clarify your...

12 years ago | 0

| accepted

Answered
count occurrences of string in a single cell array (How many times a string appear)
xx = {'computer', 'car', 'computer', 'bus', 'tree', 'car'} a=unique(xx,'stable') b=cellfun(@(x) sum(ismember(xx,x)),a,'un',0...

12 years ago | 8

| accepted

Answered
create a matrix with elements as mean values of another matrix
A=[1 2 3;4 5 6;7 8 9] % Example [n,m]=size(A); B=cumsum(A)./repmat((1:n)',1,m) %or A=[1 2 3;4 5 6;7 8 9] B=bsxfun(...

12 years ago | 0

| accepted

Answered
is there a problem with my operators???
What is |f| in your function refine?

12 years ago | 0

Answered
Create table from workspace variables in R2013a?
you can use <http://www.mathworks.com/help/matlab/ref/uitable.html uitable>

12 years ago | 0

| accepted

Answered
Numerical integration Error in size of elements
Because |diff| will reduce the length of |g| , use integ=trapz(x(1:end-1),g)

12 years ago | 0

| accepted

Answered
Subtract element matrix matlab!
If you mean to remove prova(3,:)=[]

12 years ago | 0

| accepted

Answered
new to matlab, matrix question
A=ones(10,2) A(:,2)=1:10 %or A=[ones(10,1) (1:10)'] %If you want a for loop A=zeros(10,2) for k=1:10 A(...

12 years ago | 0

| accepted

Load more