Réponse apportée
plot a graph with 3 variables.
Use _plot3_ command: plot3(x,y,z) Take a look at doc plot3 or help plot3

plus de 12 ans il y a | 0

Réponse apportée
Help for creating a window
rectangle('Position',[x,y,w,h]) draws the rectangle from the point x,y and having a width of w and a height of h.

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
command inputdlg doesnnot work
It seems someone played with pcode.... Go to C:\MATLAB701\toolbox\matlab\uitools\ and delete the file inputdlg.p ...

plus de 12 ans il y a | 0

Réponse apportée
GUIDE: Duplicated elements without duplicated functions
Every object within your GUI has to have its own callback function, and these have to be defined in your code. You have to code ...

plus de 12 ans il y a | 0

Réponse apportée
How can I add text to a plot?
The error message you pasted refers to a *.m file called Untitled2.m. Do the following and tell us what you get: On the c...

plus de 12 ans il y a | 1

Réponse apportée
k-means clustering: save the number of iterations in a matrix
[IDX,C,sumd,D] = kmeans(X,30,'display','iter'); where sum(sumd) is the sum of distances The number of iter...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
how can i overcome this problem
Change the size of the swap partition: Under windows: <http://windows.microsoft.com/en-us/windows/change-virtual-memory-size...

plus de 12 ans il y a | 0

Réponse apportée
Define a variable via inputdlg?
You can do it in a single line and use str2double which is faster than str2num: row = str2double( inputdlg('Insert row numb...

plus de 12 ans il y a | 1

Réponse apportée
How to export the output of a program into a new, specifically-located Excel file?
Write mixed text and numeric data to test.xls, starting at cell E1 of Sheet1: my_file = "C:\my_docs\any_folder\test.xls"; ...

plus de 12 ans il y a | 0

Réponse apportée
how to convert python code to matlab?
Sorry shriroopa b, but, did you realize you are asking us to do a task more than asking a question? Your code seems endless. It...

plus de 12 ans il y a | 3

Réponse apportée
standalone application error dispaly
it depends on how you are handling the errors in your code. I would recommend you to take a look at try/catch documentation ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Matrix Multiplications (Altar Output Matrix Size)
A = rand(100,1); % place here your 100x10 matrix B = rand(1,10); % place here your 1x10 matrix C = A*B; % C is your 100x...

plus de 12 ans il y a | 0

Réponse apportée
compile for Ubuntu?
Take a look at this link: <http://www.mathworks.com/matlabcentral/answers/99739-can-i-run-an-application-created-with-matlab-...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
HRV frequency domain anlysis (Power spectral anlysis)
I would recommend you to go to FFT documentation. On command window, type: doc fft You'll find a couple of examples that...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
optimize and if statement
You can try with different combinations like: if abs((a-b)/b)*10^6 <1 if -1<(a-b)*10^6/b && (a-b)*10^6/b <1 if -.0000...

plus de 12 ans il y a | 0

Réponse apportée
How do I make an excel sheet?
xlswrite(filename,A,xlRange) writes to the rectangular region specified by xlRange in the first worksheet of the file. file...

plus de 12 ans il y a | 0

Réponse apportée
equation fitting and plotting
Did you consider the use of curve fitting tool? cftool On the command window, type: doc cftool You'll be given...

plus de 12 ans il y a | 0

Réponse apportée
How can I connect Arduino with matlab if the entities are wireless?
Check for any bytes stored in the buffer with the _BytesAvailable_ option: a = serial('COM10','BaudRate',9600); fopen(a)...

plus de 12 ans il y a | 0

Réponse apportée
creating a field in a structure
N_cars = 10; for k=1:N_cars car(k).Mileage = mileage_array(k); % insert your value here end

plus de 12 ans il y a | 1

Réponse apportée
how to do it
a fastest way than linspace: ini = 24.94; last = 27.3; samples = 264; x2 = ini:(last-ini)/(samples+1):last;

plus de 12 ans il y a | 0

Réponse apportée
put all images of a directory in listbox
my_pngs = dir('*.png'); % choose png files from directory pics_cell = cell(numel(my_pngs),1); for k=1:numel(my_pngs) ...

plus de 12 ans il y a | 0

Réponse apportée
Is the Matlab magnetic levitation model example correct?
The force experienced by the ball under the influence of electromagnet is given by F = mg - Kf (i/y)^2 where i is the curr...

plus de 12 ans il y a | 0

Réponse apportée
How to find euclidean distance
pix_1 = [p11,p12]; pix_2 = [p21,p22]; distance = sqrt( (p21-p11)^2 + (p22-p12)^2 );

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Error simple program PID
I tried your code (copy-paste) and it works. Make sure you have the Symbolic Math toolbox: Start (bottom left corner)-> Tool...

plus de 12 ans il y a | 0

Réponse apportée
How to compare two rows in a cell {n x 1}
M = rand(10,1); C = mat2cell(M,ones(10,1),1); % 10x1 cell a = C{1}; % content of first cell, a is not a cell, it is a do...

plus de 12 ans il y a | 0

Réponse apportée
how can I save a file as .png format?
h=plot(rand(10,1),rand(10,1)) saveas(h,'my_fig','fig'); % your figure is saves as *.fig % code to print a saved *.fig ...

plus de 12 ans il y a | 0

Réponse apportée
Initial Conditions parameter for ode23
There is a very clear example in the documentation: To simulate a system, create a function vdp1000 containing its equa...

plus de 12 ans il y a | 0

Réponse apportée
Saving a matrix from a function file
Use _dot_ notation to operate with arrays: x = rand(10,1); y = rand(10,1); z = rand(10,1); F = x.*y + z; % MIND T...

plus de 12 ans il y a | 0

Réponse apportée
How to display minimum valley point on the surface,which is drawn using symbolic variables
syms w0 w1; J = .9486-1.0544*w0+.8916*w1+w0*w1+1.1*(w0^2+w1^2); figure;ezsurf(J); hold on plot3(-0.5,-0.1,1.8,'r*'...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Unable to run genfis1 command
genfis1 do not accept cell data ( the {} defines a cell ). Do it like this: DATA=[[43 0],[55 25],[67,75],[79,100]]; ...

plus de 12 ans il y a | 0

Charger plus