Submitted


check4nameclashes
checks for name-clashes between m-files found in a directory and its subdirectories and files in directories on the the current ...

5 years ago | 1 download |

0.0 / 5

Answered
Changing a double type cell in "HH:MM:SS" format.
Well you get an output from datestr: datestr(4.099215427200000e+09,'yyyy mm dd HH:MM:SS') ans = '3270 08 21 04:47:59' Yo...

5 years ago | 1

Answered
Symbolic sin(pi) in Matlab 2020 a not simplify
That is because your definition of pi as a symbolic variable that hides the built-in pi. Try: which pi -all or: sym x pi = 4...

5 years ago | 1

Answered
How can I solve the following derative problem in Matlab ?
When you assign: t = -1; t becomes a standard double scalar, and is no longer a symbolic variable. So that's where you go comp...

5 years ago | 0

| accepted

Answered
Problem with the latex eps format
When you write to postscript-format matlab (still) makes "clever" choises about how to write the file. Try to enforce vectorized...

5 years ago | 1

| accepted

Answered
converting from sym to double
Most of the time I want to convert a symbolic expression to something else I use matlabFunction: syms s x real f = int(cos(s^2...

5 years ago | 0

Answered
How can I solve non-linear differential equations?
The ODE-integrating functions of matlab are well suited to solve this kind of problems. Have a look at the help and documentatio...

5 years ago | 0

Answered
Finding Dominant Frequency and Phase using FFT
Change your function to cos((2*pi*fmod*t) + pdelay) and re-run your code-snippet. Also check what happens when you reduce your ...

5 years ago | 0

| accepted

Answered
Fourier Series of a function the is exponential
Think about this question like this: What is the Fouriertransform of a harmonically varying signal with constant amplitude and ...

5 years ago | 0

Answered
Simulate image data representative of a real experiment
If it is enough for you to put particles at discrete pixel positions you could do something like this: nP = 123; dIm = spallo...

5 years ago | 0

| accepted

Answered
Distortion Correction without any camera information
To my understanding you are supposed to fit the polynomials to the full set of points, not row-by-row but all 36 points. That sh...

5 years ago | 0

Answered
Isnan use inappropiate?
If you do the blurring this way you can (or should, perhaps even "have to") slightly modify your indexing, this can be conventie...

5 years ago | 1

Answered
Getting linear results from ODE45 instead of exponential
When you look at the result you have to start looking at how big the different components of the forces are along the trajectory...

5 years ago | 0

Submitted


ratio_of_uncorrelatednormalpdf
RATIO_OF_UNCORRELATEDNORMALPDF probability density function of ratio between two uncorrelated normal distributed variables.

5 years ago | 1 download |

0.0 / 5
Thumbnail

Answered
How to find integral over 2D image
If you want to have dW at the same resolution as your original image, just add the four terms together. If you want some local s...

5 years ago | 0

Answered
Intersection of a 2D polygon in 3D and a straight line
OK, you'll get a bit of pseudo-code/algebra, that solves most of the problem. Lets write the equation for the plane as: that ...

5 years ago | 1

| accepted

Answered
Gaussian envelope on the diagonal of a matrix
Something like this: [x,y] = meshgrid(0:32); M = exp(-(x-y).^2/4^2); imagesc(x(1,:),y(:,1),M) Adjust width as you see fit. ...

5 years ago | 1

Answered
How do I add scale markers to the legend, to indicate values for the sizes of points in a scatter plot?
I'd do something like: sz = 12:2:24; % your suitable selection for your dimentionC-mapping-to-size y4size = linspace(45,110,...

5 years ago | 0

| accepted

Answered
Need help with perimeter of polygon
Have a look at the help and documentation of the convhull function. HTH

5 years ago | 0

Answered
Differentiate with respect to a symbolic function
When I've used the Euler-Lagrange method I've used this tool: Euler-Lagrange tool (that handles this). If you need to solve a pr...

5 years ago | 1

Answered
Change folder that Matlab saves session information
Which version are you using? How much space does .matlab take? On my machine I have subdirectories for 2013a, 2015a and 2020a,...

5 years ago | 0

| accepted

Answered
Cannot calculate gradient of contour plot
If you modify your call to gradient to: [FU, FV] = gradient(F, diff(y(1:2)), diff(x(1:2))); You get a more reasonable set of q...

5 years ago | 0

| accepted

Answered
I would like to take double integral over standard normal distribution but it does not work.
Your problem might be that the symbolic toolbox have no way of knowing that your correlation is between -1 and 1. If you try the...

5 years ago | 0

| accepted

Answered
I tried to run my script written in 2017a in R2020b: Error using load Unable to read file 'coast.mat'. No such file or directory. Any idea on how to solve it?
Well you will somehow find the missing file. The reason you now get the error is because matlab-2020b for some reason cannot fin...

5 years ago | 0

Answered
Why am I warned about defining variables in a nested function, when I don't?
Because nested functions share the name-space with its parrent function. That is all variables in the parrent function are avail...

5 years ago | 4

Answered
How to write a video from png files and/or matlab figures
Try modifying your call to writeVideo to this: currFrame = getframe(gcf); writeVideo(vidObj,currFrame); HTH...

5 years ago | 0

| accepted

Answered
how do i make this contour plot more presentable
The crossing contours confuse/worry me, are you adding additional contours from another data-set ontop of your contourf-plot? ...

5 years ago | 0

| accepted

Answered
Contourf fill smaller instead of larger
You "simply" have to create a colormap that is white (or suitable levels of pale, or black in case of that making more esthetic ...

5 years ago | 0

Answered
Is it possible to determine the angle of rotation for this graph?
If you have your signals in y1 and y2 you can try to use circshift with an incremental shift until you see a reasonable fit. You...

5 years ago | 0

| accepted

Answered
How to create 2D Polar (r, theta) mesh?
What's not good enough with something like this: n_phi = 15 phi = linspace(0,pi/2,n_phi+1); % should give you 15+1 edges and 1...

5 years ago | 1

Load more