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

mer än ett år ago | 1

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

mer än ett år ago | 0

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

mer än ett år ago | 1

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

mer än ett år ago | 0

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

mer än ett år ago | 0

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

mer än ett år ago | 0

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

mer än ett år ago | 1

| accepted

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

mer än ett år ago | 0

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

mer än ett år ago | 0

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

mer än ett år ago | 0

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

mer än ett år ago | 0

| accepted

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

mer än ett år ago | 0

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

mer än ett år ago | 0

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

mer än ett år ago | 0

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

mer än ett år ago | 0

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

mer än ett år ago | 0

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

mer än ett år ago | 0

| accepted

Answered
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) % ...

mer än ett år ago | 0

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

mer än ett år ago | 0

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

mer än ett år ago | 0

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

mer än ett år ago | 0

| accepted

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

mer än ett år ago | 0

| accepted

Answered
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: ...

mer än ett år ago | 0

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

mer än ett år ago | 0

| accepted

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

mer än ett år ago | 0

| accepted

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

mer än ett år ago | 0

| accepted

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

mer än ett år ago | 1

| accepted

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

mer än ett år ago | 0

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

mer än ett år ago | 1

| accepted

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

mer än ett år ago | 1

| accepted

Load more