Respondida
Solving eigenvalue problem with solve_bvp
In the mat4ode function the variable Ra is undefined. How would matlab know what value to give it? What dimension should it have...

alrededor de 4 años hace | 0

Respondida
how to denoising rgb image?
Well nothing but a simple goof. You simply swapped the green and blue channels in this line: restored_image = cat(3, out_redCha...

alrededor de 4 años hace | 0

| aceptada

Respondida
contour3-With 3 dimensions input arguments
Maybe you get what you need with the slice function, or perhaps isosurface. From my naive understanding we can draw iso-contours...

alrededor de 4 años hace | 0

Respondida
How to generate a rhythm that is based on an algorithm in matlab?
1, You search for some description of the algorithm that allows you to implement it. For example 5 minutes on googles first page...

alrededor de 4 años hace | 0

Respondida
How to deblur an image in frequency domain?
Most likely you have a problem with division-by-zero in the: Inv = Conv./avgFilter_fft; step. If you try to set those componen...

alrededor de 4 años hace | 1

| aceptada

Respondida
Find Angle using point coordinates?
You could use the general formulas for angle between vectors found here: angle-between-two-vectors-in-3d, which is a good answer...

alrededor de 4 años hace | 1

| aceptada

Respondida
How to randomly propagate 100 random targets with random headings (uniformly sampled over [0, 2π])
Yes. The image is constructed with pixel-resolution, that is kind of the definition of a pixel-based image sensor. You model the...

alrededor de 4 años hace | 0

Respondida
How can I extend polyfit line on loglog scale ?
When you calculate yhat you only do that for the first and last element of your x-values that you use for the fit. You should tr...

alrededor de 4 años hace | 0

| aceptada

Respondida
Matlab 2020b "Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters."
It might well be that the "ˆ" symbol have been encoded to some othe character than "^" (I'm completely un-interested in characte...

alrededor de 4 años hace | 2

Respondida
Is there a way to compress non-integer data without loss using the CFITSIO library?
If you have data in double (32 or 64 bit-format), and want to keep it that way, dont' cook up your own casting-trickery - set th...

alrededor de 4 años hace | 0

Respondida
the differential equations by ode45
Start with the matlab on-ramp material. To find that search for "onramp" on the web-site. After doing that you should be able to...

alrededor de 4 años hace | 0

| aceptada

Respondida
Spectrogram: HOW TO CONTROL ZERO-PADDING for individual fft's of an ULTRA LONG sequence
Yes, in principle, zero-padding is used by spectrogram if nFFT is larger than the window-length. HTH

alrededor de 4 años hace | 0

Respondida
Calculus limits with MATLAB
Well get to it. If you are very new to matlab then have a look at On-ramp material - which should have you up and running faster...

alrededor de 4 años hace | 0

| aceptada

Respondida
Remove edges from concave triangulation
You problem is dificult in principle. How are the unwanted triangles supposed to be determined? In a general enough case that yo...

alrededor de 4 años hace | 0

Respondida
Plot spectra and spectrogram of acceleration data
Provided that your data actually spans 5 minutes your sampling-frequency is not 48 kHz, but rather 800 Hz. That changes the outp...

alrededor de 4 años hace | 0

| aceptada

Respondida
Which optimizer to use for SIR Epidemic Model?
One recommendation that you're not likely to like: The constant transition-probability of recovering/dieing has to be unbiologic...

alrededor de 4 años hace | 1

Respondida
to use tiledlayout to arrange pre-existing axes ?
When I need control of the figure layout and design I always save away the handles to "everything" - which makes it at least som...

alrededor de 4 años hace | 0

| aceptada

Respondida
How do i transform this equation system in to three dimensions?
Since this looks like the equations of motion for a solid body falling in a constant gravitational field with some velocity-depe...

alrededor de 4 años hace | 0

Respondida
Change the markers color in the figure after plotting
You should be able to change the color of the points by using the hp output: set(hp(1),'color',[0.95,.3,0.1]) set(hp(2),'color...

alrededor de 4 años hace | 1

Respondida
learning to create functions in matlab(R2019a) but every time i try to do so , The value assigned might be un used (used a)create the file in code file, Am a beginner
Ok, here's what you're missing in this example: function a = myRand a=1+rand(3,4)*9; end Now your function has an output-va...

alrededor de 4 años hace | 0

Respondida
Convex Hull without the in-built function.
Take it step by step. 1, put points on paper. 2, work out how to step from the point with the smallest y-value to the next poi...

alrededor de 4 años hace | 1

Respondida
Newton Iteration using symbolic function
Since you use symbolic variables and do the calculations symbolically you will get a symbolic answer. Here you should convert y...

alrededor de 4 años hace | 0

Respondida
If I want to plot arrow in patch, what codes do I have to use? And is there any method by using quiver and patch together?
Can't you simply use either of these two file exchange contributions: arrow, arrow3. These are typically the functions I use whe...

alrededor de 4 años hace | 0

| aceptada

Respondida
Find Centroid of area with 4 pouints
You could make good use of this little piece of information: Centroid of a finite set of points HTH

alrededor de 4 años hace | 0

Respondida
Problem taking curl of a vector field.
If your sampling-points fall on a nice plaid regular grid then just use reshape to convert X, Y, U and V into 2-D matrices and e...

alrededor de 4 años hace | 0

Respondida
Using symbolic math to retain accuracy. Arrays
Factor out the average of each row of C. That should give you one term of the row-averages of C and then the sum of the logs of ...

alrededor de 4 años hace | 0

Respondida
How to find index in multi-dimension matrix
You can do this in 2 simple steps: [xMax,idx1D] = max(X(:)); [i1,i2,i3,i4] = ind2sub(size(X),idx1D); HTH

alrededor de 4 años hace | 0

| aceptada

Respondida
Make an double integral function
By putting the product inside the first pair of square brackets you've made the formula look a little bit confusing - since the ...

alrededor de 4 años hace | 0

| aceptada

Respondida
adding random noise to an image for N times
The question is a bit too vague to be precisely answered. Image noise typically have some specific probability-distribution, pos...

alrededor de 4 años hace | 0

Respondida
Picking data from graph?
If you have the signal S, the corresponding sample-times t and the start and stop-times t1 and t2 you can select the signal in t...

alrededor de 4 años hace | 0

| aceptada

Cargar más