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

casi 7 años hace | 1

| aceptada

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

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 0

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

casi 7 años hace | 0

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

casi 7 años hace | 0

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

casi 7 años hace | 1

| aceptada

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

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 1

| aceptada

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

casi 7 años hace | 0

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

casi 7 años hace | 0

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

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 0

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

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 1

Respondida
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

casi 7 años hace | 0

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

casi 7 años hace | 0

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

casi 7 años hace | 1

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

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 1

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

casi 7 años hace | 1

| aceptada

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

casi 7 años hace | 1

| aceptada

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

casi 7 años hace | 1

| aceptada

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

casi 7 años hace | 0

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

casi 7 años hace | 0

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

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 0

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

casi 7 años hace | 1

Cargar más