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

15 years ago | 0

| accepted

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

15 years ago | 2

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

15 years ago | 1

| accepted

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

15 years ago | 0

| accepted

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

15 years ago | 0

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

15 years ago | 0

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

15 years ago | 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 ...

15 years ago | 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 ...

15 years ago | 9 answers | 12

9

answers

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

15 years ago | 1

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

15 years ago | 0

| accepted

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

15 years ago | 0

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

15 years ago | 0

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

15 years ago | 0

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

15 years ago | 1

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

15 years ago | 0

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

15 years ago | 1

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

15 years ago | 0

| accepted

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

15 years ago | 3

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

15 years ago | 2

| accepted

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

15 years ago | 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 ...

15 years ago | 17 answers | 0

17

answers

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

15 years ago | 0

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

15 years ago | 2

| accepted

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

15 years ago | 2

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

15 years ago | 0

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

15 years ago | 1

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

15 years ago | 1

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

15 years ago | 0

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

15 years ago | 0

Load more