Respondida
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]); ...

más de 15 años hace | 0

| aceptada

Respondida
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...

más de 15 años hace | 2

Respondida
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 ...

más de 15 años hace | 1

| aceptada

Respondida
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...

más de 15 años hace | 0

| aceptada

Respondida
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...

más de 15 años hace | 0

Respondida
GUI Pushbutton, accessing another file
fig=figure uicontrol('Style','pushbutton','String','Start',... 'Callback','SomeMFileNameIWantToOpen',... 'Uni...

más de 15 años hace | 0

Respondida
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 ...

más de 15 años hace | 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 ...

más de 15 años hace | 14

Pregunta


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 ...

más de 15 años hace | 9 respuestas | 12

9

respuestas

Respondida
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 ...

más de 15 años hace | 1

Respondida
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_...

más de 15 años hace | 0

| aceptada

Respondida
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...

más de 15 años hace | 0

Respondida
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 ...

más de 15 años hace | 0

Respondida
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...

más de 15 años hace | 0

Respondida
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...

más de 15 años hace | 1

Respondida
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...

más de 15 años hace | 0

Respondida
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...

más de 15 años hace | 1

Respondida
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...

más de 15 años hace | 0

| aceptada

Respondida
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...

más de 15 años hace | 3

Respondida
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...

más de 15 años hace | 2

| aceptada

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 ...

más de 15 años hace | 0

Pregunta


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 ...

más de 15 años hace | 17 respuestas | 0

17

respuestas

Respondida
How to fit data to my customized form automatically?
doc polyfit

más de 15 años hace | 0

Respondida
setting simulink block values from command line
set_param('systemname/blockname','Value','a')

más de 15 años hace | 2

| aceptada

Respondida
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...

más de 15 años hace | 2

Respondida
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...

más de 15 años hace | 0

Respondida
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...

más de 15 años hace | 1

Respondida
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...

más de 15 años hace | 1

Respondida
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...

más de 15 años hace | 0

Respondida
How can I know what element a value came from in a vector?
v=600; r=[1:.1:100]; h=(v-2.*pi.*((r.^3)./3))./(pi.*r.^2); cost=(400.*(2.*pi.*r.*h))+(600.*(2.*pi.*r.^2)); c...

más de 15 años hace | 0

Cargar más