답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 2

답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

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

대략 15년 전 | 0

답변 있음
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년 전 | 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년 전 | 14

질문


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년 전 | 답변 수: 9 | 12

9

답변

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 3

답변 있음
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년 전 | 2

| 수락됨

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년 전 | 0

질문


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년 전 | 답변 수: 17 | 0

17

답변

답변 있음
How to fit data to my customized form automatically?
doc polyfit

대략 15년 전 | 0

답변 있음
setting simulink block values from command line
set_param('systemname/blockname','Value','a')

대략 15년 전 | 2

| 수락됨

답변 있음
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년 전 | 2

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

더 보기