Answered
How can I solve the linear system of equations with Matlab?
a=1; x1=-a, x2=5a, x3=a sol=[x1 x2 x3]

12 years ago | 0

Answered
plotting x vs y but not y vs x.
Maybe because your values are very small, try this plot(x,y*1e+152)

12 years ago | 0

| accepted

Answered
Are the differential equation solvers (e.g. ode45, ode113) supported by Matlab Coder?
look at this: <http://www.mathworks.com/help/simulink/ug/functions-supported-for-code-generation--alphabetical-list.html Functio...

12 years ago | 0

Answered
Simulink Automatically Runs with Different Parameters
Look at <http://www.mathworks.com/help/simulink/ug/using-the-sim-command.html sim command> Maybe you need also <http://www.ma...

12 years ago | 0

Answered
Convert Char to Cell
s='D48-J06-W470' cellstr(s)

12 years ago | 13

Answered
Get two vectors in the workspace from strings construction ?
s=1; assignin('base','out','s') Look at <http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10...

12 years ago | 0

Answered
Rearrange 3 small matrices to a bigger one with a certain order: taking first n-rows of each of the smaller matrices after each other
m=size(A1,2); n=2 A11=permute(reshape(A1',m,n,[]),[2 1 3]); A22=permute(reshape(A2',m,n,[]),[2 1 3]); A33=permute(resh...

12 years ago | 0

| accepted

Answered
how should vector p in function place(a,b,p) be ?
The order of your poles vector doesn't matter

12 years ago | 1

| accepted

Answered
How to rearrange 3 small matrices to a bigger one with a certain order of rows without using loops
B=reshape([A1(:)' ;A2(:)'; A3(:)'],size(A1,1)*3,size(A1,2))

12 years ago | 0

| accepted

Answered
How to solve system of equation in Matlab ?
sol=solve('x + y + 2*z = 0','2*x + y -z = 0','x','y') x=sol.x y=sol.y

12 years ago | 1

Answered
Time delay creates a better feedback system??
This is not true. Adding an element hazardously can be beneficial or harmful. Adding a unit delay without any reason is not logi...

12 years ago | 0

Answered
How can I make a plot with the date and time on the x-axis?
[~,~,v]=xlsread('data.xlsx') v=v(2:end,:); x=datenum(v(:,1),'dd/mm/yyyy HH:MM:SS') y=cell2mat(v(:,2)) [idx,idx]=sortrows([...

12 years ago | 1

Answered
how to use textscan to read this text file properly
fid = fopen('file.txt'); res=textscan(fid,'%f %f %f %d %f %s %s %s') fclose(fid); celldisp(res)

12 years ago | 0

| accepted

Answered
How to make a slide windows?
A = [ 1 2 3 4 5 6; 7 8 9 10 11 12 ; 13 14 15 16 17 18 ] [n,m]=size(A) B=[A' zeros(m,m-1)] D=cell2mat(arrayfun(@(x) circshif...

12 years ago | 0

| accepted

Answered
How to extract terms from polynomial in syms
You can use <http://www.mathworks.com/help/symbolic/coeffs.html coeffs function> syms x a y= x^4 + a*x^3 + 2*a^2*x + 5; [...

12 years ago | 0

Answered
how to convert a 2D matrix to a column vector?
out=A(:) % A is your image

12 years ago | 0

Answered
2D Circle 3D Plot.
r=1 teta=-pi:0.01:pi x=r*cos(teta); y=r*sin(teta) plot3(x,y,zeros(1,numel(x)))

12 years ago | 6

| accepted

Answered
using fprintf to print same length values
b=360.000305 m=9 % fixed length out=sprintf('%9.9f',b) ii=numel(strfind(out,'.')) out=out(1:m+ii)

12 years ago | 0

Answered
how to creat .mat file ?
A=[2 4;3 5] save yourfilename A Look at doc save doc load

12 years ago | 0

Answered
Continuous plot(x,y) for discrete data points
You can use plot for continuous plot, or stem function for discrete plot. You can also use scatter function Example x=0...

12 years ago | 4

| accepted

Answered
what is the problem?
Check the sizes of ps and cl, and check if they are not less than pcol and psize

12 years ago | 0

Answered
Importing unequal text from text file
fid = fopen('file.txt'); res={}; while ~feof(fid) res{end+1,1} =fgetl(fid); end fclose(fid); a=regexp( res,'(?<=")[^",...

12 years ago | 0

Answered
how to convert arrays inside my cell array into cells?
cities ={'city1' 'city2' 'city3' 'city4' 'city5'} out=ce...

12 years ago | 0

Answered
how to convert arrays inside my cell array into cells?
out=regexp(cities,'.+','match')

12 years ago | 0

Answered
transform a vector to a cell array
c=[5 7 1 9 10]; m=3; out=arrayfun(@(x) c(x:x+m-1),1:numel(c)-m+1,'un',0)

12 years ago | 0

Answered
i have two number i want choose one of them randomly!
str={'10' '20'} idx=randi(2) out=str(idx)

12 years ago | 1

| accepted

Answered
How can I remove elements between certain limits?
A(A<0 | A>1000)=[]

12 years ago | 0

| accepted

Answered
passing GUI workspace variables to simulink model
You can use <http://www.mathworks.com/help/simulink/slref/set_param.html set_param> function Look also at <http://www.mathwo...

12 years ago | 0

Answered
convert double to string!
a=0.222833 a=sprintf('%.6f',a)

12 years ago | 6

| accepted

Answered
Solving 3 simultaneous first order differential equations
Because in |react| function you added y=zeros(3,1); Remove this line

12 years ago | 0

| accepted

Load more