Réponse apportée
atan2 problem with drone
If I don't get it wrong, you are trying to make your drone spin around itself, aren't you. The state of you drone is obviously +...

presque 13 ans il y a | 0

Réponse apportée
returning values for iterations
Just set the equality: Vo = Va; % right after your last line of code. Like this: Vn = 2:0.1:30;% iteration length. ...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
how i can reshape image from original size to new size
The resizing of the image comes to a price, and that's a loss of information. You can resize your image, do whatever you want to...

presque 13 ans il y a | 0

Réponse apportée
help solve, MATLAB returns solve not found, what to do?
Go to Help -> Product Help Try to find the documentation of _syms_ and _solve_ commands. If they do not show up, obviousl...

presque 13 ans il y a | 0

Réponse apportée
hi, am doing my project in Diabetic Retinopathy, for that I need to calculate the background image. I didnt get output . pls check my code and help me to get the output
BW = im2bw(I, level) converts the grayscale image I to a binary image.

presque 13 ans il y a | 0

Réponse apportée
Use of the Pop-up menu in a GUI
Instead of using the string of the selected item, use its position on the list: switch get(handles.Vt_Callback,'Value') ...

presque 13 ans il y a | 0

Réponse apportée
finding only unique values
a=[1,1,1,1,2,3,3,4,5,5,5,5,5]; x = unique(a) y = histc(a,x)==1; lonely_values = find ( y == 1 ) or: lonel...

presque 13 ans il y a | 0

Réponse apportée
GUI - empty property inspector
try the following: h=plot([1 2],[3 4]); inspect(h) If your property inspector shows up properly, you have a problem w...

presque 13 ans il y a | 0

Réponse apportée
Plotting curves with increasing radius
Try this out: [x,y] = meshgrid(1:150,1:100); [th, rho] = cart2pol(x - 75,y - 50); % convert to polar % spiral center...

presque 13 ans il y a | 0

Réponse apportée
Looping through data and finding maximum value in each bin
You could try something like this: ds = [ 10 5 1 ; 10 6 2 ; 11 3 2 ; 11 7 1...

presque 13 ans il y a | 0

Réponse apportée
What is the range of datatype double in Matlab ?
All numerical variables in MATLAB are stored as 32 bit floating point numbers. This corresponds to _double precision_ on most co...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Matlab GUI displaying output based on user input
M = xlsread('my_file.xls'); % matrix with data x=find(M(:,1) == in_1); % in_1 is your first input y=find(M(:,2) == i...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Infinite or Not-a-Number function value encountered.
Besides the parenthesis unbalanced, you are dividing by zero. for phi = pi/2 (8477503880968187*sin(phi)).^2.*(sin(phi).^...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
How to link 2 GUI files in MATLAB
On the first GUI, type the name of the main m-file of the second GUI where you want to make the call.

presque 13 ans il y a | 0

Réponse apportée
How to replace the Image with a graph in GUI?
If you only have one axes object in your GUI, just call the functions: imagesc('your_pic.npg'); % for example plot(x,y);...

presque 13 ans il y a | 0

Réponse apportée
Using a pushbutton in MATLAB GUI as a button to continue?
Add a while loop with nothing inside: while (~push) % do nothing until push == 1. Push has to be global, it changes when...

presque 13 ans il y a | 1

| A accepté

Réponse apportée
n=A(B) where A and B are matrices?
A(B) returns the value of the B(ith) element of A. The elements are counted column-wise, what means than in your case: A(1) = ...

presque 13 ans il y a | 2

| A accepté

Réponse apportée
Concatenation for a large number of 2D matrices
It all depends on how your matrices are named, assuming they all have the same size (number of rows and cols). If your matrices ...

presque 13 ans il y a | 1

Réponse apportée
Arithmetical mean above max
The mean value ( either geometric or arithmetic ) of an array can never be above the maximum value of the array. Matlab does no...

presque 13 ans il y a | 0

Réponse apportée
Display the array/matrix in GUI
In the callback function, you do the same that you would do in the command line in order to present your data, taking from grant...

presque 13 ans il y a | 0

Réponse apportée
Saving image output from imagesc
It is possible. Use either _save_ or _print_. help save help print

presque 13 ans il y a | 0

Réponse apportée
How to find the equation of the curve that intersects a 3D surface and a plane
Try with the built-in function _intersect_: doc intersect

presque 13 ans il y a | 0

Réponse apportée
How to remove the back portion of the 3d plot ?
After plotting your data: axis off grid off

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Loops for adding data
I would create a cell array with the sample data: sample = cell(N_iter,1); for k = 1:N_iter % your_code_here sam...

presque 13 ans il y a | 1

| A accepté

Réponse apportée
Read several images to work with
base_name = 'a0000.bmp'; s = cell(999,1); % initialize cell to hold names for k=1:999 tmp_str = num2str(k); ...

presque 13 ans il y a | 2

Réponse apportée
How to clear data from plot in Matlab GUI
Try with clf(handles.my_axis_handle) where _my_axis_handle_ is the handle of the axis on your GUI.

presque 13 ans il y a | 0

Réponse apportée
Generate Variable Names with a Loop
N = 10; % number of variables %method 1 for k=1:N temp_var = strcat( 'variable_',num2str(k) ); ev...

presque 13 ans il y a | 8

| A accepté

Réponse apportée
Ensure that patch is displayed
Your second patch is visible if you zoom in the plot. Since you are drawing a patch so thin ( from 9000 to 9001 ) the resolution...

presque 13 ans il y a | 2

Réponse apportée
Why does tab complete not work for user written functions that except filenames?
The user defined function has to be saved on the current directory or its path set on _matlab paths_. Matlab will not autocompl...

presque 13 ans il y a | 0

Réponse apportée
How to continuously real-time plotting graph from arduino to matlab (10k Variable Resistor)
You just have to change the axis when the highest value is reached: axis([interv,2*interv,0,1024]); % adapt values to you...

presque 13 ans il y a | 1

Charger plus