Respondida
Simulating lens tilt on image
OK, here's a two thirds (some reasonable-fraction) solution that computationally is not too shabby. In its current version it al...

casi 6 años hace | 0

Respondida
how to remove speckles from image?
Well the filtering you want to achieve is to keep structures with smaller spatial scales that have some magnitude above the spec...

casi 6 años hace | 0

| aceptada

Respondida
how to plot different markers in scatter plot
This seems to work: scatter(randn(9,1),randn(9,1),32,rand(9,1),'filled','d') For markers of your choise - you know better than...

casi 6 años hace | 0

Respondida
How can I increase the vertical size of subplots?
You can manually adjust the subplot's axes position like this: sph = subplot(3,2,1); dx0 = 0; dy0 = -0.05; dwithx = 0.0; dw...

casi 6 años hace | 0

Respondida
average filter in Matlab
Why not use imfilter (if you have the image-processing toolbox) or conv2 - both should do this task in one line. To your proble...

casi 6 años hace | 0

Respondida
Treatment G-code file
Maybe the easiest way it to loop through the text line-by-line and check if it contains the character 'Z' using strfind or finds...

casi 6 años hace | 1

Respondida
scatter plot with color gradient on y-values
That should be as easy as: scatter(data(1, :), data(2, :), 10, data(2,:), 'filled'); You can modify the scaling of the colour-...

casi 6 años hace | 1

| aceptada

Respondida
how to remove speckles from image?
If your solution is not to use a large apperture (Why? The example you've shown us seems to work for the large apperture.) then ...

casi 6 años hace | 0

Respondida
how to plot cumulative normal distribution of matlab
If you have the statistics toolbox you have direct access to the cummulative distribution of a number of pdfs. Try to look at th...

casi 6 años hace | 0

Respondida
Plot trajectories of coupled nonlinear oscillator
Have a look at the search-results for: coupled nonlinear oscillator HTH

casi 6 años hace | 0

Respondida
Can someone better explain what the fullfile function does on Matlab (the mathworks explanation didn't help me)?
If you want to create a filename that contains a full or relative path to the directory where the file resides you can use a con...

casi 6 años hace | 0

Respondida
STFT error about segement length more than long input signal
If bv has a size of 110x1 or 1x110, then you're trying to calculate a spectrogram of a 110-long time-series using a 10000-sample...

casi 6 años hace | 0

Respondida
ode4 gives variable undefined error
First of all you have to make sure that you call ode4 with the inputs it expects. In your call you do not have any function. Acc...

casi 6 años hace | 0

| aceptada

Respondida
ode 45 in a loop
You have a couple of problems with your code. Your ode_research does not follow the ordinary form (dydy = ode_f(t,y)) that ode45...

casi 6 años hace | 0

| aceptada

Respondida
Array indices must be positive integers or logical values.
Most likely you want to multiply Cd0 with the expression in the parenthesis, you try to index the variable with the value of (0....

casi 6 años hace | 0

| aceptada

Respondida
Inaccuracy in solving simultaneous equations using matrix
If you run this code-snippet: N = round(logspace(1,3,7)); for i1 = 1:numel(N), n = N(i1); B=(1:n)'; A=full(galler...

casi 6 años hace | 1

| aceptada

Respondida
Explain in an itemized fashion (preferably with an example) how one can estimate double integrals over non-rectangular domains.
Read the help for integral2: Example: Integrate 1./(sqrt(x+y).*(1+x+y).^2 over the triangle 0 <= x <= 1, 0 <= y <...

casi 6 años hace | 1

Respondida
Nonlinear curve fitting of multiple peaks
General question, general answer. If you have a 1-Dimensional function , f(pars,x), that depends on a couple of parameters and ...

casi 6 años hace | 0

Respondida
Different colors between plot and legend
Ivan, when you plot multiple lines like this and want to put a legend into the figure (or want to modify the lines) use the plo...

casi 6 años hace | 0

| aceptada

Respondida
Matrix inversion differences between versions
Have you tried to look at the smallest singular values? You can calculate those with svds. If they are small or very small your ...

casi 6 años hace | 0

| aceptada

Respondida
Concatenating 2 vectors into 1 vector with the values adjacent to each other
Why not simply do something like this: Year_pressure = [year(:) + (month(:)-.5)/12,p_CO2(:)]; Here I've modified your conversi...

casi 6 años hace | 0

Respondida
Is there any other way to set range in if- else statement?
Your expression in the condition is not what you think it is. You set m to 45. Matlab interprets your test-condition thisly: (0...

casi 6 años hace | 1

| aceptada

Respondida
Draw a 3D tetrahedron
Have a look at the help and documentation of plot3. That function should give you what you need. The tedious thing you need to t...

casi 6 años hace | 0

Respondida
How can I optimize 2 parameters of my ODE system (with 3 deferential equation) to minimize distance between theorical and experimental value
The way you've written the equations above only gives you 2 differential equations, in your odethreevariable function you code i...

casi 6 años hace | 0

| aceptada

Respondida
How to subtract the elements in one matrix with the corresponding elements in another matrix?
You're not asking for values to subtract, but indices to not include. My simple suggestion is that you take a look at the randpe...

casi 6 años hace | 0

Respondida
Solve a second-order differential equation with an array parameter that does not depend explicitly on the independent variable
Your problem is that ode45 will evaluate odeFun at arbitrary points in time (as seen from your perspective at least). That means...

casi 6 años hace | 1

| aceptada

Respondida
Initial values for ode45 solver
If bvp4/5c doesn't handle this type of problems then this sounds like a setup for using the shooting method. Simply build a func...

casi 6 años hace | 1

| aceptada

Respondida
Integrating with a static starting value and changing end value
Either you'll have to simply loop: Cp= @(T) 0.132+1.56e-4.*T+2.64e-7.*T.^2; dT=linspace(0,300); T0=-100; for i_T = numel(dT)...

casi 6 años hace | 0

| aceptada

Respondida
Differentiation and integration of functions
You need to change from assignment to equality: x=dsolve('Dx==(11*x+1)/sqrt(x^2+22)','x(0)=0') But this is most likely not th...

casi 6 años hace | 0

Respondida
conversion to one line function
You can build an one-line anonymous function like this: oneliner = @(t) 3.*double(-1 <= t & t<1) + (-5.*t+12).*double(1<= t & t...

casi 6 años hace | 0

| aceptada

Cargar más