Réponse apportée
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-...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Selecting all combinations of points
Have a look at the nextmultichose at the file exchange: next-combination-permutations, and combinator. HTH

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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);...

plus de 5 ans il y a | 0

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
polynomial function 3D
You have the file exchange contribution polyfitn that should do what you want. HTH

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
(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 ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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.

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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 = ...

plus de 5 ans il y a | 0

Réponse apportée
Calling a Script within another script?
This you can do this way: if flag1 == 1 ohm end if flag2 == 1 programaultimate end HTH

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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)...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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'); ...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Charger plus