Respondida
Plot line with points at given distance
This may help, https://www.mathworks.com/matlabcentral/fileexchange/34874-interparc

más de 4 años hace | 1

Respondida
Doing an example find the optimal state and optimal control based on minimizing the performance index, Fmincon error of scalar value
Do as the error message says. Test your cost function on its own and make sure it returns a scalar value before applying fmincon...

más de 4 años hace | 0

Respondida
3-d order derivative
If the points are too close together, the difference between neighbours will be so small as to be dominated by floating point er...

más de 4 años hace | 1

Respondida
Optimise a reference that cuts my curve into 2 equal sections
midline = trapz(x,y)/(max(x)-min(x))

más de 4 años hace | 0

Respondida
Solve an equation not getting a result
>> solve(increment1==((1/3)*(k/(1+evide0))*((x-s1(i-1))/x))+((1/3*G)*(x-s1(i-1))) ,x) ans = -2.6278e-06

más de 4 años hace | 0

Respondida
How to align the center of mass of two density functions?
xa=1:length(Na); xb=1:length(Nb); Nb=Nb + trapz(xa,Na.*xa) - trapz(xa,Na.*xa);

más de 4 años hace | 0

Respondida
How to assign character/string in the for loop
name={flist.name}; n=numel(name); S.(fname)=cell(n,1); for i=1:1 S.(fname){i}=load(flist(i).name; end

más de 4 años hace | 0

| aceptada

Respondida
Close a specific area but do not close all the others
What if you convert the interior of the bubbles to foreground? load BW N=round(numel(BW)/10); BW=~BW; BW0=BW; BW=bwarea...

más de 4 años hace | 0

| aceptada

Respondida
How to display -180 to 180 in a loop
mod(180:5:360+180,360)

más de 4 años hace | 0

Respondida
z1 and x variables in algebraic equations
"The equations that I am trying to solve are quite big that even wolfram does not provide a 'legible' answer." There is no poin...

más de 4 años hace | 0

| aceptada

Respondida
value of delta(w-w0) ?
The original expression that you gave is the simplest expression for the spectrum.

más de 4 años hace | 0

Respondida
How to resize multiple folder images and save it in MATLAB?
Yes, that should be easy, but you haven't told us what part of it you're having difficulty with. If I had to guess, you are stru...

casi 5 años hace | 0

Respondida
How to solve an equation with matrices?
Kx=( (B*Delta)\(Am-A) ).'; Kr=( (B*Delta)\(Bm) ).';

casi 5 años hace | 0

| aceptada

Respondida
slp method to minimize function
The error message was generated by your own code, in this line assert(length(x)==5, "x should be 5 elements long, but instead ...

alrededor de 5 años hace | 0

Respondida
why vectorize function is not recommended?
A warning without an explanation is not a real warning. I say you just ignore it.

más de 5 años hace | 2

Respondida
Problems running gpuArray function - CUDA driver
Matlab R2020a requires CUDA Toolkit 10.1.

más de 5 años hace | 0

Respondida
EDITED: Variance when only one observation is not NaN
Omit 'omitnan'

más de 5 años hace | 0

Respondida
3D reconstruction from a 2D image
and I tried to use streo calibrator but it is giving error ' Dimensions of arrays being concatenated are not consistent matlab '...

más de 5 años hace | 0

Respondida
Line length and orientation angle of two or more intersecting lines
You should probably be using houghlines instead of regionprops.

más de 5 años hace | 0

| aceptada

Respondida
naming using a string function
s.(x)=B

más de 5 años hace | 0

Respondida
Accessing subclass methods from abstract superclass
classdef (Abstract) ParentClass %PARENTCLASS Testing properties of abstract classes methods (Abstract = true, St...

más de 5 años hace | 0

Respondida
Indexing a 3D matrix with a 2D matrix
units=sub2ind([G,N],units,repmat(1:N,G,1) ); L(:,units)=temp(:,:);

más de 5 años hace | 0

Respondida
Extract the center of the coarse curve of binary image
bwskel(~Image)

más de 5 años hace | 0

Respondida
Plotting exponential periodic function
What should you do? You should correct whatever mistake it is you made.

más de 5 años hace | 0

Pregunta


Make axis background transparent
Is there an alpha parameter that sets the transparency of a plot's background axis color? I would like to be able to export a pl...

casi 6 años hace | 1 respuesta | 1

1

respuesta

Respondida
accessing cell data using brace indexing,
You need to check what predictors really is. It is not a cell array, as you believe.

más de 6 años hace | 0

Respondida
Load mat files more efficiently than if, elseif statement
filename=fullfile('Documents/event_picks', "event"+events); S=load(filename); x1=S.x1; y1=S.y1;

más de 6 años hace | 0

| aceptada

Respondida
How to find min, max, and movmean for each page in multidimensional arrays
MIN=min(A,[],[1,2]); MAX=max(A,[],[1,2]); MOVMEAN=convn(A,ones(1,k)/k,'valid');

más de 6 años hace | 0

Respondida
How can I use graph object info to find: areas, number of sides, and perimeter lengths of a each connected polygon within a network of polygons?
Your attachment doesn't contain a graph object. However, perhaps it will help to mention that if you have the vertices of a poly...

más de 6 años hace | 0

Respondida
Could someone write some code to extract details within a for loop?
Something like this.... function stuff=getStuff(tgraph,arcNumber) AP=tgraph.ArcPoints; i=arcNumber; ...

más de 6 años hace | 0

Cargar más