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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 1

| akzeptiert

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

mehr als 5 Jahre vor | 0

Beantwortet
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);...

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
(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 ...

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 1

| akzeptiert

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

mehr als 5 Jahre vor | 1

| akzeptiert

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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

Beantwortet
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 = ...

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
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)...

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 1

| akzeptiert

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

Beantwortet
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'); ...

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 1

| akzeptiert

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

mehr als 5 Jahre vor | 0

Mehr laden