Answered
Can a Matlab script be runned on a computer without Matlab and how?
You need a <http://www.mathworks.com/products/compiler/ Matlab compiler>

12 years ago | 0

| accepted

Answered
How Can I modify the fill command?
Maybe your coordinates are not correct. Look at this example fill([0 1 1 0 0],[0 0 1 1 0],'r') xlim([-2 2])

12 years ago | 1

| accepted

Answered
How extract value form an array?
Maybe you want matrix(ind,:)

12 years ago | 0

| accepted

Answered
How do I read a specific string and numerical value from a .txt file and use each one for calculation?
im=importdata('file.txt') num=im.data c2=num(:,1) % second column c3=num(:,2) % third column texte=im.textdata % first ...

12 years ago | 0

| accepted

Answered
Convert a (filename.001) to (filename.txt)
file1='02241625.001' file2=strrep(file1,'.001','.txt') copyfile(file1,file2)

12 years ago | 5

Answered
Is there a simple way to change sampling rate of multiple blocks in Simulink?
ts=0.0001 % your sample time s=find_system('untitled') for k=2:numel(s) m=s{k} try b=get_param(m,'sample ...

12 years ago | 1

Answered
How to convert 4 x 4 matrix into row matrix
A=A' A=A(:)' %Or reshape(A',1,[])

12 years ago | 0

Answered
Column-wise AND operation in all column combinations of two matrices
out=reshape(repmat(a,size(b,2),1),size(a,1),[]) & repmat(b,1,size(a,2))

12 years ago | 1

Answered
xor operation using loop
p=[1 0 1 0 1 1 1 0 0] po=p(1:2:end) out=po(1) for k=2:numel(po) out=xor(out,po(k)) end

12 years ago | 0

| accepted

Answered
converstion between two types
a=123 % a is a number b=num2str(a) % b is a string a=str2num(b) % to get back a For your case c='0101' % c is a ...

12 years ago | 0

Answered
Making two matrices have the same size
A=rand(71,1) % Example A=reshape([A;zeros(14*14-71,1)],14,14)

12 years ago | 1

| accepted

Answered
Wrong answer of xor operation
a and b are char, there is a difference betwenn xor('1','0') and xor(1,0)

12 years ago | 1

Answered
Is 2 different versions of matlab are allowed to run on same PC?
Normally you can install them in the same drive, in different directories

12 years ago | 0

| accepted

Answered
How to create equally spaced complex points
A=linspace(0,100,7); B=linspace(0,100,7); [aa,bb]=ndgrid(A,B) out=aa+j*bb

12 years ago | 0

| accepted

Answered
deleting matrix rows by criteria?
*Edit* M=[58.044 1.0831 110.19 244.98 109.95 255.78 -150.57 181.66 -445.85 ...

12 years ago | 0

Answered
how to create random combination?
repmat(randperm(3),1,7)

12 years ago | 0

Answered
reference elements in a matrix based on values in a vector
A= [5 3 2 6 7 26 4 33 3] out= reshape(A,3,[])'

12 years ago | 0

| accepted

Answered
Skipping input prompt before loop
First error: |if rem(x,2)=0| |(use ==)| second error: |x/2=x;| what is this?

12 years ago | 0

Answered
How do I create a square matrix based on user input?
M=[row1;row2;row3]

12 years ago | 4

Answered
repeat a calculation for differently named variables
The best way to do it is a=[a1 a2 a3] f=10*a+6 %instead of using many variables f1,f2 and f3, you have them in one ...

12 years ago | 2

| accepted

Answered
how can export and plot many data in the same figure
Use plot function to plot your data. Look at doc plot To export your data, you can use xlswrite % to xls file csvw...

12 years ago | 0

Answered
Find the increasing and decreasing point in array?
A=[1 2 3 2 1 4 5 6 7 5 2 0 4 5 6 10] [peaks,idx]=findpeaks(A) If you haven't a signal processing toolbox A=[5 2 3 2 1...

12 years ago | 2

| accepted

Answered
What is meant by different number of lines
A plot contains points represented by their coordinates (x,y) for 2D plot or (x,y,z) for 3D plot. If your figure contains many ...

12 years ago | 0

Answered
How to transform data from rows to columns, based on a specific column
A={'001' 1 '001' 3 '001' 8 '002' 1 '003' 5 '003' 8 '007' 2 '007' 4 '007' 7 '007' 8 '011' 6 '013' 2 '014' 1 '0...

12 years ago | 0

| accepted

Answered
how to convert demodulated binary bits into image
s=num2cell(reshape(x,8,[])',2) b=cellfun(@(x) bin2dec(strrep(num2str(x),' ','')),s); out=reshape(b,n,m); % your original im...

12 years ago | 0

| accepted

Answered
access the element of multidimensional array given the subscript array
lin_ind=sub2ind(size(A),a1,a2,a3)

12 years ago | 0

Answered
initialize a multidimensional matrix
N=6; m=4; A=zeros(repmat(m,1,n));

12 years ago | 0

| accepted

Answered
Matrix elements movement in MATLAB
a=[1 2 3 4; 5 6 7 8; 9 10 11 12; 13 14 15 16] n=size(a,2); n2=n/2; a1=a(:,n2+1:n); a2=a(:,1:n2); a1(2:2:end,...

12 years ago | 0

Answered
How do I get MATLAB to extract a specific value in an array?
idx= AA(:,2)<105 out=AA(idx,1)

12 years ago | 1

| accepted

Answered
converting M.file into simulink
You can't use a script with matlab function block. You need to define your input a d output argument to make your code a functio...

12 years ago | 0

Load more