Answered
How to create dialog boxes to select the file and display output ?
You got the line wrong [NUM,TXT,RAW]=xlsread('2.csv') You ask the user for the name of the file so you should use that...

15 years ago | 2

| accepted

Answered
Use fprintf to create a multiplication table.
clc Start=6; Stop=6; for u=Start:Stop; for v=1:13; fprintf('%d times %d is %d\n',u,v,u*v) end ...

15 years ago | 0

| accepted

Answered
Creation of new column
%code a=[0 0 0 1 2 5 2 3 6 3 4 4 4 1 3 6 4 8 5 2 9 2 5 5] b=[0;sum(a,2)]; c=[a b(1:end-...

15 years ago | 0

| accepted

Answered
how many values it display
numel(l)

15 years ago | 0

| accepted

Answered
Axes in GUI
%after plotting set the colors set(gca,'XColor',[1 0 0]) %x scale in red set(gca,'YColor',[0 1 0]) %y scale in green You ...

15 years ago | 0

| accepted

Answered
flipud script problem
axis is a matlab function and you gave your script the same name, when you do axis xy your are actually calling your own script ...

15 years ago | 0

| accepted

Answered
how to implement fastica algorithm inmatlab
http://research.ics.tkk.fi/ica/fastica/code/dlcode.shtml

15 years ago | 1

| accepted

Answered
Error in XData=get(get(gca,'children'),'XData)
Instead of gca you should use the handle for the axes that contains the data you want. If you really want to use gca you can ...

15 years ago | 0

| accepted

Answered
How can I determine if a help dialog box is open, and then close it if it is open
try close(obj.info) catch end

15 years ago | 0

| accepted

Answered
storing of values in matlab
x and y are variables, in that case they are vectors 1xn columns, you can do many operations to them. x and y have the same siz...

15 years ago | 0

| accepted

Answered
storing of values in matlab
change polar(theta,AF) to h=polar(theta,AF) After that code get the data like this x=get(h,'Xdata') y=ge...

15 years ago | 0

| accepted

Answered
can we strore values in matlab
Yes we can! Show us the formula and we show you how :)

15 years ago | 0

Answered
save function in matlab
doc function

15 years ago | 0

| accepted

Answered
Extract one frame of an audio file
[y, Fs, nbits] = wavread(filename); soundsc(y,Fs); %listen to all the wav y1=y(1:2000); %listen to the first 2000 samples ...

15 years ago | 0

| accepted

Answered
Sinusoid plots, XTick
clf t=0:0.01:2*pi; y=5*sqrt(2)*cos(2*pi*t+pi/4); %hold on %in case you want to draw your own y lines instead of using GR...

15 years ago | 0

| accepted

Answered
Attack of the spammers?
There's a remote chance that she's really in love with you! ahahah I didn't receive one of those yet

15 years ago | 0

Answered
How can I assign numbers to variables names?
That's a very bad idea and there are already several similar questions at matlab answers. <http://www.mathworks.com/matlabcentr...

15 years ago | 3

Answered
How to filter a noisy sound with Kalman filter?
Please take a look at <http://www.mathworks.com/matlabcentral/fileexchange/28134-kalman-equivalent-lowpass-filter Kalman equival...

15 years ago | 0

| accepted

Answered
Plotting Sierpinski's triangle
Almost forgot to post my code, hope this helps those who bother to search a little bit clf hold on N=100000; x=zeros(1,N);y=...

15 years ago | 5

| accepted

Answered
size of nonzero entries in each row of a matrix without loop
Another option but not so good like Walter suggestion a=[0 1 2 3 1 0 0 0 5 0 1 ...

15 years ago | 0

Answered
char array comparison
a=['20070801';'20070802';'20070803']; %some date values b=20070802; %value to compare a(find(str2num(a)<b),:) %date values ...

15 years ago | 0

| accepted

Answered
Manipulating outputted answers from a loop
N=10; x=zeros(N,1); for i = 1:N x(i) = 2*i; end

15 years ago | 1

| accepted

Answered
other than strcmp???
a=logical([1 0 1 1]) b=logical([1 0 1 1]) isequal(a,b) ans= 1 a=logical([1 0 1 1]) b=logical([1 0 0 1]) ...

15 years ago | 0

Answered
Generate Relative Peak Position Reports
put the x position of all of them in a vector (x) and do diff(x)

15 years ago | 0

Answered
matrix similarity
mat1 and mat2 with the same size 100*numel(find(mat1==mat2))/numel(mat1)

15 years ago | 1

Answered
Replace value in matrix
Two options: 1-ignore first column mat(:,2:end) 2-replace the zeros on the first column mat(mat(:,1)==0)=inf %replace ze...

15 years ago | 0

Answered
Is there anyway to get all adjustable parameters of a Simulink model to Matlab workspace?
get_param('mymodel/myblock','ObjectParameters')

15 years ago | 1

| accepted

Answered
Multiple signals into a scope??
<http://www.mathworks.com/matlabcentral/answers/2947-simulink-and-arduino-please-help Another question like the one you did befo...

15 years ago | 0

Answered
plotting circles
Here's a function to draw circles: function circle(x,y,r) %x and y are the coordinates of the center of the circle %r is ...

15 years ago | 15

| accepted

Load more