公開済み

How imshowpair and imfuse work

In this post, I'll explore how imshowpair and imfuse work.Reason: I was curious.Last month, I wrote about registering...

10ヶ月 前

回答済み

Shade area in graph for multiple y-axes

I rearranged your code a bit, putting both of the first two plotting functions (patch and plot) after the call to yaxis left. I ...

Shade area in graph for multiple y-axes

I rearranged your code a bit, putting both of the first two plotting functions (patch and plot) after the call to yaxis left. I ...

10ヶ月 前 | 0

| 採用済み

回答済み

How to add percent change in barplot?

If you want text labels instead of a line plot (Cris' suggestion), then try this code. It gets the Bar object as the output argu...

How to add percent change in barplot?

If you want text labels instead of a line plot (Cris' suggestion), then try this code. It gets the Bar object as the output argu...

10ヶ月 前 | 1

| 採用済み

回答済み

Neighbor and center points of matrix

See my 25-Feb-2008 blog post called "Neighbor indexing" for a general technique. You'll need to pay careful attention to what h...

Neighbor and center points of matrix

See my 25-Feb-2008 blog post called "Neighbor indexing" for a general technique. You'll need to pay careful attention to what h...

10ヶ月 前 | 1

回答済み

Fourier Transform of a signal

The fft function in MATLAB computes something called the discrete Fourier transform. Your problem here is asking you to find som...

Fourier Transform of a signal

The fft function in MATLAB computes something called the discrete Fourier transform. Your problem here is asking you to find som...

10ヶ月 前 | 0

回答済み

How can I create a 3D array?

Try something like this: for i = 1:n-1 next_image = uigetfile('*p*'); ImageArray = cat(3,ImageArray,next_image); end...

How can I create a 3D array?

Try something like this: for i = 1:n-1 next_image = uigetfile('*p*'); ImageArray = cat(3,ImageArray,next_image); end...

10ヶ月 前 | 0

| 採用済み

回答済み

customize export setup to generate SVG

Try this: h = findall(fig,'-property','FontName'); set(h,'FontName','San Serif'); print(fig,'-dsvg','mygraphic.svg')

customize export setup to generate SVG

Try this: h = findall(fig,'-property','FontName'); set(h,'FontName','San Serif'); print(fig,'-dsvg','mygraphic.svg')

10ヶ月 前 | 0

公開済み

Registering Hand-Held Pictures

The typical modern French* horn, pictured below, has about 23 total feet of tubing. At the beginning and the end, the tubing...

10ヶ月 前

回答済み

load rwb gives error

You're looking for a file called rwb.mat. Once you find it, put it in your current working folder or in a folder that's on the M...

load rwb gives error

You're looking for a file called rwb.mat. Once you find it, put it in your current working folder or in a folder that's on the M...

11ヶ月 前 | 1

| 採用済み

回答済み

How to get the x and y coordinates of the each marker in a frame?

I used the Color Thresholder app to get code that segments your image based on the green color of the markers. Then I used regio...

How to get the x and y coordinates of the each marker in a frame?

I used the Color Thresholder app to get code that segments your image based on the green color of the markers. Then I used regio...

11ヶ月 前 | 0

回答済み

Give an unknown number of parameters to feval

Put your parameters in a cell array and then use the syntax that expands a cell array into a comma-separated list: out = feval(...

Give an unknown number of parameters to feval

Put your parameters in a cell array and then use the syntax that expands a cell array into a comma-separated list: out = feval(...

11ヶ月 前 | 0

| 採用済み

回答済み

Infinite Recursion in own Levenberg-Marquardt Code

I see that korrektur is calling itself recursively. I noticed also that the recursive call appears to be identical to the top-le...

Infinite Recursion in own Levenberg-Marquardt Code

I see that korrektur is calling itself recursively. I noticed also that the recursive call appears to be identical to the top-le...

11ヶ月 前 | 1

回答済み

Text increments of the x-axis

Sure, you can set the XTicks property of the axes object directly. ax = gca; ax.XTicks = [1 2 3]; A shortcut for this is: xt...

Text increments of the x-axis

Sure, you can set the XTicks property of the axes object directly. ax = gca; ax.XTicks = [1 2 3]; A shortcut for this is: xt...

11ヶ月 前 | 0

解決済み

Find nth maximum

Find nth maximum in a vector of integer numbers. Return NaN if no such number exists. x = [2 6 4 9 -10 3 1 5 -10]; So ...

11ヶ月 前

解決済み

Create an index-powered vector

Given a input vector x, return y as index-powered vector as shown below. Example x = [2 3 6 9] then y should be [...

11ヶ月 前

解決済み

Symmetry of vector

Determine whether the vector is symmetric or not (vector could be even or odd in length). For example: x = [1 2 3 3 2 1] ...

11ヶ月 前

回答済み

imshow doesn't display png image file

Your image is stored in the PNG file as unsigned 16-bit integers. When imshow displays a uint16 image, it uses the unsigned 16-b...

imshow doesn't display png image file

Your image is stored in the PNG file as unsigned 16-bit integers. When imshow displays a uint16 image, it uses the unsigned 16-b...

11ヶ月 前 | 1

| 採用済み

解決済み

Create an n-by-n null matrix and fill with ones certain positions

The positions will be indicated by a z-by-2 matrix. Each row in this z-by-2 matrix will have the row and column in which a 1 has...

11ヶ月 前

回答済み

How to plot particle trajectories and normalise to 0,0 origin?

Here is one way you could do it. Read in the whole Excel file as a table. Then, in a loop, extract the particle data for each tr...

How to plot particle trajectories and normalise to 0,0 origin?

Here is one way you could do it. Read in the whole Excel file as a table. Then, in a loop, extract the particle data for each tr...

11ヶ月 前 | 1

回答済み

From for to While loop

Here is one way to convert a typical MATLAB for loop to a while loop: for i = 1:N ... end i = 1; while i <= N .....

From for to While loop

Here is one way to convert a typical MATLAB for loop to a while loop: for i = 1:N ... end i = 1; while i <= N .....

11ヶ月 前 | 0

回答済み

Select data from CSV file based on character in position, then read that character and next 2 character, of different read that character and next 3

MATLAB has a number of functions that can automatically read and parse CSV files and return the results in a useful form. Try re...

Select data from CSV file based on character in position, then read that character and next 2 character, of different read that character and next 3

MATLAB has a number of functions that can automatically read and parse CSV files and return the results in a useful form. Try re...

11ヶ月 前 | 0

解決済み

QWERTY coordinates

Given a lowercase letter or a digit as input, return the row where that letter appears on a <http://en.wikipedia.org/wiki/Keyboa...

11ヶ月 前

解決済み

The Tower of Hanoi

In the <http://en.wikipedia.org/wiki/Tower_of_Hanoi Tower of Hanoi problem> with 3 rods (1, 2 & 3), the goal is to move a tower ...

11ヶ月 前

解決済み

Can we make a triangle?

Given three positive number, check whether a triangle can be made with these sides length or not. remember that in a triangle su...

11ヶ月 前

解決済み

Find the sides of an isosceles triangle when given its area and height from its base to apex

Find the sides of an isosceles triangle when given its area and the height from its base to apex. For example, with A=12 and ...

11ヶ月 前

解決済み

Height of a right-angled triangle

Given numbers a, b and c, find the height of the right angled triangle with sides a and b and hypotenuse c, for the base c. If a...

11ヶ月 前

解決済み

Is the Point in a Triangle?

Check whether a point or multiple points is/are in a triangle with three corners Points = [x, y]; Triangle = [x1, y1; x...

11ヶ月 前

解決済み

Find my daddy long leg (No 's')

Given the ratio of the two legs (longer / shorter), and the hypotenuse length, find the value of the bigger leg.

11ヶ月 前