Community Profile

# Clay Swackhamer

### UC Davis

19 total contributions since 2017

#### Clay Swackhamer's Badges

View details...

Contributions in
View by

Answered
How to use nlinfit for a function with a nested infinite sum?
Hi Ishan and Chris, I attached an example. If you figured this out already I would be very grateful to see how you did it, sinc...

29 jours ago | 0

Submitted

Image trace
Lets you trace an image

4 mois ago | 3 downloads |

Question

Change yticks using a stacked plot
Hello, I am using the stackedplot function to display multiple series of data that share the same x axis. I would like to chang...

11 mois ago | 1 answer | 0

### 1

answer

Answered
How can i shift plot?
p=[1/6 1/6 1/6 1/6 1/6 1/6]; q= conv(p,p); r=conv(q,p); rr=conv(r,p); rrr=conv(rr,p); rrrr=conv(rrr,p); subplot(2,2,1)...

plus d'un an ago | 0

| accepted

Answered
Write a MATLAB®
Hi Pamela, See https://www.mathworks.com/help/matlab/ref/plot.html and also https://www.mathworks.com/help/matlab/ref/fplot....

plus d'un an ago | 0

Answered
Simple moving average code for forecasting stock prices
Hi Megawaty, Check out https://www.mathworks.com/help/matlab/ref/movmean.html Here is an idea: time = 1:1:100' %100 trading...

plus d'un an ago | 0

| accepted

Answered
How to make an image straightener like that of cam scanner app?
Hi GMD, Check out https://www.mathworks.com/help/images/ref/imrotate.html Here is a bit of code where I implemented this type ...

plus d'un an ago | 0

Answered
fitting a parabola giving unreasonable answer
Two things: I changed your independent values (r) to something that is not so small. Second, I made your equation more simple. I...

plus d'un an ago | 0

| accepted

Answered
How to save animated plots
%% Make some data t = 1:0.1:2*pi y = sin(t) %% Initialize video myVideo = VideoWriter('myVideoFile'); %open video file my...

plus d'un an ago | 6

| accepted

Answered
How to plot a complex power spectrum using MATLAB?
This might have what you are looking for https://www.mathworks.com/help/matlab/ref/fft.html You could transform the data from...

plus d'un an ago | 0

| accepted

Answered
need help in matlab graph
SINR = rand(15,30) %15 x 30 matrix of random numbers Pt = linspace(-30, 30, 15) %create a vector from -30 to 30 with 15 entries...

plus d'un an ago | 0

Answered
problem with determining the area of an object in a binary image
You could try running the same code, except instead of using bwarea you could try summing all the pixels in the image. Since in ...

plus d'un an ago | 0

Answered
Where can I find the interactive signal processing tutorial?
This one is the official introduction to the toolbox https://www.mathworks.com/products/signal.html And here is an option from...

plus d'un an ago | 0

Question

Simple compression of cylinder- results of finite element model don't make sense
I am trying to simulate the steady state compression of a cylinder using finite element analysis. The model that I have runs, bu...

plus d'un an ago | 1 answer | 0

### 1

answer

Submitted

getUCDavisColors
Returns official colors for the University of California, Davis

presque 2 ans ago | 2 downloads |

Submitted

imageGrid
Adds a grid to an image

presque 2 ans ago | 3 downloads |

Question

Perimeter used by regionprops
Hi all, I am using the output of bwconncomp as an input to regionprops to calculate some values for blobs in a binary image. ...

environ 3 ans ago | 2 answers | 1

### 2

answers

Question

Modify line style with insertShape
Hi all, I wrote a function to make a grid on an image. I can either draw the grid on top of the image or burn/insert it into ...

environ 3 ans ago | 1 answer | 0

### 1

answer

Question

Vectorize loop for image manipulation
I have a black and white image (Ibw), and I want to take a circular region from it, and place it on a white background. I made...

plus de 3 ans ago | 1 answer | 0

answer