Beantwortet
How can I display a 3D image of a 10x10x10 matrix? Each cube has a value between 1-10.
You should be able to generate a figure like the cube you show by utilizing the slice-function. Something like this: % Mocking ...

mehr als ein Jahr vor | 1

Beantwortet
How to find angle for a curve in an image??
Since it is a bit unclear exactly how you're going about to select which points belong where you'll get a very general answer. C...

mehr als ein Jahr vor | 0

Beantwortet
How to make a 2D pseudocolor (pcolor) plot in triangle shapes instead of a square shape with triangle cordinates data?
This sounds like a task for trisurf. Check the help and documentation to that function. If you want the pcolor rather than the s...

mehr als ein Jahr vor | 1

Beantwortet
reverse lookup table from vector multiplikation with unknown vectors
This problem will be very "variably difficult" depending on the size of the vectors. It also might not have an easily found glob...

mehr als ein Jahr vor | 0

Beantwortet
Euler showing exponential growth instead of steady state: Monod growth equation
Instead of using this explicit integratin of your coupled (?) odes with Euler's method, you should learn to implement the ODEs i...

mehr als ein Jahr vor | 0

Beantwortet
how to replace a symbolic variable with a real one after computation?
Perhaps straight conversion of the symbolic expressions to functions (function-handles, dynamical functions) with the matlabFunc...

mehr als ein Jahr vor | 0

Beantwortet
Problem plotting the trajectory of electron in static electromagnetic field
When you let the symbolic solver handle your equations of motion it might be safer to simply give dsolve the second-order equati...

mehr als ein Jahr vor | 1

| akzeptiert

Beantwortet
How to add clockwise and anti-clockwise direction arrow in Plotting in Matlab
Download these two file exchange arrow-drawing contributions: arrow3 arrow They will be useful arrow-drawing functions for al...

mehr als ein Jahr vor | 0

Beantwortet
Saturation limit on 16 bit image in MATLAB
To just look at the maximum pixel-intensity is not the best of ways to handle this. For science-grade cameras you typically get ...

mehr als ein Jahr vor | 0

Beantwortet
Removing outliers from a matrix
QD-answer: The best you can do for single pairs of columns is to only use the rows where neither are outliers. With the cov-func...

mehr als ein Jahr vor | 0

Beantwortet
How to calculate the volume of tumor in logical image
You can simply calculate how many cells (voxels?) in your labels-variable are 1: Voxels = sum(labels(:)==1) That is the number...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
Matlab is in the wrong working path, how to set it?
Generate full (or relative) path to the file you want to load: data_dir = '/home/me/data'; data_file = 'mydata.mat'; file2loa...

mehr als ein Jahr vor | 0

Beantwortet
How to save 7 different large matrix (for Landsat 7 bands) in one variable?
Break down your loops into something simpler first. Skip the outermost one and select one date that you know you have data from....

mehr als ein Jahr vor | 0

Beantwortet
Volumetric slice plot missing data
This is a well-known feature of the pcolor-surf-slice functions. If they are given arrays x, y and V (for pcolor and surf) the v...

mehr als ein Jahr vor | 0

Beantwortet
esitimate parameter and curve fitting kinetic model
Is your model correct? To my (very much non-biology-expert) eyes the ODE for c(1) seem to reduce to: dcdt(1) = C(1)*k*(1/K - 1)...

mehr als ein Jahr vor | 0

Beantwortet
Unexpected behavior of FFT
In the field (IS-radar) I work we have typical carrier-frequencies of 224-1000 MHz and the modulation band-width is a couple of ...

mehr als ein Jahr vor | 0

Beantwortet
HELP need to run Chebyshev code!
Save your chebeval-function in a separate file chebeval.m. Then call that function from your script. For now you can put both sc...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
SIR model with recovered individuals may lose their immunity and become reinfected with the disease. But came with a failure about integration tolerances
You have an error in the SIR-equations. They should look something like this: %% fc_ode_SIR function dq = fc_ode_SIR(~,q,p) % ...

mehr als ein Jahr vor | 0

Beantwortet
Skipping certain lines using fscanf
For this rather loose file-format specification that you've been given (meaning that in a couple of days, weeks or months it wil...

mehr als ein Jahr vor | 0

Beantwortet
PLOT surface using 3 vectors of same length (NEED HELP!!!)
You can use multiple indices in the variables you create. For example if you do things like this: b=0; for i = -200:1:200 ...

mehr als ein Jahr vor | 0

Beantwortet
Gradient Descent Implementation on a function, as opposed to an equation
You could do something like this: 1, rewrite the function to take an array as input-parameter instead of a number of scalar par...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
Y-values for the histogram
Perhaps you look for histcounts? Seems like that is the function that returns what is plotted in histogram. HTH

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
How to fix "matrix dimensions must agree" error
Whe you run into problems like this you will have to learn to use the debug-capabilities of matla. Do this at the command-line: ...

mehr als ein Jahr vor | 0

Beantwortet
adding counts of ordered pairs
One way to go about this is to use sparse: A1 = [1 4 3; 3 5 1; 12 4 7; 13 5 2; 14 1 1]; A2 = [1 5 ...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
How to use Eigenvector and Eigenvalues of a matrix to formulate Entropy equation?
First you should extract the eigenvalues from the diagonal matrix (mainly for convenience): vLambda = diag(Vect); Then you wan...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
Simultaniously fitting 4 functions: two functions share all parameters, all four functions share one parameter
function errtot = four_errorfcns(pars1to5,Xall,Yall,sigmaYall) err1 = sum( ( f1(pars1to5(1:3),Xall(1,:))-Yall(1,:) ).^2/sigmaYa...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
How to create stacked quiver plots?
This sounds like a straight use of quiver3? Either h1=quiver3(slice2(:,1),... slice2(:,2),... slice2(:,...

mehr als ein Jahr vor | 1

| akzeptiert

Beantwortet
Plot multiple x axes on the bottom of a graph
You should have some good use of a couple of such tools from the file exchange: dual_axes addaxis multiple-y-axes The last t...

mehr als ein Jahr vor | 0

Beantwortet
Integration of system of ODEs fails, unable to meet integration tolerances
After only quickly looking at your problem, it seems to me that you launch the body in a direction into Earth. The first 2 and l...

mehr als ein Jahr vor | 1

| akzeptiert

Beantwortet
Unrealistic fitting confidence levels in noisy data
This is most likely due to the large number of data-points you have. Compare with the simpler case of the uncertainty of the ave...

mehr als ein Jahr vor | 1

| akzeptiert

Mehr laden