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

oltre 5 anni fa | 0

| accettato

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

oltre 5 anni fa | 0

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

oltre 5 anni fa | 0

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

oltre 5 anni fa | 0

| accettato

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

oltre 5 anni fa | 0

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

oltre 5 anni fa | 2

| accettato

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

oltre 5 anni fa | 1

| accettato

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

oltre 5 anni fa | 1

| accettato

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

oltre 5 anni fa | 0

| accettato

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

oltre 5 anni fa | 0

| accettato

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

oltre 5 anni fa | 0

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

oltre 5 anni fa | 0

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

oltre 5 anni fa | 0

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

oltre 5 anni fa | 0

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

oltre 5 anni fa | 0

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

oltre 5 anni fa | 0

| accettato

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

oltre 5 anni fa | 0

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

oltre 5 anni fa | 1

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

oltre 5 anni fa | 0

| accettato

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

oltre 5 anni fa | 0

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

oltre 5 anni fa | 0

Risposto
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

oltre 5 anni fa | 0

| accettato

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

oltre 5 anni fa | 0

| accettato

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

oltre 5 anni fa | 0

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

oltre 5 anni fa | 0

| accettato

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

oltre 5 anni fa | 0

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

oltre 5 anni fa | 1

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

oltre 5 anni fa | 0

| accettato

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

oltre 5 anni fa | 0

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

oltre 5 anni fa | 0

Carica altro