Answered
want to know about different types of images and how they differ from each other?
<http://www.mathworks.com/help/matlab/creating_plots/image-types.html>

13 years ago | 0

| accepted

Answered
Tangent line to a curve at a given point
%Example t=0:0.01:10 y=sin(t) plot(t,y) %------------------------- dy=diff(y)./diff(t) k=220; % point number 220 tang=(...

13 years ago | 5

| accepted

Answered
How to test if a time series is a white noise?
At each time t you have one value, the mean of this value is not supposed to be 0. You should calculate the mean of |[x(1) x(2) ...

13 years ago | 0

Answered
How do I create (and retain) the elements of vectors using for loop?
You have used n instead of i pi_estimate(1,i)=(u+L)/2; error(1,i)=(u-L)/2;

13 years ago | 1

| accepted

Answered
Calling Functions Vectors Array
syms x c1 = ((2*n-1)*x*[relation(n-1),0] - (n-1)*[0,0,relation(n-2)])/n; c=sum(c1)

13 years ago | 0

| accepted

Answered
How to count total number of characters
a=[3 4 90 76 -877] b=num2str(a) out=numel(regexprep(b,'[\s-]+',''))

13 years ago | 1

| accepted

Answered
xlsread several numbers in one excel cell
[v,T,vT]=xlsread('ansx.xlsx') a=regexp(vT,'\s+','split') n=numel(a{1}); m=numel(a); b=reshape(str2double([a{:}]),n,m) ...

13 years ago | 1

Answered
Compiler Error: Unable to locate compiler while running sumulation
To select your compiler, type in Matlab command windows mex -setup

13 years ago | 0

Answered
Switch two row of matrix
A=[1 3 4; 2 4 5] A([1 2],:)=A([2 1],:)

13 years ago | 28

| accepted

Answered
mesh plot? surface plot? and colors of its?
Instead of mesh use surf surf(x,y,z)

13 years ago | 0

Answered
Results in workspace ? can I am reusing it again ?
what can stop you to do it?

13 years ago | 1

Answered
how to put heading for columns of matrix?
h={'I' 'J' 'K'} A= [2 3 4;4 5 4;3 8 7] M=[h;num2cell(A)]

13 years ago | 5

Answered
how can i plot graphs with various colors
[T,Y]=ode45(@solve_for_state_error_nonlinear,[0,sim_time],init_cond,options1 col=hsv(numel(T)); for jj = 1:numel(T) p...

13 years ago | 0

Answered
how to collect the coefficients of a matrix?
syms m A=[6*m 2*m] for k=1:numel(A); c(k)=coeffs(A(k)); end disp(c) % or c=subs(A,1)

13 years ago | 0

Answered
HOW CAN I PLOT THE FOLLOWING POINTS USING SURFACE PLOT?
a={[0, 0, 0.3], [1/4, 0, 1.1], [1/2, 0, 2], [3/4, 0, 1.5], [1, 0, 2]... [0, 1/3, 0.3], [1/4, 1/3, 2], [1/2, 1/3, 1.8], [3...

13 years ago | 0

| accepted

Answered
Which solver do I use to determine how many pairs of (X,Y) satisfy the inequality x^2 + y^2 < 1 ?
n=numel(x) [ii,jj]=ndgrid(1:n,1:n); z=x(ii(:)).^2+y(jj(:)).^2; idx=find(z<1) sols=[x(ii(idx))' y(jj(idx))']

13 years ago | 0

Answered
line doesnt appear on my graph
x=-10:10 y=log(abs(x-27))./(x.^2+83) plot(x,y) % you have missed a *. /*

13 years ago | 3

| accepted

Answered
Simple Matrix operation using for loop
Maybe you want y=[0.53, 0.6, 0.58, 0.68, 0.85, 0.85]; stdev=0.0523; errorsample=normrnd(0,stdev,1,1e4); out=zeros(1e4,6)...

13 years ago | 0

| accepted

Answered
How to display the coordinate of the point in the figure
ii=1:5 jj=1:5 [x,y]=meshgrid(ii,jj) figure scatter(x(:),y(:),'.') for k=1:numel(x) text(x(k),y(k),['(' num2s...

13 years ago | 4

| accepted

Answered
can I am shifting specific number in matrix ?
A=[1 2 3;4 5 6;7 8 9] % Shift A(2,1) for k=1:size(A,2)-1 A(2,:)=circshift(A(2,:),[0 1]) end

13 years ago | 1

| accepted

Answered
how to find the sum of product of elements of an array in matlab
p = [1 2 33 44 -11 -22] i = [1 2 3 4 5 6] out=sum(i.*p(i))

13 years ago | 3

| accepted

Answered
String and Vectors in one matrix 2x5
C ={'dil_PFV_CORRECTED_NaCl' 'dil_PFV_CORRECTED_HEPES' 'dil_PFV_CORRECTED_ZnCl2' 'dil_PFV_CORRECTED_DTT'...

13 years ago | 0

| accepted

Answered
model an hybrid system (continuous + discrete)
You can connect your continuous model to your discrete one by a quantizer block. The output of your continuous model is connecte...

13 years ago | 0

| accepted

Answered
Indexing a value from a vector
n=100; p(1)=14.7; for i=2:n-1 p(i)=((patm*v1+p(i-1)*vtire)/(v2+vtire)); end pg=p-patm idx=find(p>=120)

13 years ago | 0

Answered
Average velocity at a specific time interval in a matrix
M=[0 0.7943 0.0400 0.3112 0.0800 0.5285 0.1200 0.1656 0.1600 0.6020 0.2000 0.26...

13 years ago | 0

Answered
Removing a line with a specific number from a large file
A(any(~A,2),:)=[]

13 years ago | 0

| accepted

Answered
can i have a email address form mathworks?
I think this is reserved for Mathworks employees

13 years ago | 0

| accepted

Answered
ode45 function Not enough input arguments error.
Your code is correct. Can you precise where is line 5

13 years ago | 1

Answered
How can I average multiple matrices by element to create a new matrix of the same size?
M={A,B,C,D,E}; B=cat(3,M{:}) out=mean(B,3)

13 years ago | 6

Answered
Breaking a loop and displaying iteration
while p <= 120 p = ((patm*v1+p*vtire)/(v2+vtire)) end disp(p) You don't need to break, when p>120 it leaves autom...

13 years ago | 0

Load more