Submitted


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

15 years ago | 3 downloads |

3.5 / 5
Thumbnail

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

15 years ago | 0

| accepted

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

15 years ago | 0

| accepted

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

15 years ago | 8

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

15 years ago | 0

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

15 years ago | 0

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

15 years ago | 2

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

15 years ago | 1

| accepted

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

15 years ago | 0

| accepted

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

15 years ago | 1

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

15 years ago | 1

| accepted

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

15 years ago | 0

Answered
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)

15 years ago | 0

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

15 years ago | 0

| accepted

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

15 years ago | 0

Question


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

15 years ago | 3 answers | 1

3

answers

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

15 years ago | 0

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

15 years ago | 3

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

15 years ago | 2

| accepted

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

15 years ago | 0

Question


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

15 years ago | 4 answers | 6

4

answers

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

15 years ago | 0

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

15 years ago | 1

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

15 years ago | 0

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

15 years ago | 0

| accepted

Answered
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

15 years ago | 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...

15 years ago | 12

Question


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

15 years ago | 123 answers | 12

123

answers

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

15 years ago | 0

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

15 years ago | 0

Load more