Community Profile

# Clay Swackhamer

### UC Davis

16 total contributions since 2017

View details...

Contributions in
View by

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

3 Monate ago | 0

| accepted

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

3 Monate ago | 0

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

3 Monate ago | 0

| accepted

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

3 Monate ago | 0

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

3 Monate ago | 0

| accepted

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

3 Monate ago | 2

| accepted

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

3 Monate ago | 0

| accepted

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

3 Monate ago | 0

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

3 Monate ago | 0

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

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

3 Monate ago | 1 answer | 0

### 1

Submitted

getUCDavisColors
Returns official colors for the University of California, Davis

Submitted

imageGrid
Adds a grid to an image

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

fast 2 Jahre ago | 2 answers | 1

### 2

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

fast 2 Jahre ago | 1 answer | 0