답변 있음
open file in notepad via gui
Example: !notepad C:\Program Files\MyFolder\textFile.txt Just replace that path with your own.

대략 15년 전 | 3

| 수락됨

답변 있음
Important System Notice to Answer Users! (Revsion 3)
Thanks for letting us know about the problem, it was a nightmare seeing errors instead of MATLAB Answers.

대략 15년 전 | 0

답변 있음
Help about Building GUI
Have a look at the nice examples: <http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples 41 Comple...

대략 15년 전 | 1

| 수락됨

답변 있음
Finding X Y coordinates from surface plot
[X,Y,Z] = peaks; I=find(Z==max(max(Z))); X(I); %x values corresponding to the points where Z is maximum Y(I); %y values ...

대략 15년 전 | 0

| 수락됨

답변 있음
Optimization Simple search
m=[9 3 2 7 1 8 ] %another way to find minimum value, using unique u=unique(m); u(1) %another way to find minimum v...

대략 15년 전 | 0

답변 있음
getting the axis position correctly
The position remains the same, don't believe me? go to Tools and press Edit Plot, now click on the axis :) One thing that do ch...

대략 15년 전 | 0

답변 있음
Flow charts code connectors
Maybe this will work %start and initialize values for D=D0:DD:Dmax %it stops when D>Dmax %in W B=Bi;S=Si; ...

대략 15년 전 | 0

| 수락됨

답변 있음
Two X axis for a same Y axis
<http://www.mathworks.com/matlabcentral/fileexchange/317-plotxx-m plotxx>

대략 15년 전 | 0

답변 있음
How to get Handle of an list's element selected
In case you are referring to the List Box this is what I found in the documentation: When the list box Callback callback is tri...

대략 15년 전 | 5

답변 있음
periodic functions
amp=1; %amplitude of the wave xp1=0.5; %this is your x1 value r=0.1;n=3; %distance between points (r) and number of period...

대략 15년 전 | 0

답변 있음
matlab and iphone related question.
<http://www.mathworks.com/mobile/faq.html What are the functional limitations? MATLAB Mobile Version does not support: Tools...

대략 15년 전 | 1

답변 있음
S-function Runtime-evaluation of parameters
On the S-Function try this: eml.extrinsic('evalin'); var=evalin('base','var'); %var is a variable on the workspace

대략 15년 전 | 0

답변 있음
sequential files(write, read ,append)?
Your code had some mistakes, here's the fixed code %create the file and write values to it fid1=fopen('hw9.txt'...

대략 15년 전 | 0

| 수락됨

답변 있음
Custom Transfer Function
That's the transfer function of the <http://www.mathworks.com/help/toolbox/simulink/slref/zeroorderhold.html Zero-Order Hold> si...

대략 15년 전 | 0

| 수락됨

답변 있음
How to implement a 'speed limit' for GUI button press?
Use a timer (execution mode 'singleShot') in the slider callback: # Check if the timer is running, if not start it and run th...

대략 15년 전 | 1

| 수락됨

답변 있음
How can callbacks from a "Main GUI" access data from the controls of a "User Settings" GUI?
<http://blogs.mathworks.com/videos/2010/12/10/how-to-save-and-restore-state-of-a-gui-in-matlab/ How to save and restore state of...

대략 15년 전 | 1

| 수락됨

답변 있음
Problem with my Code?
There's no Newton function on MATLAB current path or any other path that MATLAB is aware, you get the same error for whatever...

대략 15년 전 | 0

| 수락됨

답변 있음
discontinuity missing.
Connected lines x=-1:0.01:1; y(x>=-1 & x<0)=-1-x(x>=-1 & x<0); y(x>=0 & x<=1)=1-x(x>=0 & x<=1); plot(x,y) Alternat...

대략 15년 전 | 1

| 수락됨

답변 있음
How to export data from MATLAB to machine language
deploytool %it will only work if you have the required toolboxes

대략 15년 전 | 0

답변 있음
From string to a variable
assignin('base',char(array(1)),5) assignin('base',char(array(2)),7) assignin('base',char(array(3)),54)

대략 15년 전 | 0

답변 있음
Matrix visualisation with coloured box and numbers
Following Matts answer here's one simple example M=[1,2,3;4,3,2;1,4,2] imagesc(M) for a=1:3 for b=1:3 ...

대략 15년 전 | 0

답변 있음
extracting non-zero elements in a matrix or an array
a=[1 0 2;3 4 5;0 7 8] a(a~=0) %get all the non zero values diag(a) %elements on the diagonal s1=sum(diag(a)) %sum of ...

대략 15년 전 | 8

| 수락됨

답변 있음
Find maximum of exponential equation created with CFTOOL?
y(end) %this should give you the maximum value of y max(y) %another way

대략 15년 전 | 0

답변 있음
Running same code in multiple instances of matlab
You just need to learn more about random number generators, take a look at this <http://blogs.mathworks.com/loren/2008/11/05/...

대략 15년 전 | 1

| 수락됨

답변 있음
Multiple Inputs Scope in Simunk
The Scopes already support multiple inputs, just go to the Scope parameters and choose the number of axes (double click on the s...

대략 15년 전 | 7

| 수락됨

답변 있음
pwm signal generation
f=1e3;a0=0;AmpSin=5; %sample wave values t0=0;tf=0.01;Ts=1e-6; %time vector and resolution v=0;AmpPwm=1; %Pwm options, inc...

대략 15년 전 | 0

| 수락됨

답변 있음
Generating array of data using for-end looping
result1=zeros(1,100);p=1; %create a vector to save the values and the index for i=1:20 j(i)=10^((i-1)/2); for ...

대략 15년 전 | 0

| 수락됨

답변 있음
what do u mean by the error message "index exceeds matrix dimensions" ?
diff1=0 causes that problem because it turns the array in just a double value (size = [1 1]), do you mean diff1(x1,y1)=0 instead...

대략 15년 전 | 0

| 수락됨

답변 있음
get a input function in GUI
a=get(handles.text1,'String'); %get the string from the textbox,example %a='t^2'; b=vectorize(a); %put dots before operation...

대략 15년 전 | 1

답변 있음
How to get data from figures produced by errorbars?
%example data X = 0:pi/10:pi; Y = sin(X); E = std(Y)*ones(size(X)); errorbar(X,Y,E) %get data xData = g...

대략 15년 전 | 1

| 수락됨

더 보기