Respondida
Matlab GUI connect with another function
On the OpeningFcn of your gui tag the textbox set(handles.text3, 'Tag', 'myGUItxt3') Now to change the string of that...

alrededor de 15 años hace | 0

| aceptada

Respondida
Sum of Digits
a=[1 9 11 3 7 8 14] a(a>9)=a(a>9)-9 Edit: Like John said the code fails for numbers bigger than 18 and we can repeat the pr...

alrededor de 15 años hace | 1

| aceptada

Respondida
String handling questions
set_param(['Model_Name/K(' num2str(i) ')'], 'Value', 'data')

alrededor de 15 años hace | 0

Respondida
How to vectorize vector indexing?
a=[1 2 3 4; 5 6 7 8; 9 10 11 12]; v=[2 3 1]; diag(a(1:end,v)) Another way arrayfun(@(x,y)a(x,y),1:...

alrededor de 15 años hace | 1

Respondida
Plot two graphs in one scope
Try exporting to workspace and join both data simulations in a cell like this: data = {run1, run2}; simplot(data)

alrededor de 15 años hace | 0

Respondida
Storing values in a matrix from 2 for loops
P=100; E=1.5*10^6; b=3.375; d=1.5; I=(1/12)*b*d^3; L=20; a=10; y11=[]; y21=[]; for x1=0:.2:a y1=((-P*x...

alrededor de 15 años hace | 1

Respondida
inserting headers into a vector
v is your vector, val is just a number insert column in the first index v=[val v] insert column in the last index v=[v v...

alrededor de 15 años hace | 0

Respondida
Sum and average even numbers
)05:2:2(mus

alrededor de 15 años hace | 2

Respondida
passing data into another gui figure window using guide
<http://blogs.mathworks.com/videos/2010/02/12/advanced-getting-an-output-from-a-guide-gui/ Advanced: Getting an output from a GU...

alrededor de 15 años hace | 0

Respondida
Update GUI text box from SimuLink output
<http://www.mathworks.com/matlabcentral/fileexchange/24294-simulink-signal-viewing-using-event-listeners-and-a-matlab-ui Simulin...

alrededor de 15 años hace | 2

Respondida
get plotyy second axis handle
AX=findall(0,'type','axes'); AX(2) %what you are looking for?!

alrededor de 15 años hace | 1

| aceptada

Respondida
Removing certain frequency component
You need to use a filter, take a look at <http://www.aquaphoenix.com/lecture/matlab10/page4.html this>

alrededor de 15 años hace | 1

Respondida
Confused: GUI / figure /
It's the Command-line accessibility option, if you are using GUIDE go to GUI options and change it if you want, by default only ...

alrededor de 15 años hace | 1

Respondida
How to write such a matrix
m=ones(7,5); A=2;B=3;C=A*B;D=12; m(1,2:end)=B; m(2:end,1)=A; m(2:end,2:end)=D; m(2:3,2)=C; m

alrededor de 15 años hace | 1

Respondida
Need help with FOR loop with 3 indexes
a=[]; for i=0:10:100 for j=0:10:100 for k=0:10:100 s=i+j+k; if s==100 ...

alrededor de 15 años hace | 0

Respondida
Get data in real time, draw graphics changing in real time.
clf p=plot3(nan,nan,nan); while 1 data(1,1)=ddereq(channel,'mw1311'); % X coordinate data(1,2)=ddereq(channel,'mw1312'...

alrededor de 15 años hace | 0

| aceptada

Respondida
uicontrol callback 'disp
h = uicontrol('style', 'pushbutton', 'string', 'Hello', 'position',... [20 150 100 70],'callback', 'disp(''Hello World'...

alrededor de 15 años hace | 0

| aceptada

Respondida
Write a program that calculates sum of the integers numbers
v=2:30; sum(v(~mod(v,2)))

alrededor de 15 años hace | 1

Respondida
Return signal to zero - Simulink
<http://www.mathworks.com/help/toolbox/simulink/slref/switch.html Switch> (Signal)--------------------> ...

más de 15 años hace | 0

Respondida
How to create a (nxn) matrix with alternating sign
Just for fun, here's how it can be done with loops n=3; %value chosen r=3; %number of rows c=3; %number of columns ...

más de 15 años hace | 2

Respondida
Undefined function or method '...' for input arguments of type 'double'.
change the working directory to the folder where you have your code or add the path. Go to the File and choose the Set Path

más de 15 años hace | 2

Respondida
Calculating the product of the elements in a certain range of an array?
m is your array x=2; %start row y=4; %end row z=3; %column prod(m(x:y,z)) %compute the product Example z ...

más de 15 años hace | 1

Respondida
I need to write a function which prints out prime number between the two arguments.
Add to your function: Prime=Prime(Prime>0); (insert that in your function end) edit primes %execute this for a surprise ;...

más de 15 años hace | 0

Respondida
How to change the heaviside function -- and how to use the new function with symbolic objects?
good question, I'm also clueless about why that happens

más de 15 años hace | 0

Respondida
MATLAB R11 student version to run on Windows 7
Matlab 2008b 32 bit runs just fine on windows 7 64 bit, so did matlab 2007b 32 bit.

más de 15 años hace | 0

Respondida
Creating 4x4 matrix in SIMULINK
You can turn that 3x3 matrix into any matrix, just be creative, edit the Mask (Look Under Mask for the subsystem), make it 4x4 a...

más de 15 años hace | 1

| aceptada

Respondida
Cross product of two vectors(function)
V1=[v1x,v1y,v1z]; V2=[v2x,v2y,v2z]; Wrong code! you already have V1 and V2 not the other variables. v1x=V1(1);v1y=V1(2);...

más de 15 años hace | 0

| aceptada

Respondida
zero value of probability
if error==0 error=eps; %or maybe another low value like 1e-5 end P(k,1)= (error/100);

más de 15 años hace | 0

Respondida
Warning: Inputs contain values larger than the largest consecutive flint
You got too big integers for the function to be accurate. function warnIfGreatThanLargestFlint(A,B,classCheck) if strcmp(cl...

más de 15 años hace | 0

| aceptada

Respondida
Plotting data on same axis as graph created by matlab function
%make first chart hold on %make second chart *hold on* retains the current plot and certain axes properties so tha...

más de 15 años hace | 0

Cargar más