已回答
Fixed-distance of legend outside plot axes
is there any "simple" parameter (i.e., not position) which controls the vertical distance between the legend box and the upper e...

2 months 前 | 1

| 已接受

已回答
the arc using the chord
Assume the chord is of length L and, with no loss of generality, assume also that it is aligned with the x-axis with end points ...

2 months 前 | 1

已回答
Dot Multiplication in MATLAB
For matrices A and B, the rule is generally that A.* B is element-by-element multiplication a(i,j).*b(i,j), which means that nor...

2 months 前 | 1

| 已接受

已回答
Find paths in graph that satisfy specific condition
s=[17,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,30,30]; t=[18,19,20,21,22,23,24,25,26,27,28...

2 months 前 | 0

| 已接受

已回答
Getting error in fmincon with below code how to correct it
You seem to be trying to minimize over a space of functionals, F. You cannot do that with fmincon. The objective must be a funct...

2 months 前 | 0

已回答
How to plot a grouped bar chart?
https://www.mathworks.com/help/matlab/ref/bar.html#bthxce9

2 months 前 | 1

| 已接受

已回答
Subdivide a figure with a grid (as in Timescope)
Something like this, perhaps? t=tiledlayout(2,2); for i=1:4, nexttile(t), plot(rand(1,4)); grid on; end background=axes('Po...

2 months 前 | 0

已回答
vectorized operations on symbolic functions
syms x1 x2 x3; % symbolic variables y = x1^3/3 + x2^2/2 - x3; % symbolic function y X = rand(500,3); % each row representing a...

2 months 前 | 1

已回答
How to add an image to the current axes without replacing existing plots
You can use hold fcontour(@(x,y) (x-50).^2+(y-50).^2,[20,80],'m'); hold on imshow(imread('cameraman.tif')); hold off h=gc...

2 months 前 | 0

已回答
Restart Fmincon Optimization from Checkpoint File
No, unfortunately. Restarting from the last point is probably the best you can do. Although, apart from the interior-point algor...

2 months 前 | 0

| 已接受

已回答
Image semantic segmentation dimension layer why not match input and output
Below is what analyzeNetwork gives. Only you know what you want the dimensions of each of your activation maps to be. Tell us at...

2 months 前 | 0

| 已接受

已回答
Combining two arrays using a seconds order
number = randperm(10, 10) number2 = randperm(10, 10) I=ismember(number2,number(1:5)); number(1:5)=number2(I)

2 months 前 | 0

| 已接受

已回答
How can I calculate the unique centroids along with its radius range ?
load data; threshold=2; %Example input T=sortrows(table(Centroid, Radius),2) Centroid=T.Centroid; Radius=T.Radius; D=pdi...

2 months 前 | 1

| 已接受

已回答
Profile and debug load function
You could pursue your hypothesis by extracting the table from an object, then saving the idnlarx column to its own .mat file. Th...

2 months 前 | 0

已回答
Struct field name with space or special character
Another option is to use dictionaries, which are a bit more similar to structs than tables, e.g. secretID=["Steve Rogers", "Ton...

2 months 前 | 1

已回答
How do I mark all critical points on a graph of a function?
syms x; f=(sin(x)+(1/3)*(cos(5*x))); v=matlabFunction( diff(f) ); f=matlabFunction(f); x=linspace(0,2*pi,1e5); loc=find(g...

2 months 前 | 1

| 已接受

已回答
How do I add transparency to a plot in the Live Editor?
The syntax of giving an RGBA color setting seems to be a very old and undocumented feature, https://undocumentedmatlab.com/arti...

2 months 前 | 1

提问


Plotting lines with quadruplets R-G-B-Alpha ?
It appears that in recent Matlab, I am able to append a 4th number to the RGB triplet, which appears to set either a transparenc...

2 months 前 | 2 个回答 | 0

2

个回答

已回答
identifying and isolating consecutive numbers
code that will split A into B = [1 2 3 4] C = [14 15] D = [23 24 25] It would be a bad idea to split A into separate variables,...

2 months 前 | 1

| 已接受

已回答
Modifying the objective function in order to meet the optimization variable boundaries
If the boundaries are given by simple lower and upper bound vectors lb and ub, you can do, function fun=objective(A,lb,ub) ...

2 months 前 | 0

提问


Where is dlfeval tracing information stored?
When dlfeval() is used to call a function, the computation is traced in such a way as to later allow automatic differentiation v...

2 months 前 | 1 个回答 | 0

1

个回答

已回答
3D image alignment: How to extract rotation angles about "static" x,y,z axes from a 3x3 rotation matrix
Attached is the utility that I use. In alignment with what you are pursuing, the code does assume the rotation matrix is a colum...

2 months 前 | 0

已回答
Divide circular rings in N angular portions
The problem is that the angular portions do not have the same number of elements That's because the image is discretized into p...

2 months 前 | 1

| 已接受

已回答
Error in table row subscript
In what way is this not what you want? Northpopulation = readtable("LN_NEXTGROWTH.csv"); %LN = []; <-----You don't need this ...

2 months 前 | 0

已回答
how can I plot a 3-D helical trajectory
t=linspace(0,18*pi, 3000); plot3(2*cos(t), 2*sin(t), t/pi)

2 months 前 | 0

已回答
How to calculate spray cone angle?
load Image BW = imfill( bwareafilt(imclose(entropyfilt(im2gray(Image))>4.5,strel('disk',5)),1),'holes'); BW=bwareafilt(~im...

2 months 前 | 1

已回答
Array indices must be positive integers or logical values.
fx = @(X) X.^2-1-sin(X);

2 months 前 | 0

| 已接受

已回答
Compare Elements in 2 Arrays
Gen_Excess=min(Gen_Excess,Batt_cap);

2 months 前 | 0

| 已接受

已回答
Change function name everywhere
There is a Find-and-Replace app on the File Exchange that can recurse through mfiles in a folder structure and replace text: ht...

2 months 前 | 0

已回答
dlgradient of a subset of variables
This seems to work: X0 = dlarray( [1; 2; 3; 4]*10 ); subset=[2,3]; gradTotal = getGradient(X0) %total gradient gradSubse...

2 months 前 | 1

| 已接受

加载更多