Answered
How to create a loop to sum across columns conditional on index matching?
result = [unique(A(:,1)) grpstats(A(:,2:end),A(:,1),@any)] % Keep it binary or result = [unique(A(:,1)) grpstats(A(:,2...

fast 3 Jahre ago | 1

Answered
グレースケールの3次元マッピング
たとえば: I_RGB = imread('peppers.png'); I_gray = rgb2gray(I_RGB); h = surf(I_gray); % surf関数で表面を作成する h.EdgeColor = 'n...

fast 3 Jahre ago | 4

| accepted

Answered
Getting NaN values in neural network weight matrices
As of R2016b, you could use the <https://www.mathworks.com/help/matlab/ref/rmmissing.html RMMISSING> function. Heave_datase...

fast 3 Jahre ago | 1

Answered
Vectorisation of a simple for loop
Just wondering, but what is your purpose in vectorizing that code? If it's to make it faster, I don't think you can do much bett...

etwa 3 Jahre ago | 3

Answered
複数のテキストデータから一つの散布図の作り方
2番目以降のscatterplotに、最初に作成されたscatterplotのfigureハンドルを与えれば、figureが再利用できます。 たとえば: h = scatterplot(randn(100,2)); hold on; ...

etwa 3 Jahre ago | 0

| accepted

Answered
I have a vector like x=[2 3 1 5],how could I generate a vector like [1 2 1 2 3 1 1 2 3 4 5]?
x = [2 3 1 5] y = arrayfun(@(a)1:a,x,'uniform',0) y = cat(2,y{:}) y = 1 2 1 2 3 1 1 ...

etwa 3 Jahre ago | 1

Answered
How to find number of neigbours of a pixel in binary image?
Here are two ways to do it: numberNeighboringPixels = 2; % Can also be 1 or 3 BW1 = rand(15,60) > 0.9; % Just a ...

etwa 3 Jahre ago | 2

| accepted

Answered
Replace NaN values with values based on same group and other group?
I think this should work. % Sample data T = cell2table({'ID1' 100 'aaa'; 'ID1' nan 'bbb'; ...

etwa 3 Jahre ago | 0

| accepted

Answered
Surf respresentation of a transfer function depending on the frequency and the gain of the feedback
You can loop over different values of "gain" and collect the results in a matrix and then plot it as a surface. rng(0) s...

etwa 3 Jahre ago | 0

Submitted


Integration Demo
A demo to visualize the integral of an arbitrary user-entered function. 任意の関数の積分計算を可視化表示するデモです

etwa 3 Jahre ago | 5 downloads |

Thumbnail

Submitted


RootFinding Demo
A demo of root-finding using Newton’s Method. ニュートン法を用いて解の探索を行うデモです

etwa 3 Jahre ago | 1 download |

Thumbnail

Submitted


Divergence-Curl Demo
A simple, easy-to-use visualization tool for vector fields. ベクトル場の発散、回転を可視化表示します

etwa 3 Jahre ago | 2 downloads |

Thumbnail

Submitted


Demo: Finding an Optimal Path Using MATLAB and Optimization Toolbox
Solve the path planning problem of going through a vector field of wind in the least possible time.

etwa 3 Jahre ago | 36 downloads |

Thumbnail

Submitted


Demo Files for "Optimizing Lookup Tables" Seminar
Demo Files for "Optimizing Lookup Tables" Seminar (presented at MATLAB Expo 2011)

etwa 3 Jahre ago | 0 downloads |

Submitted


Guitar Tuner Demo from MATLAB Expo 2011 in Tokyo
This takes audio input and calculates the frequency for use in tuning a guitar

etwa 3 Jahre ago | 3 downloads |

Thumbnail

Submitted


Video Sudoku Solver
Solves a sudoku with a web camera and then displays it while tracking the original video feed.

etwa 3 Jahre ago | 21 downloads |

Thumbnail

Submitted


Function Parameter Slider
Use continuously updating sliders to view how a function changes as its input parameters change

etwa 3 Jahre ago | 9 downloads |

Thumbnail

Submitted


Graphical Demonstration of Convolution
An interactive program that provides graphical insight into how convolution operators work.

etwa 3 Jahre ago | 10 downloads |

Thumbnail

Submitted


Make figures the same size
Just as the title says, it resizes figures to be the same size.

etwa 3 Jahre ago | 4 downloads |

Submitted


Extrude a ribbon/tube and fly through it!
Extrude a 2D curve along a 3D path to create tubes/ribbons and then fly though it

etwa 3 Jahre ago | 6 downloads |

Thumbnail

Answered
hour to hour minute second conversion
There's a <http://www.mathworks.com/help/matlab/date-and-time-operations.html lot of really good new functionality for working w...

etwa 3 Jahre ago | 1

Answered
Intersection of two sfit planes?
This works for me: %% 1. Making some test coefficients c1=1; c2=2; c3=3; c4=4; c5=5; p1=-1.1; p2=2.2; p3=-3.3; p4=...

etwa 3 Jahre ago | 0

Answered
Matrix version of quadprog?
You can convert this into a form usable by QUADPROG by noting the identity: tr(X'*H*X) == vec(X)' * kron(I, H) * vec(X) wh...

mehr als 3 Jahre ago | 0

| accepted

Answered
non linear minimization problem
It depends on what you mean by "minimize". Do you mean the sum of squares, sum(E.^2)? If so then it's a quadratic programming...

mehr als 3 Jahre ago | 1

| accepted

Answered
How to perform quadratic optimization
Here is how you might solve it using QUADPROG. Note that you don't need to do anything symbolic using "sym". L = length(ESF...

mehr als 3 Jahre ago | 2

Answered
Slow Find Loop no vectorisation
FOR loops are *not* necessarily slow. This is in R2016a. %% Make some data... rng(0); image = randi(2^16,[30 40 50]...

mehr als 3 Jahre ago | 1

Answered
Finding surface height at x,y coordinates
Instead of GRIDDATA, I think "scatteredInterpolant" is what you want. This creates an object that you can use to query points fr...

mehr als 3 Jahre ago | 2

| accepted

Answered
how to determine similar values in 2 equally-sized matrices (for non-zero elements which are in similar positions) ?
A = [ 1 2 4; 5 0 6]; B = [0 2 5; 2 0 6]; Final_output = (A==B) & (A ~= 0) This gives Fi...

mehr als 3 Jahre ago | 0

| accepted

Answered
Need help with cylinders
% Make a figure (I like my figures in black) colordef(figure,'black'); % Draw a parameterized surface [TH...

mehr als 3 Jahre ago | 1

Load more