回答済み
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...

11ヶ月 前 | 0

| 採用済み

回答済み
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...

11ヶ月 前 | 0

回答済み
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',...

11ヶ月 前 | 1

| 採用済み

回答済み
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...

11ヶ月 前 | 0

回答済み
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...

11ヶ月 前 | 0

| 採用済み

回答済み
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),',...

11ヶ月 前 | 0

回答済み
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)

11ヶ月 前 | 0

回答済み
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...

11ヶ月 前 | 1

| 採用済み

回答済み
Compare two row and select appropriate data
c=max(a,b)

11ヶ月 前 | 0

回答済み
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...

11ヶ月 前 | 1

回答済み
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,...

11ヶ月 前 | 0

回答済み
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^...

11ヶ月 前 | 1

回答済み
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...

11ヶ月 前 | 0

| 採用済み

回答済み
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...

11ヶ月 前 | 0

| 採用済み

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

11ヶ月 前 | 1

| 採用済み

回答済み
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...

11ヶ月 前 | 0

回答済み
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...

11ヶ月 前 | 0

回答済み
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...

11ヶ月 前 | 1

回答済み
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-...

11ヶ月 前 | 0

回答済み
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,:))

11ヶ月 前 | 1

| 採用済み

回答済み
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...

11ヶ月 前 | 0

回答済み
How can I add a backup an option, addSaveCallback, to save a timestamped version of my file, to the MATLAB editor?
Instead of trying to get the standard Save button to do what you want, you can make a Quick Access Toolbar button which runs you...

11ヶ月 前 | 0

回答済み
function input arguments error
Your code uses 'isreal' as both the name of a function and a variable. You can resolve the conflict by renaming the output, e.g....

11ヶ月 前 | 1

回答済み
Invalid training data. Predictors and responses must have the same number of observations.
Your XTrain shouldn't be a 100x6 cell. It should be a 100x1 cell where each XTrain{i} is a matrix with 6 rows. Example, layers ...

12ヶ月 前 | 1

| 採用済み

回答済み
Problems with quiver plot
I think you just need axis equal. %% system paramters eta = .1; mu = .1; nu = 1; gamma = 2; %% dependent variables roi...

12ヶ月 前 | 0

| 採用済み

回答済み
Is there a way to edit the default size of an edit control in a livescript?
No, I don't believe there is. You will have to make a real app if you want that kind of control.

12ヶ月 前 | 0

| 採用済み

回答済み
Conversion from an old to a new version of a class with different property names
One way is with a Dependent property. This makes it so you can reference the same property using tc.shortname. classdef testCla...

12ヶ月 前 | 2

| 採用済み

回答済み
making a custom way to train CNNs, and I am noticing that avgpool is SIGNIFICANTLY faster than maxpool in forward and backwards passes…
I think the pooling operations are simply not optimized for the specific situation when the pooling is tiled (i.e., poolsize=str...

12ヶ月 前 | 1

| 採用済み

回答済み
Trimesh plots diferently using trimesh(TO) vs trimesh(T,x,y,z)
You haven't attached your .mat file so we can't try to reproduce it. I would guess that the problem is that you've transposed th...

12ヶ月 前 | 0

回答済み
Gradients not recorded for a dlnetwork VAE
As the error message says, the call to dlgradient must occur within the function (in this case computeTotalLoss) called by dlfev...

12ヶ月 前 | 0

さらに読み込む