Beantwortet
AppDesigner: Is it possible to interactively stretch/schrink plots ("Axes") in x or y direction separately (NOT zoom in/out both)?
This example looks applicable to you: Restrict Zooming to X-Dimension.

5 Monate vor | 0

Beantwortet
how to create the number of equations from a correlation matrix by excluding the most correlated variables?
That sounds like a bad idea. Normally, in MATLAB, you wouldn't write your equations in scalar form. You would write a matrix equ...

5 Monate vor | 0

| akzeptiert

Beantwortet
Unable to use structName.?ClassName for VideoWriter class
The .?Classname syntax only works on the class properties with public SetAccess. Unfortunately, the VideoWriter class does not h...

5 Monate vor | 2

| akzeptiert

Beantwortet
Closed contour with least square differences to dataset
A closed curve, e.g. a circle, would usually satisfy an implicit equation F(x,y)=0 The way to approach that is with implicit e...

5 Monate vor | 0

Beantwortet
Polyfit isn't adjusting to decreasing sinoidal data
Polynomial fitting above 10 degrees or so is a famously ill-conditioned numerical task, see also, https://en.wikipedia.org/wiki...

5 Monate vor | 0

Beantwortet
The keyboard shortcut to change focus to the editor doesn't work.
Try first dragging the editor window into focus manually with the mouse. Then, check if Ctrl+0 and Ctrl+Shift+0 toggles the edit...

5 Monate vor | 0

Beantwortet
how to filter columns
m=576; n=1000; k2=randi([0,1],m,n).*rand(m,n); tic; r=max( (k2==0)'*k2 ,[],2); toc;

5 Monate vor | 0

Beantwortet
Get extrinsic camera parameters from pose estimation
From the documentation for estimateMonoCameraParameters, it appears that the camera is assumed to lie at a translation of C=[0,0...

5 Monate vor | 0

| akzeptiert

Beantwortet
Mean of 3D matrix based on range of first dimension
This might seem a little counter-intuitive, but the key is that it avoids extracting a submatrix (an expensive op) from the inpu...

5 Monate vor | 0

Beantwortet
Measuring Line Profiles in IMages
I=im2double(im2gray(imread('image.png'))); BW=imbinarize(I); D=bwareaopen(abs(gradient(I))>0.06,20); D=imclose(D,strel('d...

5 Monate vor | 0

| akzeptiert

Beantwortet
do we have any pre provided function for reitveld refeinement in matlab
No, there is no dedicated crystallography toolbox in Matlab. You could build your own with Optimization Toolbox functions like l...

5 Monate vor | 0

Beantwortet
Issues creating error bar for bar figure
Here's an MWE: x = ["A"; "B" ] ; y = [3,4] ; err = [0.5,0.75] ; bar(x, y); hold on errorbar(categorical(x),y,err,'r',...

5 Monate vor | 1

| akzeptiert

Beantwortet
How to set a protected superclass property from subclass method?
You cannot use the ?.MVA syntax on non-public properties. Since you already have validation in the base class, I don't think you...

5 Monate vor | 0

Beantwortet
rref matrix with an unkown variable
I am expecting to get (did this by hand): Your expected result doesn't look right. For both row-echelon and reduced row-echelon...

5 Monate vor | 0

| akzeptiert

Beantwortet
Strange behaviour using double
You could replace the commas with some other NaN-triggering character, e.g., c={'1.23', '1,234'} double(replace(string(c),',...

5 Monate vor | 0

Beantwortet
Compare two row and select appropriate data
Basically column b is the "cap." If so, one could also do, a=[1;2;3;4]; b=[1;1;3;3]; c=clip(a,-inf,b)

5 Monate vor | 0

Beantwortet
Reduce x-axis line length in a bar plot that is in a tiledlayout
For finer control, download subaxis. Use that instead of tiledlayout. clear, %close all % Define the data 1 Names1 = {'A...

5 Monate vor | 1

| akzeptiert

Beantwortet
Compare two row and select appropriate data
c=max(a,b)

5 Monate vor | 0

Beantwortet
Error while running my objective function by fmincon with nonlinear constraint for calculate optimization coordination overcurrent relay
You have a parameter b defined here b = 0.14; but then you overwrite it here: A = []; b = []; Aeq = []; beq = []; Also, r...

5 Monate vor | 1

Beantwortet
Suppressing Live Script plotting figure inline
I don't think it's possible. However, you could shrink down the side bar area of the livescript where the figures are displayed,...

5 Monate vor | 0

Beantwortet
A more efficient way to do this calculation
function [HD_cols] = members(Ic); HD = [ ... 160000/100^4, 180000/100^4, 204000/100^4, 226000/100^4, 250000/100^...

5 Monate vor | 1

Beantwortet
Reading JSON struct from file adds prefix 'x' to fieldname if it starts with number
but I cannot find anything that would explain why 'x' is added. Presumably you know that something must be added, because vari...

5 Monate vor | 0

| akzeptiert

Beantwortet
Figure window not showing up
I wonder if the default figure position changed somehow so that figure windows open off-screen... Opening a window with an expli...

5 Monate vor | 0

| akzeptiert

Beantwortet
Build matrix from corresponding table variables stored in cell array
load data D=reshape( vertcat(C{:}).Col1 , height(C{1}) ,[])

5 Monate vor | 1

| akzeptiert

Beantwortet
Build matrix from corresponding table variables stored in cell array
I hope you understand that speed-wise there is no way to iterate over cell arrays that is faster than a for-loop. However, using...

5 Monate vor | 0

Beantwortet
Finding the length distribution of zeros in data?
You can use this File Exchange submission, https://www.mathworks.com/matlabcentral/fileexchange/78008-tools-for-processing-cons...

5 Monate vor | 0

Beantwortet
Issues with reproducibility in multistart with parallelization
I don't see why you would expect agreement between a 50-point multistart and a 150-point multistart. Only if both versions succe...

5 Monate vor | 1

Beantwortet
How can i write a MATLAB script for surface profile analysis of different geometries(such hemisphere, plane, sphere, asphere...) including vertex search, data processing,fit?
It sounds like this might benefit you, https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-tools-to-fit-...

5 Monate vor | 0

Beantwortet
Operations with rows First, second and third
For example, a = [0 1 1 0 0 1 0 1 0; 1 1 0 1 0 0 1 1 1; 0 0 0 1 1 1 0 0 1] first_and_second = sum( ~a(1,:)&a(2,:))

5 Monate vor | 1

| akzeptiert

Beantwortet
I am coding a equation for curve fitting, but I am facing inaccuracy. I am not getting Elastic plateau in the curve. Can anyone guide me how I can address the issue.
You need a better initial guess. Also, you should exclude the data from the linear elastic region, since clearly that is not cap...

5 Monate vor | 0

Mehr laden