Respondida
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...

más de 15 años hace | 2

| aceptada

Respondida
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 ...

más de 15 años hace | 0

| aceptada

Respondida
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-...

más de 15 años hace | 0

| aceptada

Respondida
how many values it display
numel(l)

más de 15 años hace | 0

| aceptada

Respondida
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 ...

más de 15 años hace | 0

| aceptada

Respondida
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 ...

más de 15 años hace | 0

| aceptada

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

más de 15 años hace | 1

| aceptada

Respondida
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 ...

más de 15 años hace | 0

| aceptada

Respondida
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

más de 15 años hace | 0

| aceptada

Respondida
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...

más de 15 años hace | 0

| aceptada

Respondida
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...

más de 15 años hace | 0

| aceptada

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

más de 15 años hace | 0

Respondida
save function in matlab
doc function

más de 15 años hace | 0

| aceptada

Respondida
Array content: Combine individual value into one single value & after substitution
X = [1 2 1 2 3] char(X+64)

más de 15 años hace | 0

Respondida
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 ...

más de 15 años hace | 0

| aceptada

Respondida
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...

más de 15 años hace | 0

| aceptada

Respondida
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

más de 15 años hace | 0

Respondida
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...

más de 15 años hace | 3

Respondida
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...

más de 15 años hace | 0

| aceptada

Respondida
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=...

más de 15 años hace | 5

| aceptada

Respondida
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 ...

más de 15 años hace | 0

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

más de 15 años hace | 0

| aceptada

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

más de 15 años hace | 1

| aceptada

Respondida
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]) ...

más de 15 años hace | 0

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

más de 15 años hace | 0

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

más de 15 años hace | 1

Respondida
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...

más de 15 años hace | 0

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

más de 15 años hace | 1

| aceptada

Respondida
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...

más de 15 años hace | 0

Respondida
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 ...

más de 15 años hace | 15

| aceptada

Cargar más