Answered
problem with displaying multiple plots in one Figure
To plot in the same figure use SUBPLOT. Something like this: figure; subplot(2,2,1); plot(E_Real_Hauptantrieb_130.t...

10 years ago | 3

| accepted

Answered
how do you increment and continue until the end of all your experiments?
You can simplify a lot your code. Try this N=100; aces = [1,14,27,40]; first_ace_n = zeros(1,N); for k=1:N ...

10 years ago | 5

| accepted

Answered
Hi, I have this code and there some errors in line 12 and 14 can any one help me. Thanks
You cannot write a FUNCTION inside a script. Functions can be nested only into other funcitons, not in scripts. So write this fu...

10 years ago | 3

| accepted

Answered
How to compare two images using spatial frequency of image blocks?
Matlab allows you to compute spatial frequency of an image by using function Fast Fourier Transform in dimension 2: FFT2. If X ...

10 years ago | 3

Answered
How to update the position of legend with 'Best' Location?
At every new plot reissue the command legend(...,'Location', 'Best') So that Matlab recomputes the right position to pla...

10 years ago | 6

Answered
For similar feature points in two image, How can i find angular displacements between all similar points?
If a=[a1;a2] and b=[b1;b2] are two 2D matching points, you can measure the angle theta between them by inverting the cosine form...

10 years ago | 3

| accepted

Answered
how to compare the characteristics of two graphs
As far as I can get, the two graphs have the same derivative. Try differenziate both of them, you will get similar results. Use ...

10 years ago | 4

| accepted

Answered
Need help with this code - linear regression/least squares
Hi Tristen. Here is the function for Ordinary Least Squares to linear regression function [a0,a1]=linear_regression(x,y) ...

10 years ago | 5

| accepted

Answered
threshold 3D visualisation
Ok, so try this one. It includes a fast way to generate a random array with only 1 or 2 entries. %generate a 3d-matrix of s...

10 years ago | 3

| accepted

Answered
threshold 3D visualisation
Try this out. Given a set of 10 points (3dim) and a set of labels (1,2) it returns the plot of the points according to the label...

10 years ago | 0

Answered
Measuring Integrated Intensity using regioprops
You may ask the REGIONPROP function to provide you the pixel indexes of the regions detected by the algorithm. Then you can use ...

10 years ago | 4

Answered
How to add velocity colourbar to graph
The plot3 function does not allow to map different colors. However, you can get around using SURFACE. Try this. %3d coordi...

10 years ago | 4

| accepted

Answered
How do I get a vector with the coefficients from a transfer function?
Hi Lara, the tf you generate is a structure and it stores the information you need in the NUM cell. To get your coefficient v...

10 years ago | 4

| accepted

Answered
Hi every one! I have inversed matrix invA from my matrix A (det(A)=!0), but invA*A =! I (identity matrix). Please explain me why?
Hi Cong Dang, most probably your matrix is badly conditioned (meaning that there are some almost linearly dependent columns). ...

10 years ago | 2

| accepted

Answered
how to make a programme for colors value from image?
Hi Dilshad, what you want is very simple. Follow this code. %load image from Matalb demo images (or load your own color ima...

10 years ago | 5

| accepted

Answered
3D plotting of five inequalities
Hi Matthew. If you are looking for the portion of 3D space where points satisfy all the inequalities at the same time, then one ...

10 years ago | 7

| accepted

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

10 years ago