Answered
random matrix with fix data
s=rng; randn(4) rng(s), randn(4)

14 years ago | 0

Answered
How to include plots in a post?
If I have understood your question: Save your plot as a JPG image then put it in a host server, then post a link containing y...

14 years ago | 0

| accepted

Answered
How to toggle: Making uicontrols (in)visible
% you've written 'Edit1' instead of 'handles.Edit1' button_state = get(hObject,'Value'); if button_state == get(hObject,...

14 years ago | 0

| accepted

Answered
while expression specification - problems with error messages
abc=input('Choose a number from <-1000;999>: ') while abc<-1000 || abc>999 abc=input('Wrong! Choose again a number ...

14 years ago | 0

Answered
How i can install R2011b in Xp service Pack 3?
Are you sur it's an error? I think it's just a message, just continue your installation.

14 years ago | 0

| accepted

Answered
How can i assign different simulation step size in simulink to control and power path??
I don't think you can set multiple step time for the same model. But you can set your blocks samples time to different values. I...

14 years ago | 1

Answered
Matrix to Vectors, Assigning Names to Vectors
Title=A(1,:) % A your cell array B=cell2mat(A(2:end,:))

14 years ago | 1

Answered
Easy Question froma beginner
n=80 t=0:0.1:10; y=sin(t); m1=ceil(sqrt(n)) m2=ceil(n/m1) for k=1:n subplot(m1,m2,k); plot(t,y) end

14 years ago | 0

| accepted

Answered
to generate sawtooth waveform of very high frequency
I think you have to decrease your fixed step, for 8 Hz set your step time to (1/8)/30, if f is your higher frequency, choose (...

14 years ago | 0

| accepted

Answered
round off value up to 5 decimal point
Out=fix(x*10^5)/10^5

14 years ago | 1

| accepted

Answered
Is there any other way to do the job without using eval?
A=str2double(get(handles.A_edit,'String'))

14 years ago | 0

| accepted

Answered
imwrite problem value changes
That's had nothing to do with your correlation. Try a==b

14 years ago | 0

Answered
constructing a matrix from other
[a1,a2]=meshgrid(b1,b2) out=u(a1,a2)

14 years ago | 0

Answered
Struct array to data array
A=z.data

14 years ago | 0

| accepted

Answered
The abbreviation of function cos and sin?
C=@(x) cos(x)

14 years ago | 0

Answered
Implementing Equation in matlab
You can use *Matlab function* block or *Interpreted Matlab Function* block to implement your abc-dq transformation

14 years ago | 0

| accepted

Answered
i wanted to know how to do initial value problem with step function using matlab
Look at this example |d2y/dt+2dy/dt+3y=4*dx/dt+6x| N=[4 6], D=[1 2 3]; model=tf(N,D) % your transfer function t=0:0...

14 years ago | 0

Answered
Matrix with all possibilities
out=[] n=3 for k=1:n s=[ones(2^(n-k ),1) ;zeros(2^(n-k ),1)] s=repmat(s,2^(k-1),1) out=[out s] end

14 years ago | 0

Answered
How to: Renew Graph / figure / GUI
Use subplot(1,1,1)

14 years ago | 0

| accepted

Answered
find a digit in string
variable=2 file=sprintf('image%d',variable)

14 years ago | 1

Answered
last letter of a word
s='matlab7' out=s(end)

14 years ago | 1

| accepted

Answered
Reading a excel spread sheet
Use *xlsread* function to read excel files, to name files according to a number k, use sprintf command k=2 filename=spri...

14 years ago | 0

Answered
Cartesian to polar cordinate'
use *cart2pol* function

14 years ago | 0

| accepted

Answered
Count the number of occurances of an element using accumarray
A = [7 11 2 3 4 5 4 7 7 2 1 4 1] [a,b,c ]=unique(A,'stable') out=[a' accumarray(c,1)]

14 years ago | 2

| accepted

Answered
How to add more data and plot lines to existing plot
Add your data to your old variables then plot a new curve

14 years ago | 0

Answered
changing arrays of a matrix
u=magic(4) % Example of u n=size(u,1) B1=randperm(n) % Example of B1 B2=randperm(n)' % Example of B2 u=u(:,B1) ...

14 years ago | 0

Answered
plotting, two graphs combined
Look at this example t1=0:0.1:10; t2=0:0.1:5; y1=sin(t1); y2=cos(t2); v=[0.1 0.1 0.4 0.8 ;0.5 0.1 0.4 0.8] subplot(1,2...

14 years ago | 0

Answered
How simscape script can be converted into block?
You can use a *matlab function* block or an *interpreted matlab function* block. The first one is used when you need to generate...

14 years ago | 0

Answered
how can I modify uitable cells
set(t,'ColumnEditable',logical(1)) Example t = uitable; set(t,'Data',ones(5,3)) set(t,'ColumnWidth',{100}) set(t,'Co...

14 years ago | 1

Answered
how p(:,j) differs from p(j,:)?
p=[1 2;3 4;5 6] check this p(:,2) p(3,:) *p(:,2)* means all lines, column number 2, *p(3,:)* means all columns, li...

14 years ago | 0

| accepted

Load more