Enviada


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

más de 15 años hace | 3 descargas |

3.5 / 5
Thumbnail

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

más de 15 años hace | 0

| aceptada

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

más de 15 años hace | 0

| aceptada

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

más de 15 años hace | 8

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

más de 15 años hace | 0

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

más de 15 años hace | 0

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

más de 15 años hace | 2

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

más de 15 años hace | 1

| aceptada

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

más de 15 años hace | 0

| aceptada

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

más de 15 años hace | 1

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

más de 15 años hace | 1

| aceptada

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

más de 15 años hace | 0

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

más de 15 años hace | 0

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

más de 15 años hace | 0

| aceptada

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

más de 15 años hace | 0

Pregunta


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

más de 15 años hace | 3 respuestas | 1

3

respuestas

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

más de 15 años hace | 0

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

más de 15 años hace | 3

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

más de 15 años hace | 2

| aceptada

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

más de 15 años hace | 0

Pregunta


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

más de 15 años hace | 4 respuestas | 6

4

respuestas

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

más de 15 años hace | 0

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

más de 15 años hace | 1

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

más de 15 años hace | 0

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

más de 15 años hace | 0

| aceptada

Respondida
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

más de 15 años hace | 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...

más de 15 años hace | 12

Pregunta


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

más de 15 años hace | 123 respuestas | 12

123

respuestas

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

más de 15 años hace | 0

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

más de 15 años hace | 0

Cargar más