回答済み
Calculation of the surface area of a generic solid
One way might be to read the stl file into a triangulation object using stlread. With the triangulation object, you can use free...

14日 前 | 0

送信済み


spatialgraph2D
Creates a graph object with 2D spatial locations associated with the nodes

15日 前 | ダウンロード 7 件 |

Thumbnail

回答済み
Removing all elements from a struct field
[aap.acq_details.sessions.name]=deal([])

16日 前 | 0

回答済み
Concatenate into a matrix is not saving and is overriding every iteration?
Ns=numel(subjs); Nt=numel(time); percent_change=cell(Ns,1); for s = 1:Ns subj = subjs{s}; for i = Nt:-1:1 ...

16日 前 | 1

| 採用済み

回答済み
How to create transformation matrix
You wouldn't use a transformation matrix to execute a deformation like that. You would just use griddedInterpolant or interp3 to...

17日 前 | 0

回答済み
Revolving a 2D plot around its vertical axis to generate 3D surface
https://www.mathworks.com/matlabcentral/answers/1716995-revolving-a-curve-about-the-y-axis-to-generate-a-3d-surface#answer_96206...

17日 前 | 0

| 採用済み

回答済み
How to pass from a set of points to lines interpolating them?
Image=load('codice_opcode.mat').out; B=bwboundaries(Image); B(1)=[]; imagesc(Image); colormap(gray); axis image; hold on...

18日 前 | 0

| 採用済み

回答済み
How to group logical numbers in a vector?
Use this: https://www.mathworks.com/matlabcentral/fileexchange/78008-tools-for-processing-consecutive-repetitions-in-vectors ...

18日 前 | 0

| 採用済み

回答済み
Cycle for to save a matrix
[nr,mr]=size(Range_compression); [time_compression,range_compressed]=deal(nan(nr,mr)); for i=1:mr [time_compression(...

20日 前 | 0

| 採用済み

回答済み
Find pattern in vector while ignoring/skipping certain indices
vec=[0 4 1 0 6 5 0 8 7, 3 3 3 , 0 4 2 0 6 4 0 8 6]; %patterns start at i=1 and i=13 pat = [0 4 nan 0 6 nan 0 8 nan]; ...

20日 前 | 0

回答済み
How do I convolve a periodic rect function with comb function
Another possibility is to download interpMatrix https://www.mathworks.com/matlabcentral/fileexchange/26292-regular-control-poin...

20日 前 | 0

回答済み
How do I convolve a periodic rect function with comb function
X=1; Y=2; rect=@(s) 0<=s & s<=1/2; r=@(s) rect(mod(s+1/4,1)); [x,y]=meshgrid(-3*X:0.01:+3*X, -3*Y:0.01:+3*Y); P=r(x/X).*...

20日 前 | 0

| 採用済み

回答済み
Multiple toolboxes with lots of redundant features?
The issue you've raised would only be a problematic one if it somehow forced people to buy more toolboxes than they should need....

21日 前 | 0

回答済み
How to plot the following surface
fsurf(@(x,y) sqrt(x.^2+y.^2)+1, [-3 3 -3 3] ) zlim([1,3])

21日 前 | 1

| 採用済み

回答済み
How to plot the following surface
fimplicit3(@(x,y,z) (z-1).^2-x.^2-y.^2, [-3 3 -3 3 1 3] )

21日 前 | 1

回答済み
Sum elements over indices in cell array
Once you've split things into cells, there is nothing faster than a loop. The better data organization would be to use group lab...

21日 前 | 0

| 採用済み

回答済み
How to Handle Estimating Parameters With MLE and Fmincon Errors
The error is thrown because your confun tries to return a variable called ceq which you never create. You do create a variable c...

21日 前 | 0

回答済み
Sorting coordinates on radial distance from origin
Here's one way to do that: [~,distance] = cart2pol(x-x0,y-y0); %distances from (x0,y0) count = nnz(dist_Lower<=distance & d...

21日 前 | 0

回答済み
Hello everybody I have a question . I have a cuboid shape, I want to calculate all the points within this figure as x,y values and save to workspace>
tf = inpolygon(xq,yq,[2.23 0.1404 8.258 10.37],[14.95 0.9339 1.579 15.61 ]); x=xq(tf); y=yq(tf);

21日 前 | 0

回答済み
Add cells into a square
ex = [0 1 1 0]; ey = [0 0 1 1]; pgon = scale(polyshape(ex,ey),1/4); %prototype [I,J]=ndgrid((0:3)/4); pgon=arrayfun(@(...

21日 前 | 0

回答済み
Suggestions to speed up FFT of convolution
If you have R2022a, Mhelp=repmat(M,[rep(1),rep(2),rep(3),1]); %Fourier transform ftM=fftn(-Mhelp,[nxP nyP n...

21日 前 | 1

回答済み
Suggestions to speed up FFT of convolution
I see a doubling of the speed if you re-organize your4D and 5D arrays as cell arrays: Mhelp=num2cell(Mhelp,[1,2,3]); ftN=squee...

22日 前 | 1

回答済み
How to remove a range of rows from all nested structures of a parent structure?
s.a.f=[1,2,3]; s.b.f=[4,5,6]; s.a,s.b for F=string(fieldnames(s)') s.(F)=structfun(@(f)f(1), s.(F),'uni',0); ...

22日 前 | 0

回答済み
Summation of column elements of matrix A from index values of matrix B
A=randi(10,3) , B=randi(10,3); [m,n]=size(B); [~,I]=sort(B), J=repmat((1:n)',1,m); D=sum( A( sub2ind(size(A),...

23日 前 | 0

| 採用済み

回答済み
MATLAB lsqcurvefitting using real data
This example shows how to read data from a specified sheet, https://www.mathworks.com/help/matlab/ref/readmatrix.html#mw_8ad99a...

23日 前 | 0

回答済み
Overloading math operations on cell arrays
I don't want to define a class, but just add cell arrays without fuss. What's the big deal with defining a class? See attached...

23日 前 | 0

回答済み
Operands to the logical AND (&&) and OR (||) operators must be convertible to logical scalar values. Use the ANY or ALL functions to reduce operands to logical scalar values.
As you can see from the debugger screenshot your t does not remain a scalar as your code loops. Is that supposed to happen, and ...

23日 前 | 0

回答済み
What is the difference between valuechangedfcn and valuechangingfcn?
Is that for doing something when a user clicks within the field and has not yet finished entering the new value, and the GUI wou...

23日 前 | 2

回答済み
valid indices in a parfor loop
You are trying to use the parfor loop to fill a pre-existing matrix mat. The only type of parfor variable for which this is allo...

23日 前 | 0

| 採用済み

回答済み
Solving the linear equation
Because you have 72 equations and only 9 unknowns. The system is over-determined.

23日 前 | 1

| 採用済み

もっと読み込む