Réponse apportée
add a number to the legend
Continuing with Sara's comment: In your callback function, N_pushes = N_pushes + 1; my_str = sprintf('Sandwich pan...

plus de 11 ans il y a | 1

Réponse apportée
MCR dll 7.16 32-bit 64-bit Windows 7
http://www.mathworks.es/products/compiler/mcr/

plus de 11 ans il y a | 1

Réponse apportée
how to get the value from the variable?
It's the symbol for a sparse matrix.

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
calculating velocity and acceleration from force data
Look at the dimensions of your variables: a = I/mass; -> Newtons / kg = m/s^2 -> OK %velocity v ...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
how to plot conditional statement like when Vin=1, Vout=exp(-t/tn) and for Vin =0, Vout=1-exp(-t/tp) where Vin is a periodic square pulse.
statement like when Vin=1, Vout=exp(-t/tn) and for Vin =0, Vout=1-exp(-t/tp): if (Vin == 1) Vout=exp(-t/tn); else...

plus de 11 ans il y a | 0

Réponse apportée
MATLAB - Need help storing values of previous iterations in a while loop
I think your while loop should go like this: while (abs(V) >= vtol) && (abs(a) >= atol) F1=-ks(1)*(X-rs(1)); ...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
ksdensity function for pdf estimation
As you can see in the _ksdensity_ documentation, depending n how you use the function, there is nothing abnormal with your resul...

plus de 11 ans il y a | 0

Réponse apportée
Error in locating a reference cell for calculations
If you read the line: Attempted to access ref(1); index out of bounds because numel(ref)=0. you can see that data{i,...

plus de 11 ans il y a | 0

Réponse apportée
xlswrite - Errors all the time
Try closing your excel document before trying to write on it. That kind of errors occur when you try to write in a document t...

plus de 11 ans il y a | 0

Réponse apportée
Create matrix with strings
If the strings will have different length, you can not do it. Instead use a cell array: amount = 3; % or whatever you want ...

plus de 11 ans il y a | 0

Réponse apportée
Undefined function 'eq' for input arguments of type 'cell error
You can also do: txt1=[{'a'},{'b'},{'c'}]; txt1=txt1(:); data=[{'a'},{'b'}]; data=data(:); idx = getnameidx...

plus de 11 ans il y a | 0

Réponse apportée
Can I add values to an image
Do you mean something like this: load clown figure imagesc(X) colormap(gray) axis image x = 23; ...

plus de 11 ans il y a | 0

Réponse apportée
How can i draw a line along the plots?
plot( sample_number,str2double(a_component) ) and forget about the marker options

plus de 11 ans il y a | 0

Réponse apportée
How to show my output from matrix?
For all your rows: gcd(c(k,:),5) = [1 1 1]; Then, find(gcd(c(3,:),5)==1) = [1 2 3] since all the elements in th...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
filtic function type error
The code is obviously right. Are you sure your version has the filtic function? In the command window, write type filti...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
How can i get a function reference from matlab?
In the command window, type: doc rangefilt doc stdfilt doc entropyfilt

presque 12 ans il y a | 0

Réponse apportée
how to read data from different sheet of excel and use it in for loop nested with if else loop?
[num,txt,raw] = xlsread(filename,sheet,range) reads from the specified sheet and range. EXAMPLE: subsetA = xlsread('myEx...

presque 12 ans il y a | 2

Réponse apportée
how to make a computer go to a line in mfile for a repeat execution
Matlab does not have that kind of implementation. On the other hand, you can do a work around using conditionals, either whiles...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
I want to plot this data in matlab
First of all, you should present your data in a more clear way, it is not easy to know what you really want to plot against what...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Calculate differences between all values in vector
my_vct = [2 3 1 4 5 6]; L = numel(my_vct); tmp_vct = [my_vct(2:end) my_vct(end)]; x = my_vct - tmp_vct; s...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Replace X and Y labels
Taka a look at the following code and adapted to your needs: x = -pi:.1:pi; y = sin(x); h = plot(x,y) set(gca,'XTi...

presque 12 ans il y a | 0

Réponse apportée
Pass variables between Guis created using Guide
I good way to do it is declaring global variables. In case you need to "transfer" a whole lot of variables, it is more practica...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
can anybody post matlab code for rectangular spiral shape?
x = [1 8 8 4 4 6 6 5]; y = [8 8 1 1 4 4 2 2]; plot(x,y) axis([0 10 0 10])

presque 12 ans il y a | 0

| A accepté

Réponse apportée
permute matrix dimensions: getting trickier ...
I am a bit confused by the explanation of what you want. Is it something like this? % plot all pair combinations of M dimen...

presque 12 ans il y a | 0

Réponse apportée
How to edit a text file using matlab?
fid =fopen('your_file.txt'); C=textscan(fid,'%s','delimiter','\n'); fclose(fid); for k=1:numel(C{1,1}) tmp = r...

presque 12 ans il y a | 2

Réponse apportée
How to read a.txt file in matlab
You can try something like this: fid = fopen('your_file.txt'); C = textscan(fid,'%s', 'CommentStyle','#'); fclose(fid...

presque 12 ans il y a | 0

Réponse apportée
Double to cell from workspace?
data = rand(3,5); % your data here create cell with data cell_data = num2cell(data); you can also take a look at ...

presque 12 ans il y a | 0

Réponse apportée
how to save each loop data in consecutive rows?
your_output = zeros(3,6); % initialization of variable for i =1:3 a=rand(3,2); b = reshape(a.',1,[]); ...

presque 12 ans il y a | 0

Réponse apportée
Accessing/writing a fieldname values for a blind structure
person.name = 'xx'; person.age=32; xfields = fieldnames(person) >> person.(xfields{1}) ans = xx ...

presque 12 ans il y a | 0

Réponse apportée
How to get the variables into workspace while running GUI?
There are several things you can do. To see the value of a variable in the workspace, do not write the semicolon, that will pre...

presque 12 ans il y a | 0

| A accepté

Charger plus