Answered

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

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

10 months ago | 0

Answered

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);

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);

10 months ago | 0

Answered

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

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

10 months ago | 0

| accepted

Answered

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...

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...

1 year ago | 0

| accepted

Answered

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...

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...

1 year ago | 0

| accepted

Answered

value of delta(w-w0) ?

The original expression that you gave is the simplest expression for the spectrum.

value of delta(w-w0) ?

The original expression that you gave is the simplest expression for the spectrum.

1 year ago | 0

Answered

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...

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...

1 year ago | 0

Answered

How to solve an equation with matrices?

Kx=( (B*Delta)\(Am-A) ).'; Kr=( (B*Delta)\(Bm) ).';

How to solve an equation with matrices?

Kx=( (B*Delta)\(Am-A) ).'; Kr=( (B*Delta)\(Bm) ).';

1 year ago | 0

| accepted

Answered

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 ...

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 ...

1 year ago | 0

Answered

why vectorize function is not recommended?

A warning without an explanation is not a real warning. I say you just ignore it.

why vectorize function is not recommended?

A warning without an explanation is not a real warning. I say you just ignore it.

2 years ago | 2

Answered

Problems running gpuArray function - CUDA driver

Matlab R2020a requires CUDA Toolkit 10.1.

Problems running gpuArray function - CUDA driver

Matlab R2020a requires CUDA Toolkit 10.1.

2 years ago | 0

Answered

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 '...

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 '...

2 years ago | 0

Answered

Line length and orientation angle of two or more intersecting lines

You should probably be using houghlines instead of regionprops.

Line length and orientation angle of two or more intersecting lines

You should probably be using houghlines instead of regionprops.

2 years ago | 0

| accepted

Answered

Accessing subclass methods from abstract superclass

classdef (Abstract) ParentClass %PARENTCLASS Testing properties of abstract classes methods (Abstract = true, St...

Accessing subclass methods from abstract superclass

classdef (Abstract) ParentClass %PARENTCLASS Testing properties of abstract classes methods (Abstract = true, St...

2 years ago | 0

Answered

Indexing a 3D matrix with a 2D matrix

units=sub2ind([G,N],units,repmat(1:N,G,1) ); L(:,units)=temp(:,:);

Indexing a 3D matrix with a 2D matrix

units=sub2ind([G,N],units,repmat(1:N,G,1) ); L(:,units)=temp(:,:);

2 years ago | 0

Answered

Plotting exponential periodic function

What should you do? You should correct whatever mistake it is you made.

Plotting exponential periodic function

What should you do? You should correct whatever mistake it is you made.

2 years ago | 0

Question

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...

2 years ago | 1 answer | 1

Answered

accessing cell data using brace indexing,

You need to check what predictors really is. It is not a cell array, as you believe.

accessing cell data using brace indexing,

You need to check what predictors really is. It is not a cell array, as you believe.

3 years ago | 0

Answered

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;

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;

3 years ago | 0

| accepted

Answered

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');

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');

3 years ago | 0

Answered

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...

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...

3 years ago | 0

Answered

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; ...

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; ...

3 years ago | 0

Question

Why is help() malfunctioning

Matlab seems to know that the help command is there, at least as far as which() is concerned >> which -all help C:\Program Fil...

3 years ago | 2 answers | 0

Answered

Integrating a function including mvnpdf. Error: Input function must return 'double' or 'single' values. Found 'sym'.

Yes, that is the reason. Maybe you have made sigma or mu symbolic variables?

Integrating a function including mvnpdf. Error: Input function must return 'double' or 'single' values. Found 'sym'.

Yes, that is the reason. Maybe you have made sigma or mu symbolic variables?

3 years ago | 0

Answered

Plotting two functions with ranges in one plot

You could also edit away the data points you don't want h=plot(x, M1, x, M2); ylim([-120,20]); h(1).XData(6:7)=[]; h(...

Plotting two functions with ranges in one plot

You could also edit away the data points you don't want h=plot(x, M1, x, M2); ylim([-120,20]); h(1).XData(6:7)=[]; h(...

3 years ago | 0

Answered

Using relative tolerance with fmincon

Can you please update the document that stated that tolerances are absolute (it was posted by MATLAB staff)? No, we cannot. On...

Using relative tolerance with fmincon

Can you please update the document that stated that tolerances are absolute (it was posted by MATLAB staff)? No, we cannot. On...

3 years ago | 0