답변 있음
create a 3D smoothing with csaps (or similar)
load curve_1 cc = curve_1; %or curve_2 x = cc(:,1); y = cc(:,2); z = cc(:,3); t=linspace(0,1,height(cc)); tu=linspace(0...

거의 2년 전 | 1

답변 있음
How to train a vector multiple-input multiple-output network
You have only entered one InputDataFormat. The error message is telling you that you need two of them, e.g., options = training...

거의 2년 전 | 0

| 수락됨

답변 있음
Create different interpolation steps in a column
newy=[1:10,12:2:30, 50:50:500]; newdata=interp1(y,data,newy);

거의 2년 전 | 0

| 수락됨

답변 있음
lambda in fmincon Interior-Point Algorithm with Analytic Hessian
How come it is an input to the function hessinterior? Because both x and lambda are computed iteratively. The solver therefore...

거의 2년 전 | 0

답변 있음
Finding the minimum distance between two matrices
See pdist2.

거의 2년 전 | 1

| 수락됨

답변 있음
Fitting a function with constraints
You can use a custom model for each case: ascending: The minimum y-value must be at the first x-value g = fittype( @(a, t, c, ...

거의 2년 전 | 1

답변 있음
Solve ill-conditioned linear systems
Ill-conditioning is a property of the problem, not the method of solution. You cannot overcome it with any particular choice of ...

거의 2년 전 | 0

답변 있음
Calculations for Each Table in a Cell
for i =1:numel(CoPyData) Trial = CoPyData{i}; CoPv_y = diff(Trial.Displacement)./diff(Trial.Time); CoPv = [...

거의 2년 전 | 0

| 수락됨

답변 있음
Change dimension of a structure
s.Height=3600; s.Width=3601;

거의 2년 전 | 0

답변 있음
find the inflection point of a curve 3D (set of nodes) in matlab
You can use csaps to fit a smoothing spline to the points and then fnder to differentiate the curve and observe curvature change...

거의 2년 전 | 0

| 수락됨

답변 있음
How to put 3D array data into mesh grid and find grid cell index of a cube enclosing a given point?
It would be much simpler and more efficient to skip the meshgrid altogether and use discretize. i=discretize(px,x); j=discret...

거의 2년 전 | 0

| 수락됨

답변 있음
How to fit polygon to irregular set of points with only vertical and horizontal edges?
You will need to use a Traveling Salesman Problem solver to sort the vertices. There are a number of them on the File Exchange. ...

거의 2년 전 | 1

| 수락됨

답변 있음
Complex value computed by model function, fitting cannot continue. Try using or tightening upper and lower bounds on coefficients.
fminspleas from this FEX download, https://www.mathworks.com/matlabcentral/fileexchange/10093-fminspleas is helpful for these...

거의 2년 전 | 0

| 수락됨

답변 있음
How to find norm of a 3 X 1 matrix if it contains components in parametric form?
syms t coupler_parametric=[5163136522924301/2251799813685248,... 2^(1/2)/2 - (8*t)/(t^2 + 1), - (4*(t^2 - 1))/(t^2 + 1) - ...

거의 2년 전 | 1

| 수락됨

답변 있음
wrong type variable in uitable
"Unrecognized property 'VariableTypes' for class 'matlab.ui.control.Table'." Indeed, there is no such property. Why did you put...

거의 2년 전 | 0

답변 있음
create a 3D average plan (or normal) from two 3D plans (or normals)
There is no universally recognized concept of an "average plane". One definition you could adopt is the plane obtained by fittin...

거의 2년 전 | 0

답변 있음
polynomial multiplication not accurate, using conv() vs symbolic
To avoid the numerical instabilities of high order polynomials, don't work with the coefficients of D4_poly^2. Just evaluate D4_...

거의 2년 전 | 0

| 수락됨

답변 있음
Should I modify x-values for curve fitting with response variable?
Matlab's fitting solvers do not require the x data to be equidistant. I'm not sure why it would be a matter of opinion, though...

거의 2년 전 | 1

| 수락됨

질문


Is there a reason why {'charVector'} is not considered a text scalar for argument validation purposes?
It seems like a software design inconsistency to me that this passes validation, mustBeText({'charVector'}) mustBeScalarOrEmpt...

거의 2년 전 | 답변 수: 2 | 4

2

답변

답변 있음
I have the 3D MTF and i want to convert this 3D MTF to the common 2D MTF as in the image attached. I want to plot MTF vs Spatial frequency graph.
Your attachment isn't a 2D MTF. It is a 1D MTF. You must pick a 1D cross-section of your 3D MTF that you'd like to plot and extr...

거의 2년 전 | 0

답변 있음
Problem with polyfit command (R2015a)
The result from polyfit is correct. I suspect you are simply not using polyval properly to evaluate the fit: x=[1:9] ; y=[5,6,...

거의 2년 전 | 1

| 수락됨

답변 있음
How to re-generate script from already built workspace
The script, if you saved it is a file somewhere on your computer. We have no way fo knowing where you put it. However, if you re...

거의 2년 전 | 0

| 수락됨

답변 있음
Improving chose of guesses in my fit
It appears from the plot that you are giving nlinfit the data for all peaks simultaneously. You should not be doing that. Rather...

거의 2년 전 | 1

답변 있음
Identifying all elements and their nodal coordinates given all possible nodes
Assuming the cube is unrotated, V=[0,0,0;0,0,1;0,1,0;0,1,1;1,0,0;1,0,1;1,1,0;1,1,1]+[5,6,7] %cube vertices vmin=min(V); vma...

거의 2년 전 | 1

답변 있음
Passing additional minibatchable quantities to a trainnet() loss function
Tech support has told me that the way to do this is to supply N strings in the TargetDataFormats training options parameter. tra...

거의 2년 전 | 0

| 수락됨

답변 있음
Object-Oriented: strange behavior that leads to shared reference
The reason this occurs is documented here. Default property values are only generated once when the classdef is first instantiat...

거의 2년 전 | 0

| 수락됨

답변 있음
Extract area from elipsoidal/cirle trajectory.
load data ymin=min(y); [xx,yy]=deal(x,y); xx(end+1)=x(end); yy(end+1)=ymin; p=regions(polyshape(xx,yy)); h=arrayfun(@...

거의 2년 전 | 0

| 수락됨

답변 있음
I want all possible distinct lists of the pairs of the elements that can be made from a vector having j ones, j twos, and j threes where j is an even integer.
This code doesn't seem to do too badly. I can easily run up to j=100. As you can see from the loop limits, I find the number of ...

거의 2년 전 | 1

| 수락됨

답변 있음
How can I restart the optimization in "Optimize Live Editor"?
Not sure what you mean by "clean"? The widgets in the Live Task must always be populated with something, so if you want to run w...

거의 2년 전 | 0

답변 있음
how to remove variables of a table with a zeros in it
keep=all(yourTable{:,:},1); yourTable=yourTable(:,keep);

거의 2년 전 | 0

더 보기