Answered
What is the difference between a toolbox's release notes, user's guide, reference, and getting started guide?
# Toolbox Getting Started Guide: Helps a beginner to be introduced to a toolbox # Toolbox User's Guide: contains all the deta...

14 years ago | 2

| accepted

Answered
dividing the image into blocks
im=imread('pout.tif'); n=size(im,1); m=size(im,2); dl=3 ; % number of vertical portions dc=2 ; % number of horizontal p...

14 years ago | 2

Answered
is it possible to give different frequencies input for different time span in simulink ?
You can use a *multiport switch* block with three *sine wave* block <<http://azzimalikcom.ipage.com/ansf282.jpg>> set stop...

14 years ago | 0

| accepted

Answered
How to replace first substring if regexprep doesn't work
stack='X+S+X+S' left_side='X+S' right_side='S' regexprep(stack, 'X+++S', 'S',1)

14 years ago | 0

Answered
How to find unique pages in a 3d matrix?
A = cat(3, [1 2; 3 4;0 0], [5 6; 3 4; 0 0], [5 6; 1 2;0 0],[1 2; 3 4;0 0]) [n,m,p]=size(A) a=reshape(A,n,[],1) b=reshape(a(...

14 years ago | 1

| accepted

Answered
Text Output to File
x1 = [1 2 3 4 5]; y1 = [1 1 1 1 1]; handles = []; fid = fopen('filename.txt','w+') g1 = plot(x1,y1) h1 = findobj(g1,'Type...

14 years ago | 0

| accepted

Answered
How to get the value of 'x' from a figure?
Click on your plot then type in command windows x=get(gco,'xdata')

14 years ago | 0

Answered
how to use accumarray over a matrix avoiding a loop?
C=cell2mat(arrayfun(@(x) accumarray(A,B(:,x)),1:size(B,2),'un',0));

14 years ago | 1

Answered
element wise concatenation of square matrices
n=numel(A) out=arrayfun(@(x) [A(x) B(x)],1:n,'un',0)

14 years ago | 0

Answered
Creating a *.mat file
X=10 Y=20 Z=30 save bathymetry X Y Z To load your data load bathymetry

14 years ago | 10

| accepted

Answered
How do I directly assign the two roots of a quadratic to an array?
x=roots([1 0 -4]); x(1) x(2)

14 years ago | 0

Answered
What does this code mean? set(gcf, 'units','normalized','outerposition',[0 0 1 1]);
set(gcf, 'units','normalized','outerposition',[0 0 1 1]); % 'units','normalized' : the unit can be Units: [ inches | cen...

14 years ago | 5

Answered
Undefined function or method 'tf' for input arguments of type 'double'.
Try clear tf a = tf([5],[0.8 1]) % You, probably used *tf* as a variable in your script, or you don't have a *system c...

14 years ago | 3

Answered
A problem with an iteration procedure
er=X-Y idx=find(er<0.0001,1) Then write your iteration: for k=1:idx %your code end

14 years ago | 0

Answered
Passing Functions and m-files to functions
f=@P1 f=@P2

14 years ago | 0

Answered
matlab code to convert continuous signal into its discrete form
Maybe you want quantizing % your original signal t=0:0.1:10 y=2*sin(t) plot(y,'r') % Quantizing q=1 % quantization int...

14 years ago | 0

Answered
matlab code to convert continuous signal into its discrete form
If you want to plot a discrete signal x=1:10 y=sin(x) stem(x,y)

14 years ago | 0

Answered
how to convert matlab gui into .exe stand alone file
Use <http://www.mathworks.com/videos/working-with-the-matlab-compiler-deployment-tool-68743.html deploytool> help deploytoo...

14 years ago | 1

Answered
How to generate pulses in a pulse generator for a mosfet in a boost converter?
You can a Pulse generator block from Simulink/Sources.

14 years ago | 0

Answered
i wanna ask about graphic, x = [Ia1,Ia2,Ia3]; y = [Ta1,Ta2,Ta3]; plot(x,y) xlabel('Arus Jangkar'),ylabel('Torsi'); but it always error, the error : Error using ==> plot Vectors must be the same lengths.
Type size(x) size(y) You should find the same result x = [1,2,3]; y = [10,20,30]; plot(x,y) xlabel('Arus Jan...

14 years ago | 0

Answered
Exporting matrix from matlab to ENVI
You can use *imwrite* function

14 years ago | 0

Answered
how to plot a graph
col='rgbkc' hold on for ii=1:5 line(x,y(:,ii),'color',col(ii),'Marker','o','LineStyle','--','markerfacecolor',col(ii),'M...

14 years ago | 1

| accepted

Answered
Is specifiying the absolute width and length of the axes possible?
set(gcf,'units','centimeters') x0=10; y0=10; width=9; height=7; set(gcf,'position',[x0,y0,width,height])

14 years ago | 0

| accepted

Answered
In a GUI, how can i create a matrix of several different inputs?
I'am not sur if I've understood, but I think you should remove a while loop, and use one ok pushbutton. You can increment the n ...

14 years ago | 0

Answered
Matlab plot axis stretch
use ii=[1 2 3 4] set(gca,'xtick',ii*3)

14 years ago | 0

Answered
Bubble sort not working like I want it
x=[8 10 2 4 6] x(1)<x(2) % no action x(1)=8 , x(2)=10 x(2)>x(3) % x(2)=2; x(3)=10 at this step you have : 8,2,10, y...

14 years ago | 0

Answered
Saving data for each iteration of a for loop
cell2mat((A)

14 years ago | 0

| accepted

Answered
How can I add 1-bit delay to incoming serial bit pattern?
x=[1 -1 -1 1] f=@(k) x(k-1) If you are using simulink you can use *unit delay* block

14 years ago | 0

| accepted

Answered
Creating a char matrix
s='31T' out=repmat(s,1514443,1)

14 years ago | 0

Answered
replacing matrix rows in a loop
k=10; n=20; X=rand(1,n) out=cell2mat(arrayfun(@(y) he_polynomial(1,k,X(y)),(1:n)','un',0))

14 years ago | 1

Load more