답변 있음
I cant find MLP-Mixer in MATLAB.
Maybe you can import it into Matlab from this pyTorch repository, https://github.com/lavish619/MLP-Mixer-PyTorch

2년 초과 전 | 1

답변 있음
MATLAB refuses to display blue in converted JPEG image: is showing singular blue pixels
Make sure that you, (1) Use the same caxis in both image displays, (2) Convert to double first, then divide by 255. Not the...

2년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

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

2년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

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

2년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
How to solve the error: Expected input number 2, B, to be one of these types: logical, double, categorical Instead its type was uint8?
BW_groundTruth = logical(imread('gT7001_60.png'));

2년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
[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년 초과 전 | 1

| 수락됨

더 보기