Answered
How can i use wiener filter to remove this sinusoidal noise?
You have to think about what type of noise you have - that is is it additive random intensity with no correlation on pixel-to-pi...

7 years ago | 1

| accepted

Answered
How to plot 3D matrix in form of cube
Use the slice function. HTH

7 years ago | 0

| accepted

Answered
How can I differentiate a symbolic function?
After doing this syms t syms l1(t) syms l2(t) f = ... % your rather lengthy expression I had no problem getting an output f...

7 years ago | 0

Answered
How to solve a system of coupled nonlinear differential equations using ODE45
That shouldn't happen if you code the F-function right and give ode45 the correct initial conditions. For a single particle-pend...

7 years ago | 0

Answered
Unwrap picture of a cylinder (Distortion correction)
What distortions are you thinking about? The fact that you have refraction of light at the surfaces of your cylinder? Are you ai...

7 years ago | 0

Answered
The entries in tspan must strictly increase or decrease.
What ODE are you trying to integrate over such a short period of time? What is your time-unit? tFinal-tInitial is on the order o...

7 years ago | 1

| accepted

Answered
Solve 100 equations, each with a different amount of unknowns in matlab
What you have (shown) is a linear system of equations, with 100 equations and only 9 unknowns. This is exactly what matlab is de...

7 years ago | 0

| accepted

Answered
Putting a code open source
Put an open-source copyright/copyleft license on your code, look for example for GPL version 3, or other open-source license (wi...

7 years ago | 1

| accepted

Answered
Why doesn't legend distinguish colors?
When I intend to use legend I always take care of having the handles to the plotted objects available for the legend call: ph1 ...

7 years ago | 0

Answered
Singular matrix and MATLAB inversion
Are you absolutely sure you haven't turned off the warnings, in your startup.m or elsewhere?

7 years ago | 0

Answered
The last entry in tspan must be different from the first entry. ODE45
tInitial and tFinal differ in the ~22nd decimal. That is not much for a double-precision representation. Why not run the simulat...

7 years ago | 0

| accepted

Answered
Can we use for loop in bisection method for root finding instead of while loop
Yes it is possible, but why? You could use the break trick to exit the for-loop at convergence, but why bother, code should be c...

7 years ago | 0

Answered
Illegal use of reserved keyword
The curly brackets are used to enclose cell-arrays (lists) in matlab, not start and end loops and if-clauses, matlab uses nothin...

7 years ago | 0

| accepted

Answered
integration over a circle VS rectangle
Dont forget the basics: dxdy = rdrdtheta HTH

7 years ago | 0

| accepted

Answered
Copy the values of multiple fields in a structure to another structure at once
Maybe there could be faster solutions - but regardless somewhere looping over the fields will have to occur, and unless this is ...

7 years ago | 1

Answered
Plot a Matrix with elements of only 1 and zeros
Something like this ought to do it: scatter(column,row,23,value,'filled') colormap([1 0 0;0 1 0]) caxis([0 1]) HTH

7 years ago | 0

Answered
Generating a filled contour colormap
Instead of using surf you can use pcolor, then you get the "from-above-view" automatically. You shold have a function for doing ...

7 years ago | 0

Answered
How to solve nonlinear 2nd order differential equation?
Convert it to 2 coupled first-order. To do that first solve for d2x/dt2. Then it is straightforward: function dxdtd2xdt2 = your...

7 years ago | 1

Answered
How to solve a coupled nonlinear second order equations with a loop?
In your ode_coupled_chain you will overwrite dz(i+3) and the other higher dz components since you increment i with 2 in the for-...

7 years ago | 0

| accepted

Answered
can someone help me get the MATLAB code
You have the code. They are the lines after the '.' after the list-numbers. If this is your question, then your first point alo...

7 years ago | 1

Answered
writing normally distributed error code
Have a look at: randn, and normrnd. HTH

7 years ago | 1

| accepted

Answered
I am very new to matlab. Please state Why I am getting Subscripted assignment dimension mismatch error
In my version of matlab I have to assign strings using the string function ylabel_graph(1) = string('dispalcement'); ylabel_gr...

7 years ago | 1

| accepted

Answered
solving coupled differential equations
For symbolic solutions look at the help for dsolve, for numerical soutions convert the 2nd order ode to 2 coupled first-order od...

7 years ago | 1

| accepted

Answered
Breaking up large coupled ODE system into smaller parts that can be used in ode solver by calling "sub" ode functions?
Sure, why not. Maybe something like this will work for your "atomic" ode-functions: function dydt = dfunc_atom(t,y,yothers,para...

7 years ago | 0

Answered
How to Generate random sampling from a probability distribution function generated by kernel density estimation?
Either you do something like this (Untested-unverified-off-the-cuff^TM): % Assuming pdfKD values at x: cdfKD = cumtrapz(x,pdfK...

7 years ago | 0

Answered
Circular indexing of a 2D array
Something like this solves this problem: for i=1:3 for j=1:4 if i==1 && j==1 T(i,j)=Tp(i,1 + mod(4*1...

7 years ago | 0

| accepted

Answered
how to convert int32 to real number
X_real = double(X_int32); HTH

7 years ago | 0

| accepted

Answered
Image color and brightness correction
Try this functionality: rgb-histogram-matching HTH

7 years ago | 0

Answered
Is Walter Roberson a real person, or is he some kind of Matlab AI robot?
Well, I've seen signs that would be surprising in an AI robot - so my guess is actual human.

7 years ago | 1

Load more