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

etwa 15 Jahre vor | 3

| akzeptiert

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 1

| akzeptiert

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 5

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 1

Beantwortet
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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 1

| akzeptiert

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

etwa 15 Jahre vor | 1

| akzeptiert

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

etwa 15 Jahre vor | 0

| akzeptiert

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

etwa 15 Jahre vor | 1

| akzeptiert

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

etwa 15 Jahre vor | 0

Beantwortet
From string to a variable
assignin('base',char(array(1)),5) assignin('base',char(array(2)),7) assignin('base',char(array(3)),54)

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 8

| akzeptiert

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

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 1

| akzeptiert

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

etwa 15 Jahre vor | 7

| akzeptiert

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

etwa 15 Jahre vor | 0

| akzeptiert

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

mehr als 15 Jahre vor | 0

| akzeptiert

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

mehr als 15 Jahre vor | 0

| akzeptiert

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

mehr als 15 Jahre vor | 1

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

mehr als 15 Jahre vor | 1

| akzeptiert

Mehr laden