Respondida
Whats causing my length measurement to be so unprecise?
I would simply use the checker-board to get a mapping between image-coordinates and spatial coordinates. Simply put the checker-...

alrededor de 5 años hace | 0

Respondida
Highlight a specific contour level in contour plot?
The simplest way might just be to add an separate contour: [C,h] = contourf(peaks(123)); hold on emphasis_level = 0; contour...

alrededor de 5 años hace | 0

| aceptada

Respondida
I want to set a color map for each subplot.
You have to set the colormap of the axes explicitly: subplot(1,2,1) imagesc(peaks(123)) % Something more interesting axis tig...

alrededor de 5 años hace | 0

| aceptada

Respondida
Selecting all combinations of points
Have a look at the nextmultichose at the file exchange: next-combination-permutations, and combinator. HTH

alrededor de 5 años hace | 1

| aceptada

Respondida
How can I swap the phases of two fourier transforms?
Tip: Think about the difference between Cartesian and polar representation of a complet number are, also be prepared to use elem...

alrededor de 5 años hace | 0

Respondida
How to solve this system of ODE's
Write the ODEs into a function, preferably an .m-file. Something like this: SIRfcn = @(t,SIR,beta,gamma) [-beta*SIR(1)*SIR(2);...

alrededor de 5 años hace | 0

Respondida
Fitting Distribution to set of data
If you have the statistics toolbox you have the function fitdist, that should do the job. Just check the help and documentation ...

alrededor de 5 años hace | 0

Respondida
Rotating a 3D CT Reconstruction Cube About an Axis
If you are displaying the 3D-reconstruction in a 3-D axes, like you would with slice, then you can simply change to rotation of ...

alrededor de 5 años hace | 0

Respondida
Switch between two sets of coupled ODE's systems using Event
The problem is you event-functions. You should (most likely) make the check for the first component of u, since the event-functi...

alrededor de 5 años hace | 0

| aceptada

Respondida
polynomial function 3D
You have the file exchange contribution polyfitn that should do what you want. HTH

alrededor de 5 años hace | 1

| aceptada

Respondida
(Projectile Motion) Finding mass (m) drag coefficient(Cd) from a list of data
Yes. 1, Write an ODE for projectile motion in a gravitational field taking drag into account. 2, Run said ODE with ode45 for ...

alrededor de 5 años hace | 0

| aceptada

Respondida
How can I run this iteration?
This look very similar to the Crank-Nicolson method of solving a partial differential equation. In the way you've phrased the eq...

alrededor de 5 años hace | 1

| aceptada

Respondida
Increasing accuracy of eigen/eig function
The display-forma is not the full precision of the result. Try: format long before running the eigenvalue calculation.

alrededor de 5 años hace | 1

| aceptada

Respondida
defining and plotting a function in MATLAB
Your missing a closing parenthesis! p = @(theta) p0_CSF*sin(theta)*((1-exp(TR/T1_CSF)))/(1-exp(TR/T1_CSF))*(TE/T2_CSF) % I gue...

alrededor de 5 años hace | 0

| aceptada

Respondida
Problem with print command
Perhaps using scatter3 can be a QD workaround? It would be a bit fiddlier, but it might work, I have the impression that those m...

alrededor de 5 años hace | 0

| aceptada

Respondida
How to get uncertainty estimates from bayesopt?
If your objective-function models some number of "observables", and you have a set of residuals, , at the optimal values you get...

alrededor de 5 años hace | 0

| aceptada

Respondida
i need an urgent description of this code
At the matlab command-line prompt type: dbstop in compute_map Then call the function with typical input arguments, and step th...

alrededor de 5 años hace | 0

Respondida
How to Stitch 25 images with different dynamic range
You could do something like this to level the regions: dI = mean(Im(row_above,:)-Im(row_above+1,:)); % Perhaps median works bet...

alrededor de 5 años hace | 0

Respondida
How to Solve this Big System of Equations
Then you proceed by reading up on linear inverse problem theory, you can start with looking at Tikhonov regularization. In physi...

alrededor de 5 años hace | 0

Respondida
XMAX must be a floating point scalar
If you read the help for integral2 you'll see that the limits of the second integration-variable might be function-handles, but ...

alrededor de 5 años hace | 0

Respondida
Finding smaller and larger values than user's input for 2D interpolation
Have a look at the help and documentation for the functions interp2 and scatteredInterpolant. Either of those two functions will...

alrededor de 5 años hace | 0

Respondida
manipulating derivative of function handle
When you do this it is easy to confuse things when trying to take 2-3 steps at once (in my experience...). Do it stepwise: f = ...

alrededor de 5 años hace | 0

Respondida
Calling a Script within another script?
This you can do this way: if flag1 == 1 ohm end if flag2 == 1 programaultimate end HTH

alrededor de 5 años hace | 1

| aceptada

Respondida
Integrals with syms over the variable x
If you have the symbolic toolbox this can be done: syms E A0 L P c1 c2 c3 P x e1=E*A0*x * (c1*(2 - (x/L)) + c2*(4*x - 2* (x^2)...

alrededor de 5 años hace | 0

| aceptada

Respondida
resample matrix by distance
Since you have approximately 1.5 mm between samples on average you will have to do some re-interpolation of your data. This work...

alrededor de 5 años hace | 1

| aceptada

Respondida
How can i add legend to the figure in matlab?
It is often preferable to add the legend after the other adjustments. I often find that legends and colorbars doesn't perfectly ...

alrededor de 5 años hace | 0

Respondida
Solve coupled second order differential equation with ODE 45
This looks like the old nugget of wisdom "Programs are meant to be read by humans and only incidentally for computers to execute...

alrededor de 5 años hace | 0

Respondida
How to combine Space and dot expressions in Matlab?
This seems to work: ylab = sprintf('$\\dot{\\psi}%s [deg/s]$', repmat('\ ',1,12)); ylabel(ylab,'interpreter','latex'); ...

alrededor de 5 años hace | 0

Respondida
How to add tolerance for isequal?
If you had asked for tolerances for regular arrays this would've been reasonably straightforward. Something like this: isapprox...

alrededor de 5 años hace | 1

| aceptada

Respondida
4d smooth plot with slices
I suggest you use the slice function for that, this type of plots is what that function was designed for. If your Data are not...

alrededor de 5 años hace | 0

Cargar más