Réponse apportée
how to concatenate graphs
did you try hold on after plotting the first graph and hold off right after the last one?

environ 13 ans il y a | 0

Réponse apportée
sending slider values from serial port....
% To construct a serial port object: s1 = serial('COM1'); s2 = serial('COM2', 'BaudRate', 1200); ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Repeat audio button in GUI
In your PLAYAUDIO function, add _times_pushed_ as global: function PLAYAUDIObutton_Callback(hObject, eventdata, handles) ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Loading variable from whos
Try this out: my_vars=whos; for k = 1:length(my_vars) assignin('base',my_vars(k).name,value_to_assign) end ...

environ 13 ans il y a | 0

Réponse apportée
Repeat audio button in GUI
Try to reset _times_pushed_ with every new wav file. Insert _times_pushed_ as global in the _PLAY AUDIO_ function.

environ 13 ans il y a | 0

Réponse apportée
Attempted to access C2(3); index out of bounds because numel(C2)=2.
I think you problem ( at least one of them ) lies on: dC(1)=[10^-5; Vm*(Ksl*K*asl/(Ksl*asl-Vl*K))*C1(i)]; inside your _t...

environ 13 ans il y a | 0

Réponse apportée
How to solve the error?
Obviously, you have a problem with the function: F = get_image_features(I); By the name you gave it, if it does what it ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
how to see the output and input vide together
You need to create a GUI and add two axes to it. Each one will have a _tag_ assigned to it ( see it in the property inspector )....

environ 13 ans il y a | 0

Réponse apportée
How to Select a distinct subset of a CellArray
v = find(x(:,1)==C(1))

environ 13 ans il y a | 0

Réponse apportée
excel sheet with 5rows & 10 columns
Did you type _help_ _xlswrite_ in the command window? The documentation in matlab help is very useful too.

environ 13 ans il y a | 0

Réponse apportée
Input .txt file to .exe in Matlab
You can try to add _uigetfile_ to your code: [filename, pathname] = uigetfile('*.txt', 'Pick your text file'); This will...

environ 13 ans il y a | 0

Réponse apportée
How can i use the PID controller function
As an example, you could take a look at the following link: <http://blogs.mathworks.com/seth/2009/12/24/pid-control-made-easy...

environ 13 ans il y a | 0

Réponse apportée
writing a buffer of 80 characters to file in a binary format
This is a bit long, but it works. Buffer = 'Velocity'; % your string my_str = cell(80,1); % initialize a cell to hold ch...

environ 13 ans il y a | 0

Réponse apportée
writing a buffer of 80 characters to file in a binary format
Are you trying to write a file with "velocity" in it? filename='test'; % or whatever name you want Buffer = 'Velocity'; ...

environ 13 ans il y a | 0

Réponse apportée
I wanna end iteration when result cannot be changed anymore.
dx = 5; % set initial value here % my_threshold = eps; % Floating-point relative accuracy my_threshold = 0.01; ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How can I generate the data for an eight '8' draw?
You can try with this: t=0:.1:2*pi; x = -sin(t); y = sin(t); plot(t,x,'*',t,y,'+')

environ 13 ans il y a | 1

| A accepté

Réponse apportée
what does the colon mark indicates in the color seperation of image?
It says you are taking all the elements. example. If Z = [1 2 3; 4 5 6; 7 8 9]; Then Z(:,1) ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How to resort a vector such that it shows a specified 1-st order autocorrelation
You can use the built-in function _sort_ to sort the array in either ascending or descending order. To perform the specific o...

environ 13 ans il y a | 0

Réponse apportée
How to take output from another m file in gui?
to run any other m-file from the GUI, just make a call to the desired m-file on the pushbutton callback function. function ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Plotting figures of a function in GUIDE
Every _axes_ on your GUI has a _tag_ propoerty ( see in property inspector ). To plot anything on a specific _axes_: plot(...

environ 13 ans il y a | 0

Réponse apportée
Is it possible to enable a slider to scroll subpanels up and down?
The following link explains the steps to add a scrollbar to your GUI: <http://www.mathworks.es/support/solutions/en/data/1-AF...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Simulink: Run model again without recompiling
I hope this link is of some help: <http://www.mathworks.es/company/newsletters/articles/improving-simulation-performance-in-s...

environ 13 ans il y a | 0

Réponse apportée
Seperating vectors when reaching a threshold value
You do not have many clues of what is going on in your code, but this could be of some help and give you some ideas about what t...

environ 13 ans il y a | 0

Réponse apportée
change a vector of a matrix
use the matrix as an output argument too: function Si = survival(Si) %your code here, you can change your Si matrix too

environ 13 ans il y a | 1

Réponse apportée
Why does this matrix multiplication work?
What's wrong with it? a=rand(1,3); b=rand(3,3); c=a*b;

environ 13 ans il y a | 0

Réponse apportée
stacking images for tomographic representation
[n_rows n_cols]=size(my_2D_image); my_3D_image = zeros(n_rows,n_cols,Number_im/10); % initialize your 3D matrix for...

environ 13 ans il y a | 0

Réponse apportée
Replacing while loop with break command
clc;clear;close all; limit=210; k = 0; sum = 0; while sum <= limit k=k+1; ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Picking values from n-d array along 3rd dimension
You can assign the value of C without referencing (i,j): x = B(i,j); C = A(:,:,x); And you will have for all i, j tha...

environ 13 ans il y a | 0

Réponse apportée
How to add a string output to this function?
function [op,s] = operation( A,B ) % your code here s = '+'; % or whatever you want to be the string Use a sw...

environ 13 ans il y a | 0

Réponse apportée
How can I get image value and change value?
hold on your image, to draw a circle centered at (2,3): t=0:.1:2*pi; r=1; x_c = 2; y_c = 3; x = x_c - r*cos...

environ 13 ans il y a | 0

Charger plus