Réponse apportée
How can I create a function with several summations and Kronecker delta symbol in two dimension?
Here is the code, I do not check careful though % Dummy data alpha = [0 1; 1, 0; 1, 1; 2, 0; 0, 2]; beta ...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
How to update GUI in matlab App during a callback
Try to force refresh with drawnow % Button pushed function: LoadButton function LoadButtonPushed(app, event) set(app.LoadBu...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
How can I make a integration with trapz?
Note: The value is negative since x goes backward. v=[2.2696;2.2696; 2.4646;2.4646;2.6775;2.6775; 2.9101;2.9101;3.1644]; x=[0 ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Adding nodes from a sub-graph to a larger graph
Build Abig as adjacent matrix of empty graph with 6 nodes, then insert A to Abig A = [0 0 1; 0 0 1; ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How can a curved surface be generated with a thickness and density?
To generate random close surface, one might use spherical harmonics basis to deform a sphere. There is many library on FEX, I ch...

environ 4 ans il y a | 0

Réponse apportée
Create a long rectangular signal with a function handle
myfun = @(t) mod(t,1)<=0.5; ezplot(myfun, 0, 20)

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Making Graph from Delaunay Triangulation
The plot of graph the graph is not supposed to respect the distance, only connectivity. Since it 's not always possible to proje...

environ 4 ans il y a | 1

Réponse apportée
How to run a Matlab script asynchronously from a Matlab app?
@Jan Bartels "The problem is that run("Matlab_File.m") is a blocking call, so even if I click on the "StartDataCollectionButton"...

environ 4 ans il y a | 0

Réponse apportée
How to vary an element in a matrix?
If you have latest R2022a, use eig2 FEX (we are still waiting for TMW to implement pageeig) % System parameters k1=0.5*180:1.5...

environ 4 ans il y a | 0

Réponse apportée
My eig function worked once and then broke
Don't use symbolic variable to build your matrices.

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How Do I Move a Set of (x,y,z) Points so they Align with the X-Y Plane?
I guess what you describe as "but flatten it down from its z position"" or "move down" is that you want to rotate about the axis...

environ 4 ans il y a | 0

Réponse apportée
Adding array to the end of another array
a=[ 1 2 3 4]; b=[ 5 6 7 8]; a = [a b]

environ 4 ans il y a | 1

Réponse apportée
ppval and polyval giving different results
Here is a correct way to know how ppval works pp=spline(cumsum(rand(1,10)),rand(1,10)); x=3; ppval(pp,x) % i=discretize(...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Matlab doesn't release the C code execution until completion of the script
MATLAB is essential sequential/blocking behavior. Whereas you call a function from C or Matlab yo have to wait until completion....

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Sampling from a population so that the sample has a target mean/median.
This is for "mean" (EDIT code for fixing BUG) % Generate 1e6 Dummy Data test A=10+sum(30*rand(1e6,3),2); % number of subsampl...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Create a new matrix
A=[ 4 2 7 4 3 5 6 8 8 1]; B= [4 6 7 8]; C = A(all(ismember(A,B),2),:)

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Can matlab read binary real*8 data written by fortran?
Normally it's just a binary file of doubles fid = fopen(BinFilename,'rb'); data = fread(fid, 'double'); fclose(fid); you'll ...

environ 4 ans il y a | 0

Réponse apportée
How can solving the boundary value problem using piece-wise linear finite elements on a uniform grid.
Just for fun (remind me my youth), it actually takes as little as 10 lines of MATLAB to solve it. % number of dicretization int...

environ 4 ans il y a | 0

Réponse apportée
Generate Polynomial Expansion Orders as a matrix
You can use this FEX (also attached) allVL1(4,2,'<=')

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Create least squares fit for linear combinations
I also make a flawed code of total leat squares earlier (under comment of Matt's answer), since dx and dxy are correlated so my ...

environ 4 ans il y a | 0

Réponse apportée
How to get Matlab stop on my file upon error?
The problem has been solved in R2022a. Under R2021b here is the stack when debugger stops, one can see there is a dirty try/ca...

environ 4 ans il y a | 2

| A accepté

Réponse apportée
Find complementary column combination of a matrix
I start with MaxA, brute force method % Dummy test A = [8 4 0 8 8 4 8 0 8 0 4 0 4 0 0]; V = max(A,[ ],2); M...

environ 4 ans il y a | 0

| A accepté

Question


Editor autocompletion frustration !
The feature is nice and in the same time very frustrating. Impossible to me to type a new variable name without the editor tryin...

environ 4 ans il y a | 1 réponse | 2

1

réponse

Réponse apportée
How can i implement following sum notation ?
call (without y=...) soru(2,4) Your function is not supposed to return any output

environ 4 ans il y a | 1

Réponse apportée
how to distinguish fft frequency is real existence or noise
You need to have a priori knowledge of the spectrum of the signal and the noise, and design an appropriate noise filter if the ...

environ 4 ans il y a | 1

Réponse apportée
Creating an array for a set number iterations
F = 100000; i = 3; Ct= F*0.04.*ones(1,i); Ct(end) = Ct(end)+F

environ 4 ans il y a | 0

Réponse apportée
superimposition of two similar 3D files without deformations
There are a bunch of ICP implementation in File Exchange

environ 4 ans il y a | 0

Réponse apportée
Recognizing properties, methods and function names in Matlab code.
None of that is true. Some counter examples: set(obj, 'property', value) mymeth(obj, ...) obj.mymeth % no argument feval('my...

environ 4 ans il y a | 0

Réponse apportée
partition column randomly in to three columns
A=rand(20,1) reshape(A(randperm(end,end-mod(end,3))),[],3)

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How to show the roots of a polynomial in complex numbers?
Replace your fprintf statements with : fprintf('Root 1: x = %s \n',num2str(x1)) fprintf('Root 2: x = %s \n',num2str(x2))

environ 4 ans il y a | 0

| A accepté

Charger plus