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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 2

| akzeptiert

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

fast 6 Jahre vor | 1

| akzeptiert

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

fast 6 Jahre vor | 1

| akzeptiert

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 1

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

Beantwortet
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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 1

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

Mehr laden