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

más de 9 años hace | 3

| aceptada

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

más de 9 años hace | 5

| aceptada

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

más de 9 años hace | 3

| aceptada

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

más de 9 años hace | 3

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

más de 9 años hace | 6

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

más de 9 años hace | 3

| aceptada

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

más de 9 años hace | 4

| aceptada

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

más de 9 años hace | 5

| aceptada

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

más de 9 años hace | 3

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 4

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

más de 9 años hace | 4

| aceptada

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

más de 9 años hace | 4

| aceptada

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

más de 9 años hace | 2

| aceptada

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

más de 9 años hace | 5

| aceptada

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

más de 9 años hace | 7

| aceptada

Resuelto


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

casi 10 años hace