Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
How to detect the object on the right?
You can use bwareafilt(BW,1) to detect the largest object in the image.

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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'));

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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)...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
[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...

presque 3 ans il y a | 1

| A accepté

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

presque 3 ans il y a | 0

| A accepté

Réponse apportée
"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...

presque 3 ans il y a | 0

Réponse apportée
histogram for each column of 3d matrix
Something like this, perhaps: A=rand(8,8,1000); binwidth=0.1; %Fake input data edges=0:binwidth:1; Hist=num2cell(resha...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Linear Interpolation code without using interp1
function ynew = interpolate(n,x,n2) %Doesn't use interp1 F=griddedInterpolant(n,x); ynew=F(n2); end

presque 3 ans il y a | 0

Réponse apportée
Linear Interpolation code without using interp1
n=1:8; x=rand(size(n)); n2=[1.8, 3.2, 6.7]; interp1(n,x,n2) interpolate(n,x,n2) function ynew = interpolate(n,x,n2) ...

presque 3 ans il y a | 1

Réponse apportée
Plot a struct field that is an array of doubles
plot([data.BO], vertcat(data.tota),'o')

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Nesting of tiledlayout objects not possible in R2019b?
I also looked into the documentation and found nothing about changes regarding Children and Parents since introduction in R2019b...

presque 3 ans il y a | 2

Réponse apportée
Optimization in a for loop
Perhaps this is what you wanted. If so, it is a rather ill-posed problem, because your C matrix is only rank 1. %Input data (ou...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Values on plot do not match manually inputted values for an anonymous function.
Your defintiion of t is not using element-wise ./ and .* operators.

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Moving sum with variable window
x = 1:20; y = [1 2 3 4 2 5 3 7 2 4 5 4 7 6 3 9 5 5 3 6]; n=numel(x); c=[0,cumsum(x)]; s=c(2:end)-c((2:n+1)-y)

presque 3 ans il y a | 3

| A accepté

Réponse apportée
How can I make a plate rotates around the central axis.
This should be helpful: https://www.mathworks.com/matlabcentral/fileexchange/30864-3d-rotation-about-shifted-axis

presque 3 ans il y a | 0

| A accepté

Réponse apportée
lsqnonlin (interior-point) vs fmincon (interior-point): different converged solutions
It's a non-convex problem, so it can have multiple solutions, some possibly local/sub-optimal. There is no guaranteeing that dif...

presque 3 ans il y a | 0

Réponse apportée
For-loop finding the difference between 7 different arrays
T=cat(3, t1,t2,t3,t4,t5,t6,t7); A = T-tref;

presque 3 ans il y a | 0

Réponse apportée
Calculating the differences of elements in an array
tsorted = sort(t-t(1))

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Why is assignment with RedefinesParen so slow
Here is the proper way to time the operations. The difference isn't that big. x = TestCustomParen; x.X=rand(500); y=x.X; a...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
No of cores selection
And I use MATLAB 2022b. I want my MATLAB to use all the cores avaialable. That should happen automatically. And I want to us...

presque 3 ans il y a | 1

Charger plus