Beantwortet
how to enlarge ROI around its boundary?
Isn't there something available that operates directly on the position data of Matlab ROI objects...? You can make a polyshape ...

mehr als 2 Jahre vor | 0

Beantwortet
Trying to use function ,didnt work?
when i typed it like this it gave me error I doubt it gave you an error. It certainly doesn't give me one. You probably got a ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to use least-square fit and gaussian surface for 3D data?
This FEX file will fit a Gaussian with a constant background in any dimension, https://www.mathworks.com/matlabcentral/fileexch...

mehr als 2 Jahre vor | 1

Beantwortet
Input multiple region for polyshape
There is no unique way to divide a series of points into closed polygons. If you haven't inserted the NaNs already, the intended...

mehr als 2 Jahre vor | 0

Beantwortet
Function that makes Anonymous Functions
When I attempted this, the anonymous function contained variables instead of numerical coefficients I assume you mean that in t...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Why does argmin index of NaN array have a value of 1 and not NaN?
I imagine it is so that the logical test tf (below) will always return true. If the I output were NaN, an error message would r...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to open neural network training screen?
I don't know what you mean by the "net.mat file" and I don't think you can reopen the screen. However, if you called trainlm wit...

mehr als 2 Jahre vor | 0

Beantwortet
Numerical first derivative of irregularly spaced data
It seems to work: t=sort( rand(1,1000)*2*pi ); cos_t=gradient(sin(t))./gradient(t); I=1:20:1000; plot(t,cos(t),'b--' , t...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
removeLayers function: Incorrect number or types of inputs or outputs for function removeLayers.
Your layers variable is a Layer object array, whereas removeLayer requires the input to be a LayerGraph. It is unnecessary, in a...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
Generating numbers whose sum is 1 during genetic algorithms optimization
lb=zeros(12,1); ub=lb+1; Aeq=ub'; beq=1;

mehr als 2 Jahre vor | 0

Beantwortet
How to open new command window?
You can launch a new Matlab session with its own command window, but the way you are going about saving work is very peculiar. M...

mehr als 2 Jahre vor | 0

Beantwortet
Speeding up interpolation with scattered interpolation
Your data is gridded, so you should be using griddedInterpolant, as opposed to scatteredInterpolant. Gridded interpolation is mu...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Why does abs cause bad matlabfunction evaluation?
It is not the matlabFunction version that is evaluating things badly. It is the first version, with the double application of su...

mehr als 2 Jahre vor | 0

Beantwortet
Show img in coordinate system and perform transformations
I=flipud(imread('peppers.png')); T = [1 0 2 1]; T(3,3)=1; [Iw,R]=imwarp(I, affine2d(T')); h=imshow(Iw); ax...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
Supply partially complete Jacobian for fsolve()
and let MATLAB use its own numerical methods for the missing ones? fsolve cannot be made to do finite difference calculations ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Sum of following elements in array
sum_following = cumsum([s(2:end),0],"reverse");

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to deal with files in which rows have different numbers of columns
I think you would probably have to read the file in as a string array using readlines, and then do your own text parsing.

mehr als 2 Jahre vor | 0

Beantwortet
plot strain ellipse and principal stress axes using eigenvalues and eigevectors.
a=10; %long axis b=3; %short axis theta=30; %rotation angle p=rotate( scale(nsidedpoly(1000),[a,b]) ,theta); plot(p)

mehr als 2 Jahre vor | 0

Beantwortet
Intersections between two discretised functions
f = @(x) x.^2; x = linspace(-5, 5, 100); v1 = f(x); v2 = ones(size(v1)); X0=x(diff(sign(v1-v2))~=0); X=nan(size(X0)); ...

mehr als 2 Jahre vor | 1

Beantwortet
Im trying to implement this equation in matlab
It's normally better to use FFTs for cyclic convolution, but if you insist on doing it on the non-Fourier domain, then you can u...

mehr als 2 Jahre vor | 0

Beantwortet
exportgraphicsunusably slow and memory overruns
Try export_fig, https://www.mathworks.com/matlabcentral/fileexchange/23629-export_fig

mehr als 2 Jahre vor | 0

Beantwortet
Plot image in 2d plain and apply operations like translation/rotation and reflection
Use imrotate, imtranslate, and flip.

mehr als 2 Jahre vor | 0

Beantwortet
Manually modifying title position in tiledlayout environment
I was wondering if it is possible to move the title a little closer to the upper limit of the figure environment than it current...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
Newtons Method but error message "Singular Matrix"
Landing on a point with ill-conditioned J is a hazard of plain-vanilla Newton's method. That's why people usually don't use it. ...

mehr als 2 Jahre vor | 0

Beantwortet
Error : Unable to use a value of type optim.problemdef.OptimizationVariable as an index.
It sounds like the better approach would be to have the 4x4 binary matrix AssignedMatrix be the fundamental unknown optimization...

mehr als 2 Jahre vor | 0

Beantwortet
how to incorporate boundary conditions as constraints in fmincon optimization?
Use fcn2optimexpr to implement nonlinear constraints.

mehr als 2 Jahre vor | 0

Frage


Programmatically determine which Deep Learning layer properties contain learnables
In the Deep Learning Toolbox, there are a variety of layer object types. The display methods of these objects indicate which obj...

mehr als 2 Jahre vor | 2 Antworten | 1

2

Antworten

Beantwortet
Rotate 3D Shape so Specific Face is Normal to Given Vector
You can use this to compute the alpha and direction arguments needed for rotate. function [alpha,direction]=vecrot(vstart,vend)...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to solve large linear complex equations
Since it is a linear and unconstrained system of equations, just use mldivide, \

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Help with parametrizing a function and creating points
syms x y P [1,2] syms r(t) P1=[x1, y1]; P2=[x2, y2]; r(t)=P1+t*(P2-P1)

mehr als 2 Jahre vor | 0

| akzeptiert

Mehr laden