Answered
Matrix indexing, getting back my original matrix.
You haven't lost anything mat=repmat(1:9,6,1) % Example new_mat=mat(1:4,1:4) You have both the original matrix and the...

12 years ago | 0

Answered
what is my mistake?
syms x A=[x 2 1;1 0 -x;5 1 x]; x=-15:.1:15; plot(x,subs(det(A),x)) grid on

12 years ago | 0

| accepted

Answered
load specific file - make name
k = input('Please give number filtered emg file : '); emgdata = load(['filtered_emg_' num2str(k) '.mat']); %or emgd...

12 years ago | 0

| accepted

Answered
how do i generate sound using MATLAB?
You can use <http://www.mathworks.com/help/matlab/ref/sound.html sound> function

12 years ago | 4

| accepted

Answered
close a specific figure file
You can use try function try close('ANALYSIS') end %Or you can use ob=findobj('type','figure','name','ANA...

12 years ago | 1

| accepted

Answered
how to give a name to every case in the loop as the following example ?
a=[1:10]; for k=1:10; b{k}=nchoosek(a,k) end It's not good to create several variables, just use a cell class, or...

12 years ago | 0

Answered
Find zeros and remove
Suppose M is your matrix M=[1 1 10 0 0 0 4 0 0 0 12 12 8 2 2 0 2 2] M(M(:,1)==0,:...

12 years ago | 0

Answered
y-axis only absolute values
yl=get(gca,'ylim') ylim([0 max(yl)])

12 years ago | 0

Answered
get the name of mat file loaded by command "uiopen" ?
[file,path]=uigetfile('*.mat','select a amt file'), filename=fullfile(path,file)

12 years ago | 2

Answered
Replacing Data by variable name
If your array is not a cell array, use dataset2cell to convert it a={ 'Name' 'subName' 'Type' 'Output' 'Q1' ...

12 years ago | 0

| accepted

Answered
Compare values and change them
A(A<5)=0 A(A>5)=1 You have to consider when the value is equal to 5 You can also have the result by A=[1 2 3;4...

12 years ago | 0

| accepted

Answered
How to save only latest ~10 iterations on for loop
look at this example, I'm not sur if it's the best way a=[]; for k=1:20 a(end+1)=k a(1:end-10)=[] end

12 years ago | 0

Answered
Plot scatterplot showing row and column numbers
scatter(A(2:end,1),A(1,2:end))

12 years ago | 0

Answered
Sequence of adding numbers
The best way is for k=1:4 C(k)=2+k end Look at this link <http://matlab.wikia.com/wiki/FAQ#How_can_I_create_var...

12 years ago | 1

| accepted

Answered
how can I get the max of the values between NaN's in an array
T = [NaN NaN; 1 3; 2 4; 5 6; 8 7; NaN NaN; NaN NaN; 4 5; 6 7; NaN NaN; NaN NaN; 1 2; 2 4; 5 6; NaN NaN;4 5]; h=[1;isnan(T(:,1...

12 years ago | 0

| accepted

Answered
Use matrix index number as parameter for x-axis.
y=[12,14,12,22,8,9] plot(y)

12 years ago | 0

| accepted

Answered
I have a problem to use awgn function in matlab 2013b
<http://www.mathworks.com/help/comm/ref/awgn.html awgn> is a function from a communications system toolbox. Check if you have th...

12 years ago | 0

Answered
Help with 802.11n ?
Have you searched in the web? for example, in google search type IEEE 802.11n matlab, you will find the link: <http://www.mat...

12 years ago | 0

| accepted

Answered
Converting an .m file to .mat file and plot the graph
To read your text file fid=fopen('file.ini') s=textscan(fid,'%s %s %s') fclose(fid) out=str2double(s{3})

12 years ago | 0

| accepted

Answered
how to declare vector of size 64
There is no declaration of vectors in Matlab, you can pre-allocate memory by creating your array with zeros or whatever you want...

12 years ago | 1

| accepted

Answered
Trying to find cells of a matrix from vector values
V1=[ 1; 3; 5]' V2=[1; 3; 6]' V3 =[2; 3; 4; 5]' A =[ 1 5 3 4 3 1; 1 5 5 4 8 8; 5 2 4 6 3 10] v={V1,V2,V3} for k=1:siz...

12 years ago | 0

| accepted

Answered
calculate delay for my vector ?
u=[1 1 1 1 1 0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 ] delay=3 idx=strfind(u,[1 zero...

12 years ago | 0

Answered
Issue with find() function
<http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F>

12 years ago | 0

Answered
how can i solve this polynomial equation?
syms x A=[x 2 1;1 0 -x;5 1 x] r=double(solve(det(A),x))

12 years ago | 0

| accepted

Answered
Cell contents assignment to a non-cell array object.
Try this clear A=input('Dame el sistema de ecuaciones expresado en forma matricial'); b=input('Dame el valor de b'); ...

12 years ago | 0

Answered
Generating random numbers without repitiion
Nmin+rand(1,10)*(Nmax-Nmin)

12 years ago | 1

| accepted

Answered
How to change the version of the excell file matlab outputs to?
Indicate the extension xlsx xlswrite('file.xlsx',M)

12 years ago | 0

| accepted

Answered
z-transform of unit step function?
The |heaveaside| function of Matlab is defined with |heaviside(0)| equal to |0.5| If you look at the <http://www-hadoc.lag.en...

12 years ago | 0

Answered
List of maximum number in the matrix
a = [3;1;4;2;3;4;1;4;3;1;2;4]; idx=find(ismember(a,max(a)))

12 years ago | 0

| accepted

Load more