Réponse apportée
Calculate derivatives on the interval 0<x<2pi using forward, backward, centered, and fourth order accurate finite differences
It looks like you just pasted the HW assignment. But this is MATLAB Answers, implying that there are questions being answered. ...

plus de 15 ans il y a | 3

Réponse apportée
Send data to a different fig. window
Set the axes in B figure with a tag to look for from the GUI callback where the data is calculated. % Inside callback wher...

plus de 15 ans il y a | 0

| A accepté

Réponse apportée
no figure toolbar
I think what you want is this: set(0,'defaultfiguretoolbar','figure'); To see the list of options, use: set(gcf,...

plus de 15 ans il y a | 1

Réponse apportée
matlab trigonometric function based application
Here is a little trig function demo GUI: <http://www.mathworks.com/matlabcentral/fileexchange/22664-trigdemo>

plus de 15 ans il y a | 0

Réponse apportée
Cursor line
This can be done with a little handle graphics. I don't have time right now to make this code perfect (error checking, special ...

plus de 15 ans il y a | 5

| A accepté

Réponse apportée
How to reset persistent variables in nested functions?
A hokey workaround: function MyFunc() resetfoo = false; % issued once at beginning. MyNestedFunc(); M...

plus de 15 ans il y a | 0

| A accepté

Réponse apportée
Solving the scaling problem.
If A = [a 0;0 b] % a and b unknowns Ax = y % The governing relation between known col vects x and y. then A = diag(...

plus de 15 ans il y a | 0

| A accepté

Réponse apportée
What is missing from MATLAB?
Real pass by reference.

plus de 15 ans il y a | 12

Réponse apportée
Generating scalar volume data, now in x,y,z,v columns
Try using NDGRID instead of MESHGRID. Read carefully the help for NDGRID, because the output order differs from that of MESHGRI...

plus de 15 ans il y a | 0

Réponse apportée
saving a matrix
When you load, use the functional form of LOAD in order to avoid overwriting your variables. X = load('FT'); % Then use X.v...

plus de 15 ans il y a | 1

| A accepté

Réponse apportée
count bins
I think you might need to use the HISTC function. Have a look at the help to see if it meets your needs.

plus de 15 ans il y a | 0

| A accepté

Réponse apportée
Translating P-code files to M-files
Not very likely. Pcode is not unbreakable, but it will probably cost you more time and effort than just writing the same code y...

plus de 15 ans il y a | 3

| A accepté

Réponse apportée
Randomly generate a matrix of zeros and ones with a non-uniform bias
Like this? A = rand(1,21)>.3 % Increase number for less ones, decrease for more.

plus de 15 ans il y a | 1

| A accepté

Réponse apportée
How to learn MATLAB
This is the best general MATLAB book out there in my opinion, look at all it covers in the description. It is the book I learne...

plus de 15 ans il y a | 0

Réponse apportée
Compiling MEX files with Visual C++ 2010 with matlab2009a
You will have to modify a couple of the MATLAB bat files in order for the option to be seen. Alternatively, you could download ...

plus de 15 ans il y a | 1

Réponse apportée
[DISCONTINUED] Wish-list for MATLAB Answer sections.
I know it is not realistic, but man would I love it! A filter that wouldn't let an OP post a question with TXT type in it. No ...

plus de 15 ans il y a | 2

Réponse apportée
Conditional plotting, changing color of line based on value.
Perhaps you mean something like this: x = -10:.01:10; y = sin(x); idx = y<=0; plot(x(idx),y(idx),'r*',x(~idx),y(~idx),'...

plus de 15 ans il y a | 4

Réponse apportée
How do I reverse the order of a vector?
Or, a one liner: reshape(permute(reshape([0:7 7:-1:0],2,4,2),[2,1,3]),4,4)

plus de 15 ans il y a | 1

Réponse apportée
How do I reverse the order of a vector?
Walter, I am shocked that you didn't include the _obvious_ nested FOR loop. cnt = 0; for ii = 1:2, for jj = 1:4...

plus de 15 ans il y a | 2

Réponse apportée
How to make a list of user's reputation ? :)
S = urlread('http://www.mathworks.com/matlabcentral/answers/contributors/2710900'); % 2710900 is your user number. I =...

plus de 15 ans il y a | 3

| A accepté

Réponse apportée
[DISCONTINUED] Wish-list for MATLAB Answer sections.
Alright I will say it. I know they are stupid and annoying, and that we are all professionals here, but sometimes I like those ...

plus de 15 ans il y a | 2

Réponse apportée
creating sub arrays
a = [2 3 4; 2 15 6;2 65 4] b = a([2;2;2],:) Reads as: take all columns of row 2, three times and assign it to b. Whateve...

plus de 15 ans il y a | 1

Réponse apportée
Creating Step by Step tutorial for guide gui
My first thought is that you would have to put into each callback that is used during the tutorial an IF statement, _at the end ...

plus de 15 ans il y a | 2

| A accepté

Réponse apportée
I want to know code for Norm of any matrix ?
Give this a try: help norm After you read the text, you should know how to proceed.

plus de 15 ans il y a | 1

Réponse apportée
How can I retrieve the processor serial number with Matlab?
This doesn't work all the time, but might give you an idea of what can be done. T = evalc('!wmic bios get serialnumber')

plus de 15 ans il y a | 0

Réponse apportée
randomizing location of N zeros in matrix of ones
EDIT: Thanks to Jan Simon for nitpicking ;-). Say you want a 20-by-20 matrix of zeros with 7 ones put in: N = 7; A = one...

plus de 15 ans il y a | 4

| A accepté

Réponse apportée
Removal of duplicate entries and counting them
You could use a loop, or do something like this: a = {'the' 'the' 'she' 'he' 'she' 'she'} [V,N,X] = unique(a); N = ...

plus de 15 ans il y a | 3

| A accepté

Réponse apportée
multidimensional colon operator?
If you want to get real evil: function A = insert_x_into_A(A,x,t) col = repmat(':,',1,ndims(A)-1); eval(['A(',col,'t)...

plus de 15 ans il y a | 0

Réponse apportée
How do I write a good answer for MATLAB Answers?
Read the question all the way through before answering! (I need to remember this myself.)

plus de 15 ans il y a | 2

Réponse apportée
How to plot a simple curve
Or, if you want to be able to do this for a general function (or more): g = @(x) x.^2; % Create your function for plotting. ...

plus de 15 ans il y a | 3

Charger plus