Answered
How can I adjust the space between each subplot for a 5*3 subplots setup?
The subaxis function in this FEX download https://www.mathworks.com/matlabcentral/fileexchange/3696-subaxis-subplot?s_tid=srcht...

2 years ago | 0

Answered
Creating a Grid for cooridnates
and I also do pick up a few spurious spots that are'nt part of the grid If outliers are present, I would use the approach belo...

2 years ago | 0

| accepted

Answered
How can I unflatten a dimension in a neural network?
Are you using importNetworkFromPyTorch ? I feel like it should take care of all of that.

2 years ago | 0

| accepted

Answered
Reshaping 4d array into 2d matrix with a specific pattern
reshape( permute(tempC,[2,1,4,3]) ,[N*J, I*K] );

2 years ago | 1

| accepted

Answered
Wrong output graph when using ifft on rectangular pulse?
h = fftshift(ifft(ifftshift(H))); % Calculate the time axis based on the new value of S t = ((0:S-1)-ceil((S-1)/2))/S/(f(2...

2 years ago | 1

Answered
Offsetting Data Though Curve Fitting
If the stress-strain data is all linear elastic (or if you can extract a portion that is), then you could use polyfit: p=polyfi...

2 years ago | 0

Answered
Creating a Grid for cooridnates
Use histcounts2. x =[3.9988 5.4914 7.3364 130.3843 132.5535 134.5383 257.6364 259.6390 261.5130 ...

2 years ago | 1

Answered
Adjoint / inverse nufft
If your t,f sampling is going to be reused, it may be gainful to use an algebraic inversion with the help of this FEX download, ...

2 years ago | 0

Answered
Adjoint / inverse nufft
If these are your actual data sizes, an optimization approach seems to work not too badly: t = [0:300 500.5:700.5]; S = 2*sin(...

2 years ago | 0

Answered
Trapezoidal Rule of Convolution with Non-Uniform Intervals
It is not clear from your post which two functions you are convolving, so I will assume here that it is the same as your other r...

2 years ago | 0

Answered
Using Values from Tabulated Data
t = [1 2.5 3.6 4]; A = [78 80 85 96]; Afun=@(tq)interp1(t,A,tq); Afun(1) Afun(2) Afun(2.5)

2 years ago | 1

| accepted

Answered
Find all intercepts for all parameter values
As an example, y=linspace(-1,1,1000); V=sin(pi*y-0.4); %fake input data loc=diff(sign(V)) & abs(y(1:end-1))<0.5; yinterc...

2 years ago | 0

| accepted

Answered
How to graph a convolution with same time length as inputs
Convolution doesn't make sense if your time points are not equi-spaced. You should interpolate everything so that they are: t=[...

2 years ago | 0

| accepted

Answered
calculating the provide integral
A common approach is to discretize the integral and instead compute sum of squared differences (SSD), e.g., SSD=norm( interp1(x...

2 years ago | 0

Answered
How to make a solid of revolution along the y-axis for a function with complex parts?
X = 0:0.1:pi; R = sqrt(9-0.5*(X-7).^2); R(imag(R)~=0)=nan; [z,x,y] = cylinder(R); surf(x,y,z); xlabel X;ylabel Y; zlabel Z; a...

2 years ago | 1

| accepted

Answered
Use logic index to sort back to original data that are logic 1.
opts=detectImportOption('test1gofcells.xlsx'); clear data for k=numel(ix):-1:1 opts.Sheet=k; if ix(k...

2 years ago | 0

| accepted

Answered
Problem fitting the curve with fminsearch
but when I set the function to be in polynomial or sinusoidal form it does not fit the curve to the experimental like it does w...

2 years ago | 0

Answered
How to detect the object on the right?
You can use bwareafilt(BW,1) to detect the largest object in the image.

2 years ago | 0

Answered
Identify some nodes near a known node
It can help. The outliers in d below near correspond to the faces at the caps of the tube. Once you have these faces, you can u...

2 years ago | 0

Answered
Declaring a matrix with null dimension, or checking if a matrix exists
There is, but it is highly inadvisable to iteratively grow a matrix like you are doing. Here is one alternative: my_matrix=cel...

2 years ago | 0

| accepted

Answered
Is there any function that gives the smallest basic cycles of a Graph?
This might help, https://www.mathworks.com/matlabcentral/fileexchange/73630-spatialgraph2d?s_tid=srchtitle

2 years ago | 0

| accepted

Answered
rotate by a certain angle a plane in space around a node P
I can't tell from your illustration what defines the axes of rotation, but you can use this FEX download, https://www.mathworks...

2 years ago | 1

| accepted

Answered
Extrinsic calibration higher reprojection error compared to intrinsic calibration
Some possible causes? The estimates are based on intrinsics that already have some error in them. The error can only increase f...

2 years ago | 0

Answered
how to bin data
Or perhaps, [lat,lon,vals]=readvars('dataset.txt'); LAT=min(lat):2.5:max(lat); LON=min(lon):5:max(lon); G=findgroups(discr...

2 years ago | 0

Answered
how to bin data
[lat,lon,vals]=readvars('dataset.txt'); LAT=min(lat):2.5:max(lat); LON=min(lon):5:max(lon); VALS=griddata(lat,lon,vals, LAT...

2 years ago | 0

| accepted

Answered
How to call a function in a particular toolbox (or overload a function name and call the original)
You could save a handle to the true filtfilt function in a .mat file and then do something like this, function y = filtfilt(x)...

2 years ago | 0

| accepted

Answered
[Image Processing] Remove stripes / horizontal streaks in image
A=double(imread('pic.jpg')); Acorrected=A-medfilt2(A-medfilt2(A,[50,1]),[1,100]); immontage({A,Acorrected},'DisplayRang...

2 years ago | 1

| accepted

Answered
How to access struct member via a string
Here is something simiilar: airplane.cockpit.controls.throttle = 'forward'; s={'cockpit','controls'}; getfield(airplane,s...

2 years ago | 0

| accepted

Answered
"TiledChartLayout cannot be a parent." error message using pdeplot with tiledlayout
You can control the compactness of subplots using this, https://www.mathworks.com/matlabcentral/fileexchange/3696-subaxis-subpl...

2 years ago | 0

Load more