Respondida
How do I plot logarithmic error?
In log space, spacing is multiplicative, not additive, so you want to express your top and bottom curves as multiples of your ba...

más de 5 años hace | 0

| aceptada

Respondida
How do I plot logarithmic error?
use the log10() function? The question isn't super clear...

más de 5 años hace | 0

Respondida
Convert numerical equations to latex
Assuming the results will always be integers, here's a simple way %==== Numerical Values (Unrounded) ============== a = 128387...

más de 5 años hace | 0

Respondida
find indices of each first repeated elements in the array (full of repeated values)
It's too early for me to attempt to understand your 2nd problem, but for the first problem try using "diff" indexB0 = [1,1+find...

más de 5 años hace | 0

| aceptada

Respondida
Fitting 2D Gaussian to histogram
I updated the answer to show that means of each is sufficient to find the mean. If you only need the center, you can just take ...

más de 5 años hace | 0

Respondida
Make axis background transparent
For traditional axes, you can set the "Color" property to "none" ax = axes("Color","none")

más de 5 años hace | 2

| aceptada

Respondida
importing an empty text column rather than a number column
Are you already using something like detectImportOptions() or spreadsheetImportOptions()? If not, look at that And then look at...

más de 5 años hace | 1

| aceptada

Respondida
Write to an already opened Excel file
If Excel is already running by the time you want to run this with the target file open, you can't just start a new excel instanc...

más de 5 años hace | 1

| aceptada

Respondida
Creating a new object from existing object but after excluding one specific property.
If you actually mean structures, as your example suggests, are you aware of "isfield", which will check if a structure contains ...

más de 5 años hace | 0

| aceptada

Respondida
Remove tick marks for axes
An easy way to "fake" this after setting "Box" to "off", as Peng Li suggests, is to make xline and yline. But it wouldn't be dyn...

más de 5 años hace | 0

| aceptada

Respondida
How to find the gradient of a parameter which is not direct solution of a function
Determining l1 for a "target Gam4" value appears not to be an optimization problem, but another root-finding problem. It seems t...

más de 5 años hace | 0

Respondida
How to use ode15s with a constant that varies by two parameters?
From you description, it sounds like you want to do the average over d-values outside of our ODE solution. But in your code, you...

más de 5 años hace | 0

Respondida
How do I go about plotting points from ODE45 with this?
yes, your odefun looks wrong, it looks like you did not correctly apply matrix algebra to get the separate equations from your m...

más de 5 años hace | 0

Respondida
How can I use fmincon to solve problems with ODEs
I presume you mean to use r at some specific time, where r(0) (or some other time) is known - a standard 1D ODE. with some in...

más de 5 años hace | 0

Respondida
How to get the solution to a GIVEN input VECTOR using ode45 solver
If you're just looking for code to extract some element out of your ode45 solution: tAll = nan(1,length(u_opt)); xAll = nan(4,...

más de 5 años hace | 0

Respondida
Separating and extracting data using edge detection
since it appears you have the image processing toolbox (access to "edge"), have you looked into "regionprops"? If you're label...

más de 5 años hace | 0

| aceptada

Respondida
Solution to 2nd order ode containing time varying coeficients using ode45
can you use the code editor functionality to display code? Multiple issues: you don't need to "run" the gglpr9 function...is t...

más de 5 años hace | 0

Respondida
How to amend the names of all variables in all tables in the current workspace
You can still "bandaid" your situation up by reading the named tables in your workspace into the cell array that could have been...

más de 5 años hace | 1

Respondida
Parallelized ODE45 solution with 3D spline
Can you just pass the variables spx spy spz to func_xy as additional arguments? q=1.6e-19; m=400*1.6e-27; odeOpts = odeset(...

más de 5 años hace | 0

| aceptada

Respondida
Given a point, locate 3 point in different 8 directions.
Or since there is a built-in called improfile (with one toolbox or another), you can skip the convolutions for gradients, take t...

más de 5 años hace | 0

Respondida
Given a point, locate 3 point in different 8 directions.
as long as we're guessing at the problem, an approach that would alleviate the need for line scans would be to rotate the source...

más de 5 años hace | 0

Respondida
Flipping the axis starting value of a plot in matlab
Does this do what you want figure(i); dscatter(X,Y); colorbar; hold on set(gca,'YDir','reverse') % <- added this line

más de 5 años hace | 0

| aceptada

Respondida
time dependent constant to solve 1st order ODE via ode45
Seems like you just need Tw to be a function of T (of var(1)). function diffeqs= ode_sys(t,var) T=var(1); ...

más de 5 años hace | 0

| aceptada

Respondida
How to dynamically define limits forplot from user input in app designer?
Do not use a loop. Use the edit boxes, and use their callback functions to set the axis limits. It sounds like you should take ...

más de 5 años hace | 0

Respondida
How to remove all background noise due to inappropraite lighting from my pre-processed image and get better edge defination??
try smoothing before you apply your edge detector, not after same goes for your power law (gamma correction?) alternatively/al...

más de 5 años hace | 0

| aceptada

Respondida
Paste Data to Editable Table in AppDesigner UI
when you say you don't want to use xlsread, is it that you don't want to force usage of excel, or you don't want to read files a...

más de 5 años hace | 0

Respondida
How to binary clone a file using fread and fwrite commands
For your application does it make sense to just copy the file using a system command or matlab's coyfile?

más de 5 años hace | 1

Respondida
Newton-Raphson Method with Jacobian
In Newton loops you must evaluate your f and j and currently guessed iterate, so your line h = -f(x0(1),x0(2),x0(3))*j(x0(1),x0...

más de 5 años hace | 0

| aceptada

Respondida
Solving Linear Differential Equations for Path Following ; I am getting difficulties in implementing the coding with variable psi_e, let's say if I want to run it for psi_e going from 0 to pi/2, how can it be done?
To change value of psi_e (make it variable) seems straightforward: make psi_e an input in your odefun, then loop over psi_e: f...

más de 5 años hace | 0

Respondida
how to use tensors
this is a bit imprecise, but if you mean "order 2 tensor", it can be represented as a 2D matrix. Order 3 tensor is then 3D matri...

más de 5 años hace | 0

Cargar más