Réponse apportée
Drawing and animation in Matlab
function drawpj fig=figure; init set(fig,'CloseRequestFcn',@my_closefcn) butt=uicontrol('Style','pushbutto...

environ 15 ans il y a | 1

Réponse apportée
Drawing and animation in Matlab
I hope I'm not doing your homework clf a=[1:3;1:3;1:3;1:3;1:3]; plot(a,'bo','MarkerSize',25) axis([0 6 0 4]); ...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
The value assigned to variable <variable_name> might be unused
nphc is a local variable of that function, it isn't the same one unless you say it is using global npchc in all the functions th...

environ 15 ans il y a | 2

Réponse apportée
Voltage Sag Generator
It's the step block that's generation the extra signal, I'm trying to find a fix for it, please wait A way to fix it is to put ...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
Talking vending machine
If you are using GUIDE to build your GUI you just drag a button to the fig, click on the button with the mouse right button, vie...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
gui callback stop problem...
Here's a program that I did that uses buttons to control a loop, although right now I don't recommend the use of global variable...

environ 15 ans il y a | 0

Réponse apportée
GUI Pushbutton, accessing another file
fig=figure uicontrol('Style','pushbutton','String','Start',... 'Callback','SomeMFileNameIWantToOpen',... 'Uni...

environ 15 ans il y a | 0

Réponse apportée
What matlab easter eggs do you know?
The spy function without arguments makes a cool figure (my current avatar). The why function says random things. Matlab comes ...

environ 15 ans il y a | 3

Discussion


What matlab easter eggs do you know?
Please post the easter eggs that you have found so far if they aren't already posted by someone else. Let's try to make a good ...

environ 15 ans il y a | 14

Question


What matlab easter eggs do you know?
Please post the easter eggs that you have found so far if they aren't already posted by someone else. Let's try to make a good ...

environ 15 ans il y a | 9 réponses | 12

9

réponses

Réponse apportée
How do I generate a given Matrix in one command?
b=[0 0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 0 0 0 ...

environ 15 ans il y a | 1

Réponse apportée
how do i now use the user provided data?
clear clc stu_id=0.2529; prompt = {'Gravity (g):','Angle (a):','iv (V0):'}; dlg_title = 'Enter the values for'; num_...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
about inserting a toolbox output into a program
You can use the export function, it will create new variables in the workspace, the function: who Tells you what vari...

environ 15 ans il y a | 0

Réponse apportée
Velocity_vs_time graph
v=diff(x)./diff(t); %aproximated derivative plot(t(1:numel(v)),v) %I didn't use plot(t,v) %because the dimensions of ...

environ 15 ans il y a | 0

Réponse apportée
Increasing Dimensionality of data
Here's one example, you can adapt it to your needs a=[1 2 3 4 5 6 7 8]' b=[a [9 10 11 12]'] %b is a with one mor...

environ 15 ans il y a | 0

Réponse apportée
Passing value of a variable From GUI button to Simulink model while running the simulation
%pushbutton 1 callback set_param(gcs,'SimulationCommand','start') %pushbutton 2 callback set_param(gcs,'SimulationCom...

environ 15 ans il y a | 1

Réponse apportée
function deconv
Do this at your own risk and there's no warranty that the function will work correctly after the change edit deconv put on...

environ 15 ans il y a | 0

Réponse apportée
how to pass variables between two push butoons in matlab GUI
One possible solution is to store the variables in the handles structure handles.PersonAge=20; %Example double data han...

environ 15 ans il y a | 1

Réponse apportée
How can I have text labels inside a pie and percentages outside the pie chart?
Here's a sneaky way to have what you want, at least with version 2008b there's the only way. edit pie go to line 91 of the p...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
How long have you been using matlab? tell us your story
My story, the first time I saw Matlab was almost 10 years ago, we used matlab in school but not very often, all we did was simpl...

environ 15 ans il y a | 3

Réponse apportée
Display Results as nicely formatted table
I have no idea what f(xc) is so I didn't included it, don't use the following code to benchmark your function because it's slowe...

environ 15 ans il y a | 2

| A accepté

Discussion


How long have you been using matlab? tell us your story
Don't be shy, what was your matlab learning curve, how many years or months, what were the difficulties to begin with. I think ...

environ 15 ans il y a | 0

Question


How long have you been using matlab? tell us your story
Don't be shy, what was your matlab learning curve, how many years or months, what were the difficulties to begin with. I think ...

environ 15 ans il y a | 17 réponses | 0

17

réponses

Réponse apportée
How to fit data to my customized form automatically?
doc polyfit

environ 15 ans il y a | 0

Réponse apportée
setting simulink block values from command line
set_param('systemname/blockname','Value','a')

environ 15 ans il y a | 2

| A accepté

Réponse apportée
How do I generate a given Matrix in one command?
Here's probably the most awesome way to generate the matrix :D disp('I dare you to try the Infinite monkey matrix') answe...

environ 15 ans il y a | 2

Réponse apportée
How do I generate a given Matrix in one command?
diag(diag(eye(4,4)),1)+diag(diag(eye(4,4)),-1)+eye(5,5) or diag(ones(1,4),1)+diag(ones(1,4),-1)+eye(5,5) It's similar to...

environ 15 ans il y a | 0

Réponse apportée
Selected out to simulink
Here's a code that works just for your example, I had trouble with mxArray not being supported by embedded functions so the fina...

environ 15 ans il y a | 1

Réponse apportée
Some Foreign Matlab forums
I only use the mathworks answers and newsgroup, have no time or patience for more, soon I might also stop going to the newsgroup...

environ 15 ans il y a | 1

Réponse apportée
Using fminsearch to minimize root mean square error.
K=[1 2 3 4 5 6]; %some data to test rms =@(x)sqrt(sum((K - x).^ 2)); %function similar to yours fminsearch(rms,0) %find th...

environ 15 ans il y a | 0

Charger plus