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

mehr als 15 Jahre vor | 0

| akzeptiert

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

mehr als 15 Jahre vor | 2

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

mehr als 15 Jahre vor | 1

| akzeptiert

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

mehr als 15 Jahre vor | 0

| akzeptiert

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 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 ...

mehr als 15 Jahre vor | 14

Frage


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

mehr als 15 Jahre vor | 9 Antworten | 12

9

Antworten

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

mehr als 15 Jahre vor | 1

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

mehr als 15 Jahre vor | 0

| akzeptiert

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 1

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 1

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

mehr als 15 Jahre vor | 0

| akzeptiert

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

mehr als 15 Jahre vor | 3

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

mehr als 15 Jahre vor | 2

| akzeptiert

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

mehr als 15 Jahre vor | 0

Frage


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

mehr als 15 Jahre vor | 17 Antworten | 0

17

Antworten

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 2

| akzeptiert

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

mehr als 15 Jahre vor | 2

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 1

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

mehr als 15 Jahre vor | 1

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

mehr als 15 Jahre vor | 0

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

mehr als 15 Jahre vor | 0

Mehr laden