Series summation issue - conversion to double error
At some point, Matlab gives up & returns the indefinite summation. You can try this: clc;clear syms m tc = 3; ...

9 years ago | 0

| accepted

Plot points in a different colour depending on co ordinates
Maybe this will help as an example: clc;clear x = rand(1000,1); y = rand(1000,1); yg = y; yg(hypot(x-.5,y-.5)<....

9 years ago | 0

How to select point or lines on the graph
You can try this: clc;clear;close all x = rand(100,2); plot(x(:,1),x(:,2), 'b.') xlim([-.25,1.25]) ...

9 years ago | 0

Simplest way to add a legend to the groups of a scatter plot
gscatter(M(:),sort(M(:)),C) <<http://snag.gy/fYRHh.jpg>>

9 years ago | 3

| accepted

Quadrilateral mesh for a given set of 2d points
doc voronoi

9 years ago | 0

Create sparse matrix with zig-zag diagonal
s = spdiags(A',[0,-1],c*(n-1),c);

9 years ago | 0

How to define a cumulative distribution function with variable in it
f = @(x) normcdf(x,mu,sigma);

9 years ago | 0

| accepted

how about this L = 3.128438e+003; B= 16685; X = 2.085625e+003; Y = 0; Z = 0; Quad_1 = @(Zeta,Xi) exp(-sqrt(X...

9 years ago | 0

solving a differential equation
Using dsolve is pretty straightforward, I'll give the 1st and last terms: dsolve('2*D2y ... = ... +2*exp(-t)') you'll h...

9 years ago | 0

Using solve to solve an equation
syms x1 x2 y1 y2 d >> solve((x2-x1)^2+(y2-y1)^2-d,x2) ans = x1 - (- y1^2 + 2*y1*y2 - y2^2 + d)^(1/2) ...

9 years ago | 0

How to plot Stress distribution as polar plot - not typical polar
I think you mean that the polar plot converges to a point and does not represent the hole in the plate. Take a look a Teja's an...

9 years ago | 0

How to see resampled data after BOOTSTRAP in Matlab
For your first question, you can recover the bootstrap samples by: lead(bootsam) depth(bootsam)

9 years ago | 0

| accepted

Multiple Character MuPad Subscripts?
try (in MuPad notebook) t[hot] -t[cold]

9 years ago | 0

Generate triangle input with curve edge
you can use the answer to this question <http://www.mathworks.com/matlabcentral/answers/57604-help-with-plotting-triangular-wave...

9 years ago | 0

how can i show the plotsomhits, plotsompos to the main form of the layer

9 years ago | 0

| accepted

How To Segment Image By Color In Matlab?
start here <http://blogs.mathworks.com/steve/2010/12/17/what-color-is-green/>

9 years ago | 0

Help me find fx from gx,f(fx) ?
here is a start clc;clear syms x gx = input('gx = ','s'); fx = input('f(gx) = ','s'); a = input('f(n) = ','s');...

9 years ago | 0

imagesc fun plotting scale
colorbar % ?

9 years ago | 0

how i can have 2 points joining with quiver
x = imread('peppers.png'); imshow(x) hold quiver(50,50,100,100)

9 years ago | 0

Iterative Gauss-Newton Optimization?
these slides pretty much outline what you are trying to do (with an example of your exact equation). Show some code and highlig...

9 years ago | 0

extract valuable data from signal
Then use v = V(abs(V)>thr);

9 years ago | 0

I want to represent the PSD of three signals on a waterfall plot. How can this be done?
First of all, do not name a variable the same as a function! Change the the first psd variable to psd0 = psd(Hs,xn,'Fs',fs...

9 years ago | 0

| accepted

Pendulum problem, diff equation, error message
try changing this line [t,U]=ode45(@dubbelpendel_vis,t,[theta_1_0 0 theta_2_0 0],options,l,g); to [t,U]=ode45(@dubb...

9 years ago | 0

Euler's method for second ODE
you are very close, try defining v as v = zeros(length(t),2); v (1,:)= [5,0]; % initial conditions then write your y ...

9 years ago | 0

MatLab command that will return a matrix that contains the product of every element in two vectors of any length
V1.'*V2 ans = 20 30 60 40 60 120 60 90 180

9 years ago | 0

| accepted

Retain crisp publication quality figures
my standard answer <http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig>

9 years ago | 1

| accepted

How do I extract columns from a matrix using a loop?
for k = 2:length(matrix) var1(k-1) = matrix(k,1); var2(k-1) = matrix(k,2); end %

9 years ago | 0