How an I manipulate top and bottom x axes individually?
Actually, dpb's suggestion of 2 axes should work as long as you don't turn "box on", and you may need to sync their positions if...

2 maanden ago | 0

| accepted

Solved

Convert a temperature reading from Celsius to an unknown scale
Two of the most famous temperature scales are the Celsius and the Fahrenheit scale. In reality, however, there are so many other...

2 maanden ago

Solved

Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

2 maanden ago

Logical Indexing instead of loops in 3D-Matrices
What is the purpose of vectorization? Is it for imagined speed gains, or just an "in principle" question? Bruno's answer is fas...

2 maanden ago | 2

How can I insert a square root in y-axis of curve ?
You can use latex ylabel('$$\theta \quad \left(10^{-3} \mathrm{C/m} \sqrt{\mathrm{kg}}\right)$$','Interpreter','latex') also ...

2 maanden ago | 1

| accepted

Multiple linear regression coefficient calculation
Assuming your data are in rows (y is a column vector), isn't that just X=[ones(size(x1)),x1,x3,x3] see https://www.mathworks...

2 maanden ago | 0

How to vectorize an equation involving pair-wise distance computation, to improve the speed of computation?
I think you should be able to loop only once over the reference point , then take then compute difference vectorially. Also, in...

2 maanden ago | 1

| accepted

How can I draw the following blue color tone intensity figure using the Newtons Raphson basin of attraction code?
Organize your "list" of initial guesses (x,y) as a meshgrid [X,Y] = meshgrid(x,y) Then easier to loop through the "unwrapped" ...

2 maanden ago | 0

how to merge multiple timetable
If the tables have the same columns, you should be able to simply vertically concatenate them and sort t0 = sortrows(vertcat(t1...

2 maanden ago | 1

Plotting 3D graph with ODEs
If your ODE result "population(t)" a scalar value, then yes, you can use surf() if your [A,B] is defined using meshgrid.

2 maanden ago | 0

Indexing concurrent array elements and incrementing
First you could use "reshape" to create a 2D array whose rows corresponds to a record, then slice up the 2D array into however m...

2 maanden ago | 0

| accepted

UITable in app designer-Matlab
I think this works if you have a recent version of matlab, you can place the uitable inside a uigridlayout, and set the "cell" h...

2 maanden ago | 1

Counting occurrence of keys and values for Containers.Map in another Containers.Map
Just considering the keys, you can use ismember (though I'm not sure why there's a limitation that cells must be cell arrays of ...

2 maanden ago | 0

| accepted

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

2 maanden ago | 0

| accepted

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

2 maanden ago | 0

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

3 maanden ago | 0

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

3 maanden ago | 0

| accepted

Fitting 2D Gaussian to histogram
If you only need the center, you can just take the mean in each direction x = mean(A) y = mean(B)

3 maanden ago | 0

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

3 maanden ago | 0

| accepted

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

3 maanden ago | 1

| accepted

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

3 maanden ago | 1

| accepted

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

3 maanden ago | 0

| accepted

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

3 maanden ago | 0

| accepted

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

3 maanden ago | 0

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

3 maanden ago | 0

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

3 maanden ago | 0

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

3 maanden ago | 0

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

3 maanden ago | 0

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

3 maanden ago | 0

| accepted