Answered

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; ...

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; ...

7 years ago | 0

| accepted

Answered

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)<....

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)<....

7 years ago | 0

Answered

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]) ...

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]) ...

7 years ago | 0

Answered

Simplest way to add a legend to the groups of a scatter plot

gscatter(M(:),sort(M(:)),C) <<http://snag.gy/fYRHh.jpg>>

Simplest way to add a legend to the groups of a scatter plot

gscatter(M(:),sort(M(:)),C) <<http://snag.gy/fYRHh.jpg>>

7 years ago | 3

| accepted

Answered

Create sparse matrix with zig-zag diagonal

s = spdiags(A',[0,-1],c*(n-1),c);

Create sparse matrix with zig-zag diagonal

s = spdiags(A',[0,-1],c*(n-1),c);

7 years ago | 0

Answered

How to define a cumulative distribution function with variable in it

f = @(x) normcdf(x,mu,sigma);

How to define a cumulative distribution function with variable in it

f = @(x) normcdf(x,mu,sigma);

7 years ago | 0

| accepted

Answered

Error with ’quad‘！！！Doubleintegral?

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

Error with ’quad‘！！！Doubleintegral?

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

7 years ago | 0

Answered

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...

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...

7 years ago | 0

Answered

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) ...

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) ...

7 years ago | 0

Answered

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...

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...

7 years ago | 0

Answered

How to see resampled data after BOOTSTRAP in Matlab

For your first question, you can recover the bootstrap samples by: lead(bootsam) depth(bootsam)

How to see resampled data after BOOTSTRAP in Matlab

For your first question, you can recover the bootstrap samples by: lead(bootsam) depth(bootsam)

7 years ago | 0

| accepted

Answered

Multiple Character MuPad Subscripts?

try (in MuPad notebook) t[hot] -t[cold]

Multiple Character MuPad Subscripts?

try (in MuPad notebook) t[hot] -t[cold]

7 years ago | 0

Answered

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...

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...

7 years ago | 0

Answered

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

<http://blogs.mathworks.com/pick/2012/05/04/plot-google-map/>

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

<http://blogs.mathworks.com/pick/2012/05/04/plot-google-map/>

7 years ago | 0

| accepted

Answered

How To Segment Image By Color In Matlab?

start here <http://blogs.mathworks.com/steve/2010/12/17/what-color-is-green/>

How To Segment Image By Color In Matlab?

start here <http://blogs.mathworks.com/steve/2010/12/17/what-color-is-green/>

7 years ago | 0

Answered

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');...

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');...

7 years ago | 0

Answered

how i can have 2 points joining with quiver

x = imread('peppers.png'); imshow(x) hold quiver(50,50,100,100)

how i can have 2 points joining with quiver

x = imread('peppers.png'); imshow(x) hold quiver(50,50,100,100)

8 years ago | 0

Answered

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...

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...

8 years ago | 0

Answered

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...

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...

8 years ago | 0

| accepted

Answered

How can I do a contour plot of velocity, having x, y coordinates and its length on x and y axis?

contour(x,y,hypot(vx,vy))

How can I do a contour plot of velocity, having x, y coordinates and its length on x and y axis?

contour(x,y,hypot(vx,vy))

8 years ago | 0

Answered

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...

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...

8 years ago | 0

Answered

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 ...

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 ...

8 years ago | 0

Answered

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

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

8 years ago | 0

| accepted

Answered

Retain crisp publication quality figures

my standard answer <http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig>

Retain crisp publication quality figures

my standard answer <http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig>

8 years ago | 1

| accepted

Answered

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 %

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 %

8 years ago | 0

Answered

what can I do an aortic pressure in matlab?

you can use <http://www.mathworks.com/matlabcentral/fileexchange/7173-grabit *Grab It*> from the file exchange to get data from ...

what can I do an aortic pressure in matlab?

you can use <http://www.mathworks.com/matlabcentral/fileexchange/7173-grabit *Grab It*> from the file exchange to get data from ...

8 years ago | 0