Réponse apportée
How to pass extra parameters while using lsqcurvefit?
Create your subfunction to accept the input parameters: function output = AsphereLSQSub(param,xData,Kg,Ag,Bg,Cg,Dg); CC=par...

environ 15 ans il y a | 1

Réponse apportée
Error:Subscript indices must either be real positive integers or logicals.
Try the command which real I suspect that you have a variable defined in your workspace that is named real when you are ...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
How to create a histogram plot with unequal bins?
b = -3:2; % specify bin centers n = hist(a,b) % generate numbers to populate bins bar(b,n) % plot the resul...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Curve fit tool and log scale
I think you're looking for the function <http://www.mathworks.com/access/helpdesk/help/techdoc/ref/semilogx.html SEMILOGX>.

environ 15 ans il y a | 0

Réponse apportée
Hump-day puzzler - Unknown Function
I get the sense that this is not exactly what the user did, but this seems to do what is expected as a first try: F=@(x) eval...

environ 15 ans il y a | 2

| A accepté

Réponse apportée
finding NON in matrix
I'm going to assume that you mean NaN. You can use the <http://www.mathworks.com/access/helpdesk/help/techdoc/ref/isnan.html IS...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Single-byte characters?
You can try the function <http://www.mathworks.com/access/helpdesk/help/techdoc/ref/unicode2native.html unicode2native> which wi...

environ 15 ans il y a | 0

Réponse apportée
summation
d = randn(64,1); s = sum(abs(d))

environ 15 ans il y a | 0

Réponse apportée
Problems using "digitalio" with National Instruments NI 9401 CompactDAQ-Modul
This statement is because the NI 9401 device is not supported. Here is a list of <http://www.mathworks.com/products/daq/support...

environ 15 ans il y a | 0

Réponse apportée
find peaks.
Try <http://www.mathworks.com/access/helpdesk/help/toolbox/signal/findpeaks.html FINDPEAKS>: [Xm Im] = findpeaks(X1) Fm = F...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
how to setup matrix with random unique combinations
If the columns and rows must all sum to 1, then try this: M = eye(4); M = M(:,randperm(4));

environ 15 ans il y a | 1

Réponse apportée
copy graphic to Excel
hf = figure; surf(peaks) print('-dmeta',hf)

environ 15 ans il y a | 0

Réponse apportée
Problem finding max value of column of an Matrix
A = [ 0 1 2 3 4 25 6 7 8 9 ; 9 5 1 20 3 6 4 7 8 5]' c1 = A(:,1) == max(A(:,1)); c2 = A(:,2) == max(A(:,2)); A = [c1 c2];...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
How to create a matrix out of single inputs in a loop?
Just change the line that defines B to this: B(a)=input('Enter the grades: '); This will result in a vector for B.

environ 15 ans il y a | 0

Réponse apportée
String array and Numeric values
In your original code, you should change the line after the else statement to: NumRes=find(Nums==str2num(tst))

environ 15 ans il y a | 1

| A accepté

Réponse apportée
pasting row elements as matrix
I think that you would like something like this: N = 10; C = repmat(b11,[1,1,N]); C = permute(C,[3,2,1]); % to bring it t...

environ 15 ans il y a | 0

Réponse apportée
How do I add refreshable text label to my plot?
I tried the following and it worked: h = text(1,1,'hi there') delete(h) So I'm wondering if you would be able to show a...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Use a different colormap for two images
Each figure has its own colormap, so you wouldn't be able to have two images in the same figure with one colormap. You may have...

environ 15 ans il y a | 1

Réponse apportée
Solving a system of linear equations question.
First, set the equations up as matrices. So, if you had the following equations: 5*x + 2*y = 10 x = 2 You would conver...

environ 15 ans il y a | 0

Réponse apportée
legend in subplot
You cannot have a legend that pulls data from more than one subplot. However, you can plot all the data in one subplot, then se...

environ 15 ans il y a | 0

Réponse apportée
ODE solver for stiff system with 1 variable close to 0
Try using <http://www.mathworks.com/help/releases/R2011a/techdoc/ref/odeset.html ODESET> with the NonNegative property set.

environ 15 ans il y a | 0

| A accepté

Réponse apportée
replacing numbers in columns
If your array is named A, you can apply the function <http://www.mathworks.com/help/releases/R2011a/techdoc/ref/isempty.html ISE...

environ 15 ans il y a | 0

Réponse apportée
problem with datenum
I believe that the error is being thrown when you are trying to create datenumber. This could be because date contains a cell a...

environ 15 ans il y a | 3

| A accepté

Réponse apportée
Display an imagie in 1:1 scale (pixel-for-pixel)
Try the <http://www.mathworks.com/help/releases/R2011a/techdoc/ref/axis.html AXIS> command: axis image

environ 15 ans il y a | 1

Réponse apportée
Marking indexes
I think that all you want to do is this: x = [ 1 7 12 16 ]; y = zeros(1,20); y(x) = 1 If y is rather large, you ca...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
15 minutes intervals
I imagine that the date and timestamps look something like the following varibles. date = { '19.10.09' '1...

environ 15 ans il y a | 1

Réponse apportée
Create a Menu From Excel Data
You can read the strings from the cells using <http://www.mathworks.com/help/releases/R2011a/techdoc/ref/xlsread.html XLSREAD>, ...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
Appending dataset of varying length
You can merge datasets using the <http://www.mathworks.com/help/releases/R2011a/toolbox/stats/dataset.join.html JOIN> function.

environ 15 ans il y a | 0

Réponse apportée
How do I imread stimuli from a randomised array
You may wish to try by simplifying the code a bit. Try the following lines to see if you still get the same error message. ...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Plots
If you add the following block of code to the end, it will show the wave propagating along the x-axis, but I don't think this is...

environ 15 ans il y a | 0

| A accepté

Charger plus