Answered
How to download polyparci file and run it with matlab code becsause there iss no polyparci command in-built of MATLAB
This might be it: https://www.mathworks.com/matlabcentral/fileexchange/39126-polyparci?s_tid=srchtitle

5 years ago | 0

Answered
How to do Interpolation for paired images.?
This might help, https://www.mathworks.com/matlabcentral/fileexchange/22665-n-dimensional-fourier-interpolation

5 years ago | 0

Answered
Plotting a logical function if a value is greater than 0
Something like this? tor=1:10; AG=tor>5; y=double(AG); y(~AG)=nan; h=plot(tor,y); xlim([min(tor),max(tor)]);xlabel 'tor',...

5 years ago | 0

Answered
Implicit plane curve discretization
fp=fimplicit(@(x,y) x.^2 + 2*y.^2 - 1); %Example Points=[fp.XData;fp.YData]

5 years ago | 3

| accepted

Answered
Selecting a block of values in a matrix.
Loops are not needed. Using sepblockfun (which you must Download) yourMatrix=randi(100,10); %example result=repelem(sepblock...

5 years ago | 0

Answered
How to draw 2D object with plot 3D matlab
The command cylinder() will be helpful. This example in particular, https://www.mathworks.com/help/matlab/ref/cylinder.html#mw_...

5 years ago | 1

| accepted

Answered
How to add uniform noise to image with median and standard deviation
I've never heard of "noise" with non-zero mean/median, but generating it is straightforward, delta=standardDeviation*sqrt(12); ...

5 years ago | 0

| accepted

Answered
How to Check if a cell equals a word in a table
As an example, x=cell2table({'dog','paper','cat','fish','paper'}.') paper=nnz( string(x{:,1})=="paper") otherstuff=size...

5 years ago | 0

Answered
Nested structs and objects - do or don't?
Ultimately, it depends on the situation and the data access patterns that you are going to need. As a rule of thumb, I don't thi...

5 years ago | 1

| accepted

Answered
How to call columns of matrices using 'for loop' ?
for i=1:3 Approx{i}= U(:,1:i)*S(1:i,1:i)*V(:,1:i).'; end

5 years ago | 0

| accepted

Answered
How to modify selected rows of one variable in table
fun=@(c) interp1(IzeroAugInCell(:,1),IzeroAugInCell(:,2), c); ListNexafs.uhvI0(tmpMatch) = cellfun(fun, ListNexafs.xRayEkin_e...

5 years ago | 0

| accepted

Answered
How can I delete the rows if they have a NaN value?
keep=~isnan(x); x=x(keep); y=y(keep);

5 years ago | 1

| accepted

Answered
calculating with many different parameters
I want to plot y with 1 value from z, 1 value from a, while showing all result for x = [1 2 3]. To me, this sounds like you ar...

5 years ago | 1

Answered
gpu computing and parallel computing (vectorize code)
b=max(0, floor( (1e4-S)/dt) )*dt + S;

5 years ago | 0

Answered
set extrapolation to connect last point values to the first (extrapolated) ones with interp1
Is this what you want? y = [788.54 827.7 846.66 960.09 136.16 53.991 36.994 904.47 882.32 1417.8 1191.6 154.91]; x = [15 45 74...

5 years ago | 0

| accepted

Answered
FZERO error with matrix dimensions
You can trap the occurrence of the error using dbstop if caught error

5 years ago | 0

| accepted

Answered
separate connected component in two or more regions based on certain criteria
bwareaopen will accomplish item (1) straightforwardly. Other than that, since you haven't committed to a precise separation crit...

5 years ago | 1

Answered
How to use splitapply with fitlm
Your regression(y) function takes an argument y that is never used.

5 years ago | 0

| accepted

Answered
Plotting a non linear equation.
You could try fimplicit, https://www.mathworks.com/help//matlab/ref/fimplicit.html

5 years ago | 1

Answered
Max and Min for every change of integer?
Using your example, data=[1 8 0 1 10 0 1 12 0 2 10 8 2 11 10 2 0 12 3 0 5...

5 years ago | 1

| accepted

Answered
guesses of parameters in fmincon do not satisfy the constraints in nonlcon
Did fmincon report successful convergence? The code you've shown doesn't call fmincon with the exitflag output or show the exit ...

5 years ago | 0

| accepted

Answered
Multiple faces merging into a single face when using alphaShape()
If you have R2020b, I think you can just do this: n=9;% The number of sides of the polygon m=0:n-1; rootvec=10*exp(1i*2*pi*m/...

5 years ago | 0

| accepted

Answered
Multiple faces merging into a single face when using alphaShape()
I'm not familiar with how geometryFromMesh works, but using lcon2vert (which you must Download), you can generate a cell array c...

5 years ago | 0

Answered
fminunc throws an error; can't access source of error
Since you are apparently trying to fit a Gaussian lobe to your data, you might find it helpful to use gaussfitn (which you must ...

5 years ago | 0

Answered
Multiple faces merging into a single face when using alphaShape()
I don't think you need polyshape here. Because the shape is always convex, all facets are boundary facets and the facet matrix c...

5 years ago | 0

Answered
delete zeros in cell array
Using the attached file sortlidx.m, cellarr = {'b','a','a','a','b';0,'c',0,'b',[];0,'a',0,'d',0;'a','a','b',[],[]} map=cellf...

5 years ago | 1

| accepted

Answered
Finding the value of x for a corresponding known y value for a curve
find(diff(sign(ucn-143))~=0,1) + 1

5 years ago | 0

| accepted

Answered
How to create a 3D stack using 2D images
Are you sure you need to do that? It seems like a waste of memory to copy the same image 10 times. If you're sure it's what you...

5 years ago | 0

Question


TightInset in conjunction with "axis image"
According to the documentation, the TightInset axes property is defined as "the distances between the bounds of the Position pro...

5 years ago | 0 answers | 1

0

answers

Answered
FSOLVE requires all values returned by functions to be of data type double.
Get rid of syms a b c d e Write your equations in terms of the numeric variables V(i) instead. Do not use syms anywhere.

5 years ago | 0

Load more