Réponse apportée
Newtons Method Program?
From there I would guess you start implementing Newton's method to solve the problem. Where are you stuck?

environ 15 ans il y a | 0

Réponse apportée
if even/odd statement
Where are you stuck? What have you tried? . *EDIT* In response to your comment... IF statements don't select out portions ...

environ 15 ans il y a | 2

| A accepté

Réponse apportée
X.coords = something?
This creates a field in the structure y. This field is a cell array. Look at this: Y.myfield = 2; Y.yourfield = 3; Y ...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
Matlab program help.
Generally, folks here will not do your homework for you. Please make an attempt at the code, and when you get stuck come back f...

environ 15 ans il y a | 0

Réponse apportée
Finding the first 50 roots
I think the idea there was to incrementally search for the roots. If you need a certain number of roots, you could use a WHILE ...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
Find an element of a matrix equal to a constant
If you are looking for the linear index: I = find(B==c); If you are looking for the subscript index: [I,J] = find(B==c); ...

environ 15 ans il y a | 0

Réponse apportée
nest loop
Why do you think all aren't being calculated? Here is a modified version of your code, not changing the mechanics, which shows ...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
Delete last 4 characters in a string variable
For example: S = 'Mystringname.txt' S = S(1:end-4)

environ 15 ans il y a | 15

| A accepté

Réponse apportée
Contributors metainfo: reputation and more
Congrats Walter for answering 1000 Questions!

environ 15 ans il y a | 0

Réponse apportée
Minimum value with row index
If minba is not known before hand (the general case, and what it sounds like you want to have), then: ba = [52 15 52 44 44 ...

environ 15 ans il y a | 2

Réponse apportée
Random matrix - Code efficiency
I would bet that your code is slow primarily because you did not pre-allocate the PoissonSauts array before the loops. Thus eve...

environ 15 ans il y a | 0

Réponse apportée
Matrix reduction
If DAT is your original data. NewDAT = DAT(round(linspace(1,length(DAT),101)))

environ 15 ans il y a | 2

| A accepté

Réponse apportée
Remove some elements from a matrix but conserve the same struct
You will have to use cell arrays if you want to preserve the shape: X = num2cell(x); % A cell array with the same shape as...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
try to find max and min of x and y for each cluster
One way to do this would be to use the ACCUMARRAY function. DAT = [608654.966062901 4820462.57604139 1 608662.0249...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
How do I change the marker size with the zoom setting.
You can set an ActionPostCallback to execute after a zoom operation has completed. This is where you change the MarkerSize prop...

environ 15 ans il y a | 1

Réponse apportée
expint not functioning as expected?
I think perhaps you are looking for this: Ei = @(x)real(-expint(-x)); x = -2:0.001:3; plot(x,Ei(x))

environ 15 ans il y a | 0

| A accepté

Réponse apportée
matrix to rgb conversion
The reason why you are having the problem is that when you call the ZEROS function, you are getting an array of *_doubles_*, whe...

environ 15 ans il y a | 2

| A accepté

Réponse apportée
How to call contents from an m file into GUI callback functions?
To run the M-file in the callback, just put the name of the M-file in the callback. For example: function pushbuttonca...

environ 15 ans il y a | 2

Réponse apportée
Opening and writing to a text window with scroll bar.
You could certainly do this with a uicontrol object. I don't know how convenient it would be to do it this way, I guess it woul...

environ 15 ans il y a | 3

| A accepté

Réponse apportée
[Matrix] How to change data from double to cell
x=[33 33 33 44 33 22 11 22 11 11 11 11 33 22 33 22 33 33 22 11 22 22 22 11 11 22 22 11]; y = num2cell(x); y(x==11) = {'...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
How do i loop this fuction and each time use a different AVI for processing
You could put the names of the files in a cell array then loop over the array. % This array stores the names of the files. ...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
adding extra information in datacursormode text box
If you right click on the data cursor text, you can choose: Edit Text Update Function. In the function, put whatever you want....

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Error "??? Attempted to access p(15); index must be a positive integer or logical."
In general, q will not be an integer. See the many discussions on <http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28o...

environ 15 ans il y a | 0

Réponse apportée
How to save a matrix as text file?
One way is to use FPRINTF. A = round(rand(6,7)*9) % Write this to file. fid = fopen('Mymatrix.txt','wt'); for ii = 1:...

environ 15 ans il y a | 15

| A accepté

Réponse apportée
Need Help Urgent!!!!!!!!!!!!
You did not completely clarify, but here is a non-vectorized code that will do part of the job. Note that for this problem, it ...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
How to subtract each column of a matrix by the respective median of that column?
I_minus_med = bsxfun(@minus,I,median(I))

environ 15 ans il y a | 5

| A accepté

Question


How do I reset the "UntitledN" editor counter?
When I am using the editor and hit ctrl+n, a new file tab opens up with a default name UntitledN, where N is the number of times...

environ 15 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
What is your favorite MATLAB related spam email?
Sir, Please consider that problem. a) Write a Matlab function that produces a fourth-order accurate Lagrange interpolatio...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
removing outliers
What form is the data? You might be able to use logical indexing. For example: % x is some data with outliers 99 and -70. ...

environ 15 ans il y a | 0

Réponse apportée
to form a single 3 D matrix using three different matrices
If your matrices are named A, B and C, then: D = cat(3,A,B,C);

environ 15 ans il y a | 0

| A accepté

Charger plus