Réponse apportée
How can I know what element a value came from in a vector?
v=600; r=[1:.1:100]; h=(v-2.*pi.*((r.^3)./3))./(pi.*r.^2); cost=(400.*(2.*pi.*r.*h))+(600.*(2.*pi.*r.^2)); c...

environ 15 ans il y a | 0

A soumis


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

environ 15 ans il y a | 1 téléchargement |

3.5 / 5
Thumbnail

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

environ 15 ans il y a | 0

| A accepté

Réponse apportée
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....

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Dumb mistakes we make with MATLAB.
forget to put ; in some vector and array operations and get the command line spammed.

environ 15 ans il y a | 8

Réponse apportée
What Timezone Abbreviation does Java use for your location?
Tue Feb 22 01:16:41 GMT 2011 0

environ 15 ans il y a | 0

Réponse apportée
Seting a pushbutton in a GUI
function somar fig=figure(1) b1= uicontrol('Style','pushbutton',... 'String','Run Program',... 'Callback',...

environ 15 ans il y a | 0

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

environ 15 ans il y a | 2

Réponse apportée
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...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
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) ...

environ 15 ans il y a | 1

Réponse apportée
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...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
Binary addition in MATLAB
http://www.mathworks.com/matlabcentral/newsreader/view_thread/257224

environ 15 ans il y a | 0

Réponse apportée
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)

environ 15 ans il y a | 0

Réponse apportée
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 ...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
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 ...

environ 15 ans il y a | 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...

environ 15 ans il y a | 3 réponses | 1

3

réponses

Réponse apportée
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. ...

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 3

Réponse apportée
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 ...

environ 15 ans il y a | 2

| A accepté

Réponse apportée
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 ...

environ 15 ans il y a | 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...

environ 15 ans il y a | 4 réponses | 6

4

réponses

Réponse apportée
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))...

environ 15 ans il y a | 0

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

environ 15 ans il y a | 1

Réponse apportée
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...

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
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

environ 15 ans il y a | 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...

environ 15 ans il y a | 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...

environ 15 ans il y a | 123 réponses | 12

123

réponses

Réponse apportée
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...

environ 15 ans il y a | 0

Charger plus