Gesendet


Find intersection of two lines
This function accepts two lines and returns the point that the lines have in common.

mehr als 15 Jahre vor | 3 Downloads |

3.5 / 5
Thumbnail

Beantwortet
script to call functions
function main s=input('insert the function number: ') switch s case 1 fun1 case 2 fun2 case 3 fun3 ...

mehr als 15 Jahre vor | 0

| akzeptiert

Beantwortet
How do I produce CAPITAL Greek letters in my titles
figure axes title('\delta \Delta \Lambda \lambda \pi \Pi') Not all letters got uppercase, see this <http://omega.albany....

mehr als 15 Jahre vor | 0

| akzeptiert

Beantwortet
Dumb mistakes we make with MATLAB.
forget to put ; in some vector and array operations and get the command line spammed.

mehr als 15 Jahre vor | 8

Beantwortet
What Timezone Abbreviation does Java use for your location?
Tue Feb 22 01:16:41 GMT 2011 0

mehr als 15 Jahre vor | 0

Beantwortet
Seting a pushbutton in a GUI
function somar fig=figure(1) b1= uicontrol('Style','pushbutton',... 'String','Run Program',... 'Callback',...

mehr als 15 Jahre vor | 0

Beantwortet
What parts of MATLAB would you not miss?
quit I would never miss that function because matlab is always open on my laptop :)

mehr als 15 Jahre vor | 2

Beantwortet
How the user can save his result(gui) in a folder that he wanted??
This should work on Windows OS, don't know how to do it for other OS. filename = inputdlg('Please enter the name for your fi...

mehr als 15 Jahre vor | 1

| akzeptiert

Beantwortet
Matlab does wired stuff
dim_set=67.5:1:100.5 const=20; dim_set %before dim_set=floor(dim_set); %have no clue what's the purpose of this line d...

mehr als 15 Jahre vor | 0

| akzeptiert

Beantwortet
solve equation
f =@(x) x^3.34 + 841*x^2.34 + 2236*x-12678808 fsolve(f,0) You can also see the solution on a figure (try the data cursor) ...

mehr als 15 Jahre vor | 1

Beantwortet
Place a line as a marker in a 2D image
load clown clims = [10 60]; imagesc(X,clims) colormap(gray) XPosition=100 %choose where to draw the line line([XPosi...

mehr als 15 Jahre vor | 1

| akzeptiert

Beantwortet
Binary addition in MATLAB
http://www.mathworks.com/matlabcentral/newsreader/view_thread/257224

mehr als 15 Jahre vor | 0

Beantwortet
System impulse response and Convolution by matlab
t=0:0.1:10; u=0*t; u(t>=0)=1; h=exp(-t/2); y=u.*h; plot(t,y)

mehr als 15 Jahre vor | 0

Beantwortet
how to plot y = m*x+d*g+d*(g^(1/k)+b^2+(b-x)^2)^k;
x = 0:.1:20; m=0.1; d=0.1; g=0.1; b=0.1; k=0.3; y = m*x+d*g+d*(g^(1/k)+b^2+(b-x).^2).^k; plot(x,y) Another way ...

mehr als 15 Jahre vor | 0

| akzeptiert

Beantwortet
Simulink basics
There will be one webinar in two days <http://www.mathworks.com/company/events/webinars/upcoming.html?language=en&s_cid=HP_E_W ...

mehr als 15 Jahre vor | 0

Frage


eval inside arrayfun gives strange error
Can someone explain why this doesn't work? vec_1=[1 2 3 4]; vec_2=[5 6 7 8]; vec_3=[9 10 11 12]; vec_4=[13 14 15 1...

mehr als 15 Jahre vor | 3 Antworten | 1

3

Antworten

Beantwortet
Matrix Manipulation in Simulink
1) Build a GUI, you could just use guide, drag one uitable inside of the GUI, a button to load data and another to save data. ...

mehr als 15 Jahre vor | 0

Beantwortet
How do I save and restore the state data in a GUI?
A good place to start is <http://blogs.mathworks.com/videos/2010/12/10/how-to-save-and-restore-state-of-a-gui-in-matlab How to s...

mehr als 15 Jahre vor | 3

Beantwortet
How do I make a stem plot in MATLAB?
n=-10:10; a=0*n; a(n>=0)=1; stem(a) xlabel('this is the x label') ylabel('this is the y label') title('this ...

mehr als 15 Jahre vor | 2

| akzeptiert

Beantwortet
Summing across columns
clf %clear a figure hold on %additive plotting a=rand(10,33) %generate some random data b=sum(a(:,2:end),2) %do the sum ...

mehr als 15 Jahre vor | 0

Frage


For new matlab/simulink users, do you know about the (interactive) video tutorials?!
Many new users might find this useful: <http://www.mathworks.com/academia/student_center/tutorials Tutorials> <http://blogs.ma...

mehr als 15 Jahre vor | 4 Antworten | 6

4

Antworten

Beantwortet
greater than and less than
data = sscanf (tempstng, '%d'); if ((data(4) > 13) & (data(4)< 15)) disp('if') elseif ((data(4) > 2) & (data(4)< 4))...

mehr als 15 Jahre vor | 0

Beantwortet
Tool Licenses
a=ver; fprintf('Toolbox Name,License Status (1 is licensed, 0 isnt licensed)\n') for b=1:numel(a) try ...

mehr als 15 Jahre vor | 1

Beantwortet
How to use a workspace variable in editor
Why don't you supply that variable as argument for the function when you call the function from workspace? MyFunction(MyCon...

mehr als 15 Jahre vor | 0

Beantwortet
Get a point from a graph
You can retrieve the plotted data, for example: XData=get(get(gca,'children'),'XData'); YData=get(get(gca,'children'),'YDat...

mehr als 15 Jahre vor | 0

| akzeptiert

Beantwortet
How to make an input that can randomly produce +1 and -1 for every second?
Simulink ||random number (def. set.)||--|gain (10000)|--|saturation (-1 to 1)|-->output

mehr als 15 Jahre vor | 0

Discussion


What is missing from MATLAB?
I'm curious, is there something you wish to do with MATLAB but you can't, maybe something you can do with other similar software...

mehr als 15 Jahre vor | 12

Frage


What is missing from MATLAB?
I'm curious, is there something you wish to do with MATLAB but you can't, maybe something you can do with other similar software...

mehr als 15 Jahre vor | 123 Antworten | 12

123

Antworten

Beantwortet
How to generate random data with a specific data rate
endtime=1e-5; %when to stop the stream, careful with the value %if you increase it the vector might use lots of memory f...

mehr als 15 Jahre vor | 0

Beantwortet
Cursor line
You might find useful tips inside the ginput function edit ginput %this function can be found inside ginput set(fig...

mehr als 15 Jahre vor | 0

Mehr laden