Risposto
Multiple Plots in One Iterative Script
If you want all the points for each iteration in the 2 figures, then you will have to insert a hold on after each plotting comma...

circa un mese fa | 0

Risposto
what precautious should i follow before upgrading to higher matlab version?
Read the release-notes. Check if your (most used) functions and programmes warns about "functionality will be removed" when you ...

circa un mese fa | 1

| accettato

Risposto
Coordinate Systems for using Camera Calibration
Think of it this way: Each pixel (u,v) in the image are capturing light along some line in 3-D. You can write that line as: H...

circa un mese fa | 0

Risposto
How to setup the colormap by myself?
You can combine one row of white and the turbo colormap: cmp = [1,1,1;turbo]; colormap(cmp) This leaves the problem with the ...

circa un mese fa | 0

| accettato

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

circa un mese fa | 1

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

circa un mese fa | 0

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

circa 2 mesi fa | 1

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

circa 2 mesi fa | 0

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

circa 2 mesi fa | 0

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

circa 2 mesi fa | 0

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

circa 2 mesi fa | 1

| accettato

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

circa 2 mesi fa | 0

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

circa 2 mesi fa | 0

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

circa 2 mesi fa | 0

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

circa 2 mesi fa | 0

| accettato

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

circa 2 mesi fa | 0

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

circa 2 mesi fa | 0

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

circa 2 mesi fa | 0

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

2 mesi fa | 0

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

2 mesi fa | 0

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

2 mesi fa | 0

| accettato

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

2 mesi fa | 0

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

2 mesi fa | 0

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

3 mesi fa | 0

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

3 mesi fa | 0

| accettato

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

3 mesi fa | 0

| accettato

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

3 mesi fa | 0

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

3 mesi fa | 0

| accettato

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

3 mesi fa | 0

| accettato

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

3 mesi fa | 0

| accettato

Carica altro