回答済み
How to delete the last subplot?
The ha variable will be handles to the different subplot axes. To delete one subplot you simply do: idx2kill = 15; delete(ha(i...

5年弱 前 | 2

| 採用済み

回答済み
Divergence, curl and potential function of 2D vector fields
Ok, if this is only a question abut whether the vector-field is conservative then it is a physics/vector-calculus "home-work" qu...

5年弱 前 | 0

回答済み
Issues in plotting two graphs in the same plot with hold on function
In the screenshot matlab creates a new figure and makes the second plot in that figure, in the second you don't create the secon...

5年弱 前 | 0

| 採用済み

回答済み
How to match voronoi area to it's point
The way I interpret your question each point [xroi,yroi] will be inside one Voronoi-cell (though my QD-tests leave a couple of e...

5年弱 前 | 0

回答済み
Nested for loop not working
You seem to have two for-loops with kk as index. That is not going to work in any robust way. For clarity I've learnt that to av...

5年弱 前 | 0

| 採用済み

回答済み
Merging different color channels
Sure, they are after all nothing but 2-D arrays representing different aspects of an image. Just combine them any which way you ...

5年弱 前 | 1

回答済み
How to use scandinavian letters in text() when using latex as interpreter?
This at least displays the characters in the figure on screen (I've had varying successes printing to file): text(.25,.25,'$\te...

5年弱 前 | 0

| 採用済み

回答済み
Does anyone know how to create colors?
Colours can be specified by rgb-values in a 1-by-3 array with values between zero and one. So for example: light_blue = [0.5 0....

5年弱 前 | 0

| 採用済み

回答済み
How can I solve this type of integration?
This seems like a natural case for a for-loop. Something like this: your_sum_of_integrals = 0; for j1 = 1:100 your_sum_of_i...

5年弱 前 | 0

| 採用済み

回答済み
Create an image (pixels) circle with slices (not from the center) and paint each slice a different color
(The background image looked rather nice if you ask me...) If you want to find those wedge-shaped regions I think inpolygon woul...

5年弱 前 | 0

回答済み
How to do Double integral with two function handle.
Should look something like this: fun = integral2(@(theta,omega1) temp1(theta,omega1).*cos(omega1.*a1.*sin(theta)),0,2.*pi,0,inf...

5年弱 前 | 0

| 採用済み

回答済み
Locate points on a line graph of an image
For that type of task I occasionally use grabit - which is a very useful tool. Automatic detection is also possible but more oft...

5年弱 前 | 0

回答済み
Titles of Subplot which re depend on Multiselect File Title
You have a simple bug - both your for-loops uses the same loop-variable, k. That's the cause of your problem. My method to avoid...

5年弱 前 | 0

回答済み
Performing multiple Operating system commands in a loop
What I typically do in situations like these is to create a "cmd_string" and then first run the loop (or a shorter loop in case ...

5年弱 前 | 0

回答済み
How to split an image into several curved shape small images?
You should be able to do that with interp2, you just have to select the coordinates of your curved regions to use for interpolat...

5年弱 前 | 0

回答済み
Unable to meet integration tolerances
You might get enough control of ode15s by telling it to keep the solutions nonegative, try setting the "NonNegative" field to a ...

5年弱 前 | 0

回答済み
I want to take modulus of complex number in polar coordinates in matlab .
The only definition of modulus of a complex number I can find is what is done with the abs-function. In that case you simlpy do:...

5年弱 前 | 0

回答済み
How to make a colorbar with single color with varying intensity?
Perhaps the ice colormap from cmocean-perceptually-uniform-colormaps (or parts of that one or modifications of any oth the other...

5年弱 前 | 0

回答済み
I need to plot the equal width of colorbar like attached image . exampel [0 1 2 4 8 16 32] in all interval width of the colorbar should be same.
There are several tools for that on the file exchange. This for example seems to contain the feature you're looking for: non-uni...

5年弱 前 | 1

| 採用済み

回答済み
Warning: Integer operands are required for colon operator when used as index. How can I rectify this?
Make sure that your variable f_size is an integer, perhaps something like this solves your problem: f_size = round(f_d*fs);% ce...

5年弱 前 | 0

| 採用済み

回答済み
How to make a function recursive in a specific position?
You should have a good look at the functional-programming-constructs toolbox on the file exchange - it shows an example of how t...

5年弱 前 | 0

回答済み
2D circular interpolation (theta, phi) angles
Simply concatenate the Z-values for columns and rows corresponding to theta and phi equal 0 and 1 at the end of Z and extend the...

5年弱 前 | 0

| 採用済み

回答済み
Plot Three Variables with Three separate Y axis
You might use the plotyyy function from the matlab file excange to do just that. Or any of the other functions that show up when...

5年弱 前 | 1

| 採用済み

回答済み
My legend does not display the right colours. Can anyone help with this?
To gain complete control over your legending use the plot-handles that plot returns. Something like this: figure(13) ph1 = plo...

5年弱 前 | 1

| 採用済み

回答済み
how can i make subplots larger without manually stretching them ?
For figures like this I find it important to remove the xlabel-text except along the bottom row - this saves valuable real-estat...

5年弱 前 | 0

| 採用済み

回答済み
angles to arrows representation
Arrow in 2-D: r_from_origin = l*[cos(theta),sin(theta)]; Arrow in 3-D: r_from_origin = l*[cos(phi)*sin(theta),sin(phi)*sin(th...

5年弱 前 | 0

回答済み
Solving First order ODE with constant coefficient
Should be as simple as: sym y(t) Also: isn't direct use of dsolve enough for you? HTH

5年弱 前 | 0

回答済み
Spectrogram of Audio Signal
Have a look at the help and documentation of the spectrogram function. That allows you to calculate the spectrogram as such: [S...

5年弱 前 | 0

| 採用済み

回答済み
How can i calculate PDF and CDF of non-parametric distribution?
You get some start towards estimates of the PDF/CDF from histogram and ksdensity. See the help and documentation to those functi...

5年弱 前 | 1

回答済み
3Dplot suggestions on azimuthal data
You seem to have your x and y-coordinate values along the first row and column of the data. If so: x = test(1,2:end); y = test...

5年弱 前 | 2

さらに読み込む