Answered
How do you extract odd columns and odd rows from an nxn matrix?
r= A(1:2:end,:) c=A(:,1:2:end)

12 years ago | 10

Answered
Remove parentheses with regexp
a ='0.00 (578)'; regexp(a,'(?<=\()[\d.]+(?=\))','match')

12 years ago | 0

| accepted

Answered
Changing matrices form, echelon the matrices
A=[0 1 0 0 0 0 1 1 0 0 0 1 0 0 0 0] %For the first case n=size(A,1) out=[A(1,:)';cell2mat(...

12 years ago | 0

| accepted

Answered
how to remove odds from a dataset
v=[1 2 3 4 5 6 7 8] out=v(2:2:end)

12 years ago | 0

Answered
How to pass an cell array as input to a function
If needed represent an array function [averagedSignal]=shift_and_Average(a,needed,p5,p4,p3,p2) if (a==1) p5...

12 years ago | 0

Answered
No file Name specified
When you save your figure, you have to specify its name. You can also save it i line command hgsave(gcf,'file.fig')

12 years ago | 0

Answered
How to simulate a complex-valued space state system in simulink or by command?
a=[ 0.364-0.0489i 0.771+0.0254i 0.00995 -1.28-0.0988i 0.538+0.0514i 0.01 -1.3-0.0998i -0.467+0.0519i 0] b...

12 years ago | 0

| accepted

Answered
How to delete a particular array and again in the next step create it as a new array in a for loop
Use your_array=[] Or clear Your_array

12 years ago | 0

| accepted

Answered
how can I save a file as .png format?
f=dir('*.fig') % or adsd your folder for k=1:numel(f) name=f(k).name; h=hgload(name); new_name=strrep(name,'.f...

12 years ago | 1

Answered
how can I get the path to a folder from user and open files with .fig format?
Use uigetfile [file,folder]=uigetfile('*.fig'); filename=fullfile(folder,file)

12 years ago | 1

Answered
very simple plotting question EASY PLOT HELP
x = 1:10000:400000; for i = 1:numel(x) [T,P,rho] = finddata(x(i)); y(i) = T+1; w(i) = P+1; z(i) = rho+1; ...

12 years ago | 0

Answered
How can I factorise 4th order Transfer functions?
Look at this example sys=tf([-0.64 -0.4101 0.00783],[1 1.489 0.7681 0.09455 0.0424]) You can find the poles and zeros ...

12 years ago | 0

| accepted

Answered
MATLAB cell to matrix
You can do this M={1 [7 8] 3 [ 1 5 6] 0 [1 5 8] 2 10 } n=cellfun(@numel,M) m=max(n); N=cell(m,numel(M)) for k=1:numel(M...

12 years ago | 0

| accepted

Answered
Concatenating a range of variables into a 3D array
example x1=10; x2=20; x3=30; x4=40; eval(['cat(3' sprintf(',x%d',1:4) ')']) But the problem is, how did you come up ...

12 years ago | 1

| accepted

Answered
How to loop through a dataset and skip every other row?
If M is your matrix out=M(1:2:end,:)

12 years ago | 0

Answered
How to replace the elements of a matrix with another matrices
repmat((1:4)',1,16)

12 years ago | 0

Answered
Reading certain parts of text file
a=importdata('file.txt') data=a.data

12 years ago | 0

Answered
Delete rows of a matrix
Try this A=[8 9 10 12 5 4 3 2 10 8 6 4] m=rank(A); n=size(A,1); k=0; idx=[]; while k<n...

12 years ago | 0

Answered
Saving a matrix variable in Embeded Matlab Function
You can declare your matrix as <http://www.mathworks.com/help/matlab/ref/persistent.html persistent> Example function y=...

12 years ago | 0

Answered
Sum over columns excluding rows
A = [1 2 3 4; 2 4 6 0; 3 1 2 5; 1 1 1 3] out=fliplr(cumsum(fliplr(A),2))

12 years ago | 0

Answered
How to find unique rows with unordered elements?
A = [1 2 3; 2 4 6; 3 1 2; 1 1 1] [idx,idx]=unique(sort(A')','rows','stable'); B=A(idx,:)

12 years ago | 0

| accepted

Answered
1.1 + 0.1 == 1.2 returns false
<http://www.mathworks.com/matlabcentral/answers/57444-faq-why-is-0-3-0-2-0-1-not-equal-to-zero>

12 years ago | 1

Answered
Find links of website
You can use urlread with regexp function

12 years ago | 0

| accepted

Answered
plotting a 1*1 matrix
The size of t and current aren't the same. Look at this example t=1:0.001:10; current=sin(t); plot(t,current) When y...

12 years ago | 0

Answered
Converting a symbolic matrix to numeric
Use <http://www.mathworks.com/help/symbolic/subs.html subs function>

12 years ago | 0

Answered
for loop like c++ in MATLAB
Each language has its advantages and disadvantages, but sometimes, if the user doesn't know how to use it, doesn't mean the lang...

12 years ago | 0

Answered
Working with Dates,Problem with syntax
Example s={'01-01-2013'; '11-01-2013' '21-01-2013' '22-03-2013' '01-04-2013' '21-05-2013'} d=datevec(s,'dd-mm-yyyy');...

12 years ago | 0

Answered
cell, I want to merge cell
z={{1 2 3},{4 5 6 7}} zz=[z{:}]

12 years ago | 0

| accepted

Answered
steer and array functions did not work with my matlab
steer is not a built-in function, get it from FEX <http://www.mathworks.com/matlabcentral/fileexchange/19030-smart-antenna-syst...

12 years ago | 0

| accepted

Answered
Sorting an array in matlab
col=7 out=sortrows(A,col) Example A={1 'A' 'Baldwin';2 'B' 'Walton';3 'C' 'Jackson'} col=3 out=sortrows(A,col)

12 years ago | 0

Load more