Answered
Is it possible to send images via the sendmail function?
Why with images it will be different? You can attach any kind of file, you have just to consider the size of your file

12 years ago | 0

Answered
How to export figure to a file
h=plot(x,y) saveas(h,'FileName.jpg')

12 years ago | 3

| accepted

Answered
How can I put comma seperated values from textscan into seperate cells?
fid = fopen('file.txt'); A = fgetl(fid); A = fgetl(fid); A = fgetl(fid); for i=1:12 C{i} = fgetl(fid); end D=regexp(...

12 years ago | 0

Answered
How to store a domain in a matrix?
xcoords=-0.2:0.01:1.2; ycoords=-0.7:0.1:0.7; [x,y]=meshgrid(xcoords,ycoords); out=[x(:) y(:)]; size(out)

12 years ago | 0

| accepted

Answered
How can i Resample?
Use interp1

12 years ago | 0

Answered
How do I make a master script that can call other scripts?
In your main script write script1 % will run script1 script2 % will run script2 script3

12 years ago | 1

Answered
how to read a .txt file without change character of .txt file , it only change the first and last numeric data of the .txt file
class='005' trial='01' filename=sprintf('%st%s.txt',class,trial)

12 years ago | 0

| accepted

Answered
replace array numbers in places that are not the indices of another array
array_1=[4 7 22 44 13 4 1 9 6 0 5 77 45 12]; array_2=3:7 array_3=zeros(size(array_1)) array_3(array_2)=array_1(array_2)

12 years ago | 0

| accepted

Answered
How to use data in a structure
If your struct variable is A B=A.data C=A.textdata

12 years ago | 0

| accepted

Answered
Using Matlab to link to a web link and print a text file
Use urlread

12 years ago | 0

| accepted

Answered
Conditional case on strfind
x ={ 'my height is 160' 'my height is 163' 'my height is 167' 'my height is 180'}; num=regexp(x,'[0-9]+(\.)?[0...

12 years ago | 0

Answered
fill row of matrix
d=[1 3 5 6 7 8 1 4 5 10], e=zeros(5,10) e(1,1:4)=d(1:4)

12 years ago | 0

| accepted

Answered
Run Simulink simulation from user defined function within its workspace
<http://www.mathworks.com/help/simulink/ug/matlab-function-block-editor.html#bqgwvsq-1 Ports and Data Manager>

12 years ago | 0

Answered
Plotting elements in a cell array
load str; data=cellfun(@str2num,str); plot(data)

12 years ago | 0

Answered
EASY Question: How to find an element of a matrix?
B=A(1:7) Look at <http://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html Matrix Indexing>

12 years ago | 1

| accepted

Answered
How to find correlation between two time series
corr(A,B) You need a Statistics Toolbox

12 years ago | 0

Answered
add result to next entry of the column
out=25+cumsum(1:6)

12 years ago | 0

Answered
Assigning Simulink parameters values to the Model Workspace using command line or scripting
If you mean how to change your block parameter, you can use set_param doc set_param

12 years ago | 0

| accepted

Answered
How can I insert rows of NaN into a vector of discontinuous values
datavec = [1992 1994 1995 1996 2000] refvec = [1992 1993 1994 1995 1996 1997 1998 1999 2000] newvec = nan(size(refvec)) ne...

12 years ago | 2

Answered
retrieve the first digit of numeric cells in an matrix
m=[22; 35; 56] a=num2str(m) b=str2num(a(:,1)) or m=[22; 35; 5600] floor(m./(10.^(floor(log10(m)))))

12 years ago | 2

| accepted

Answered
How to convert characters array into integer number array
str='I have a text file in which all the contents are characters like a,b,c,d…z . Can somone explain how to convert theses alp...

12 years ago | 0

| accepted

Answered
Increasing the length of an array
A=[1 2 3 4 5 6] B=[4 10]; B=[B zeros(1,numel(A)-numel(B))] Or if you don't know which is the smaller B1=[B zeros(1,n...

12 years ago | 3

| accepted

Answered
Write a matrix to a text file
dlmwrite('file.txt',your_matrix) or dlmwrite('file.txt',your_matrix,'delimiter','\t','newline','pc')

12 years ago | 1

| accepted

Answered
How can I extract a words with separate letters from a text?
file1=' o n l i n e U N I V E R S I T Y Obtain Diploma.' f1=regexp(file1,'(?<=\s)(\w\s)+','match') f1(cellfun(@numel,f1)==...

12 years ago | 0

| accepted

Answered
How can I create a bigger matrix/array, having 200 zeros matrices in it?
َََA=arraufun(@(x) zeros(256),1:200,'un',0)

12 years ago | 1

Answered
Plotting array elements in different colors
x=1:1500; y=rand(1,1500); plot(x(1:500),y(1:500),'r') hold on plot(x(501:1000),y(501:1000),'b') plot(x(1001:1500),y(1001:...

12 years ago | 0

| accepted

Answered
Seperate column into more columns: 90740x1 double array into 1511x64 something array
Use reshape reshape(A,1511,64)

12 years ago | 0

Answered
i want to count the occurrences of words in a text file.
fid = fopen('file.txt'); s=textscan(fid,'%s') fclose(fid); str=s{:} [ii,jj,kk]=unique(str) freq=hist(kk,(1:numel(jj))')' ...

12 years ago | 1

Answered
Selection of 3 large value from a matrix
A=[1 3 5 8 31 7 4 18] [ii,jj]=sort(A,'descend'); A(jj(4:end))=0 Or A=[1 3 5 8 31 7 4 18] [ii,jj]=sort(A,'descend');...

12 years ago | 0

| accepted

Answered
Creating Matrix using nested for loop?
Maybe you want this n=5; m=6; out=cell2mat(arrayfun(@(x) x:x:n*x,(1:m)','un',0))

12 years ago | 1

Load more