回答済み
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 ...

約4年 前 | 1

| 採用済み

回答済み
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...

約4年 前 | 1

| 採用済み

回答済み
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 ...

約4年 前 | 0

| 採用済み

回答済み
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; ...

約4年 前 | 0

| 採用済み

回答済み
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...

約4年 前 | 0

回答済み
Create a long rectangular signal with a function handle
myfun = @(t) mod(t,1)<=0.5; ezplot(myfun, 0, 20)

約4年 前 | 1

| 採用済み

回答済み
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...

約4年 前 | 1

回答済み
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"...

約4年 前 | 0

回答済み
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...

約4年 前 | 0

回答済み
My eig function worked once and then broke
Don't use symbolic variable to build your matrices.

約4年 前 | 0

| 採用済み

回答済み
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...

約4年 前 | 0

回答済み
Adding array to the end of another array
a=[ 1 2 3 4]; b=[ 5 6 7 8]; a = [a b]

約4年 前 | 1

回答済み
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(...

約4年 前 | 1

| 採用済み

回答済み
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....

約4年 前 | 0

| 採用済み

回答済み
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...

約4年 前 | 1

| 採用済み

回答済み
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),:)

約4年 前 | 0

| 採用済み

回答済み
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 ...

約4年 前 | 0

回答済み
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...

約4年 前 | 0

回答済み
Generate Polynomial Expansion Orders as a matrix
You can use this FEX (also attached) allVL1(4,2,'<=')

約4年 前 | 0

| 採用済み

回答済み
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 ...

約4年 前 | 0

回答済み
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...

約4年 前 | 2

| 採用済み

回答済み
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...

約4年 前 | 0

| 採用済み

質問


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...

約4年 前 | 1 件の回答 | 2

1

回答

回答済み
How can i implement following sum notation ?
call (without y=...) soru(2,4) Your function is not supposed to return any output

約4年 前 | 1

回答済み
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 ...

約4年 前 | 1

回答済み
Creating an array for a set number iterations
F = 100000; i = 3; Ct= F*0.04.*ones(1,i); Ct(end) = Ct(end)+F

約4年 前 | 0

回答済み
superimposition of two similar 3D files without deformations
There are a bunch of ICP implementation in File Exchange

約4年 前 | 0

回答済み
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...

約4年 前 | 0

回答済み
partition column randomly in to three columns
A=rand(20,1) reshape(A(randperm(end,end-mod(end,3))),[],3)

約4年 前 | 0

| 採用済み

回答済み
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))

約4年 前 | 0

| 採用済み

さらに読み込む