Answered
How can I insert merge two vector with each other?
A=[1,2,3,4] C=reshape([A;A-1/12],1,[])

11 years ago | 0

| accepted

Answered
How to append bits into an already exiting image matrix?
Read this <http://www.mathworks.com/help/matlab/learn_matlab/matrices-and-arrays.html#zmw57dd0e659>

11 years ago | 0

Answered
How to create matrices from a meshgrid function
a=1:0.1:10 b=1:0.1:10 [A,B]=meshgrid(a,b) C=sin(A).*cos(B) % Example scatter3(A(:),B(:),C(:))

11 years ago | 0

| accepted

Answered
Problem in finding inverse Laplace
num=[0 0 0 1.658e24 -1.163e14 6.076e15]; den=[1 3.334e09 1.005e15 1.675e24 5.025e27 1.675e33]; numsym=poly2sym(num,'s'); de...

11 years ago | 1

Answered
Transport delay - short pulse, long delay
you don't need a transport delay block. Just set the phase parameter of your pulse generator block to 10^(-6) If you want to...

11 years ago | 0

Answered
Best way to deal with index-data pairs with multiple data values per index
ind = [1,2,4,2,5,6,4,4,9]; data = [32,14,36,45,3,1,78,90,69] out=reshape(accumarray(ind',data',[],@(x) max(x)),3,3)

11 years ago | 2

| accepted

Answered
How to show a quarter portion of image on a whole image area?
A = imread('yourfile.jpg'); [n,m,~]=size(A); B=A(1:fix(n/2),1:fix(m/2),:); imshow(B)

11 years ago | 0

Answered
for loop for different set of values
It's better to avoid the variable i, because it's used by Matlab with complex numbers. for ii= [2:6,17:22] Y= 2*ii; ...

11 years ago | 2

Answered
How to index a cell vector of strings?
s={'a','b','x','c','d','x'} idx=find(ismember(s,'x'))

11 years ago | 0

| accepted

Answered
how to delete rows of the character '' from a column or column vector
s={'' ;12;'';'5 '; '6';' abc';'rt';;''} s(cellfun(@isempty,s))=[]

11 years ago | 1

| accepted

Answered
summation of array elements
f=[1 2 3 4 5]; out=cumsum(f)

11 years ago | 0

| accepted

Answered
How to export a figure in illustrator format in Matlab R2014a? there is no option to export in ai format in the save as menu?
Use the <http://www.mathworks.com/help/matlab/ref/saveas.html saveas function>

11 years ago | 0

| accepted

Answered
How to generate a loop using logical indexes intervals?
s=[1 0 2 3 4 3 2 1 0 5 7 8 9 4 3 0 1] % Example idx1=sign([diff(s) ]) idx1=idx1([1 1:end]) position=find(diff(idx1)~=0)+1 ...

11 years ago | 0

Answered
Table Name in a loop
data=[ 2012 2 2012 6 2012 9 2013 1 2013 ...

11 years ago | 0

| accepted

Answered
Increasing size of Multidimensional Array
idx=num2cell(size(T)+1); T(idx{:})=0;

11 years ago | 2

Answered
How to get the starting and ending index of repeated numbers in an array?
A=[2 2 1 2 3 2 2 2 2 2 3 5 6 7 7 7 7 6 5]; d1=~diff(A).*(1:numel(A)-1); idx1=d1.*[1 ~d1(1:end-1)]; idx2=circshift(d1.*[~d1...

11 years ago | 0

Answered
How to create m_file to simulink block?
You can use <http://www.mathworks.com/help/simulink/slref/set_param.html set_param function> Look at this link <http://www.ma...

11 years ago | 0

| accepted

Answered
I need help about writing a script to get a vector consisting of Max and min for each column in a matrix.
A= [1 2 3;4 5 6; 7 8 9] B=[min(A(:,1)) max(A(:,2)) min(A(:,3))] But in your case you mean max or min in rows, not in col...

11 years ago | 0

Answered
Remove values below/above limits in first row of 2byx array and related values in second row.
time=1:10 values=rand(1,10) idx=time>5 & time <8 new_time=time(idx) new_values=values(idx)

11 years ago | 0

| accepted

Answered
Importing text files using uigetfile
Check the value of fileID fileID = fopen(filename,'r') If fileID is equal to -1, that means you can't open the file for ...

11 years ago | 0

Answered
breaking legend into 2 columns
You can specify the location outside A=0:0.1:10 B=sin(A) C=cos(A) D=B.^2 E=C.^2 F=A.^2/100 G=-F plot(A,B,A,C,A...

11 years ago | 0

Answered
a basic question in matlab
*Edit* squeeze(a).'

11 years ago | 1

| accepted

Answered
Create a Model Paramters Block
<http://www.mathworks.com/help/simulink/ug/create-custom-interface-for-simulink-blocks.html Create Custom Interface for Simulink...

11 years ago | 0

Answered
How to break down a text file
You can use dlmread function M=dlmread('s27WHW02_LS220_j0_rx3_full_cc_fheat1.1_hD.txt') list=cell2struct(num2cell(M),{'f1'...

11 years ago | 0

| accepted

Answered
Extract frequency samples from .wav file
stem(abs(fft(wave)))

11 years ago | 0

Answered
I want to find d from 7*d mod 40=1 But error .help me please.
syms d Eqn=7*mod(d,40)-1; Sold=solve(Eqn,d)

11 years ago | 0

| accepted

Answered
can any one provide me the code for dividing the image 306x204 into blocks of size i,e windows of size 17x17
im=rand(306,204) [n,m]=size(im) [ii,jj]=ndgrid(1:17:n,1:17,m) out=arrayfun(@(x,y) im(x:x+16,y:y+16),ii,jj,'un',0)

11 years ago | 0

| accepted

Answered
Change ylabels on Bode plot
bode(tf(1,1:2)) % Example axes=findobj('type','axes') h_magnitude=get(axes(2),'YLabel') h_phase=get(axes(1),'YLabel'...

11 years ago | 1

Answered
Where can I learn about the laplace and inverse laplace transform of differential equations and tuning of controllers in feedback control loops applied in MATLAB ?
Have you looked in Google or Youtube? you can find several tutorials. Juste type for example in Google search: pid tuning Matla...

11 years ago | 0

Load more