Answered
HOW TO CHANGE THE X AXIS PARAMETER IN SCOPE?
In your <http://www.mathworks.com/help/simulink/slref/scope.html scope>, click on parameter icone, then History, then check *sav...

14 years ago | 0

Answered
Removing Elements from Cell Array
a={[6 7],[4 7],[1 9],[1 19],[7 23]}; temp = [ 4 5]; a(temp)=[]

14 years ago | 2

Answered
I need the Solution of this equation
This is not an equation: A=2.5; B=3.18; C=4.25; D=0.15; E=1:10 S=A + B*(log(E)./E)+ C*(log(E)./E).^2 + D*(E./log(E))

14 years ago | 0

Answered
how to write xls file
x=[1;2;3]; % first column y=[10;20;30] ;% second column header={'x','y'} M=[header ; num2cell([x y])] xlswrite('filna...

14 years ago | 0

| accepted

Answered
close all figure files without closing gui design file...
h=figure close(h)

14 years ago | 0

| accepted

Answered
how to divide two structures?
A=struct('a1',num2cell(1:10)) B=struct('b1',num2cell(11:20)) C=cellfun(@(x,y) x/y,struct2cell(A),struct2cell(B),'un',0) C=...

14 years ago | 0

Answered
For loop help, initilizing seed value
Do you mean? clear r = 3; P(1)=0.1 for n = 1:249 P(n+1) = P(n)*r*(1-P(n)); end P(250) %or...

14 years ago | 0

Answered
Alternative to using EVAL
If your goal is to use different functions f=@myModel [jfit, estParams, graphData] = f(tr, Pr, Qr, Avr, powerfactor, WarmS...

14 years ago | 0

Answered
rename files using "system" function
oldname = 'Michael_Jackson-Beat_It.mp3' newname = 'Michael Jackson - Beat It.mp3' copyfile(oldname,newname)

14 years ago | 0

Answered
DOUBLE cannot convert the input expression into a double array
Try subs(y) Example y=solve('x+1'); whos y r=subs(y) whos r Also if isempty(y)==1 is the same as ...

14 years ago | 0

Answered
I need the Solution of this equation
syms A B C D E lnE s=solve(A + B*(lnE/E)+ C*(lnE/E)^2 + D*(E/lnE),lnE) E=1:0.5:10; A=2.5; B=3.18; C=4.25; D=0.15; ...

14 years ago | 0

Answered
save in a folder
use for k=1:5 Filename=sprintf('%d.mat',k); end Also save(['C:\Users\Documents\MATLAB\TechnicalFinal\' Filen...

14 years ago | 2

| accepted

Answered
How do I calculate an infinite series using a function file with for-end loops?
x=2 n=5 f=x^2/37+sum(arrayfun(@(n) x^n/factorial(n),3:n))

14 years ago | 0

Answered
function pushbutton1_Callback(hObject, eventdata, handles)
In function pushbutton1_Callback you should update your handles handles.metricdata.a=1; guidata(hObject,handles)

14 years ago | 0

| accepted

Answered
state space to transfer function conversion
Your system can be written as dx=C.x+B1.e % With e=[q;u] and B1=[B E] y=C.x+D1.e % With D1=[D F] Then Use ...

14 years ago | 0

| accepted

Answered
how can i draw a line on already plotted graph?
Use *hold on* hold on plot([0 10],[0 10]) %or hold on line([0 10],[0 10]) See doc plot

14 years ago | 0

Answered
problem is that it can not plot x and y,(
You should write in opening function handles.matricdata.a=0

14 years ago | 0

| accepted

Answered
I'm trying to generate random numbers between zero and 1 using fix(clock) but I'm having difficulties, each time I run the program I get the same numbers. Can someone please help?
Because mod(c,k) is a constant vector and a*D+b is a variable scalar |k*v/max(k*v)=k*v/(k*max(v))=v/max(v)| which is a co...

14 years ago | 0

| accepted

Answered
issues with function find()
Try this tr=0:.1:20; b=find(tr==0.1*24)

14 years ago | 0

| accepted

Answered
Pass a Structure and Structure Elements to a Function
You do not need to pass the fields of your struct variable in function arguments. function output= monthlyplot(data) % M...

14 years ago | 0

Answered
I want to set axis from gui with a figure that it's plotted in a function. How do I do that?
plot(handles.axes1,t1,y1) plot(handles.axes2,t2,y2)

14 years ago | 0

Answered
Sum of a Series
A=[1 0 1 0 1 1 0 1 0 1 0] a=A(1:end-1); b=A(2:end) out=sum(a.*(1-b))

14 years ago | 0

Answered
question?please help me.
Example data=[1 2 3;4 5 6] n=size(data,1) % is number of rows of data size(data,2) % is number of columns of data zeros...

14 years ago | 0

| accepted

Answered
reading input from workspace in simulink
You can use a <http://www.mathworks.com/help/simulink/slref/constant.html constant> block from simulink/sources

14 years ago | 0

Answered
find total number of images in a folder
a=dir([yourfolder '/*.jpg']) out=size(a,1)

14 years ago | 18

| accepted

Answered
multiplication table in matlab
x=(1:9)' a=repmat(x,1,9) b=a' c=bsxfun(@times,x,x') out=arrayfun(@(x,y,z) [num2str(x) 'x' num2str(y) '=' num2str(z)],a,b,c...

14 years ago | 3

| accepted

Answered
dlmwrite Problem, text array,
to add a matrix to a file use dlmwrite(filename, T, '-append')

14 years ago | 0

| accepted

Answered
delay in simulink can i use buffer
Use a unit <http://www.mathworks.com/help/simulink/slref/unitdelay.html delay block>

14 years ago | 0

Answered
How to: Column Cell to Column matrix
a=num2cell(rand(165,3)) b=num2cell(rand(1,3)) c=[a;b]

14 years ago | 0

Answered
How to input a set of data?? (not by [1 2 3 4 5])
If the input is a string, use D = input('Enter the data set:','s'); If it's a number use D = input('Enter the data ...

14 years ago | 1

| accepted

Load more