Respondida
Why do you come to "MATLAB Answers"?
why(99);why(710)

alrededor de 14 años hace | 1

Respondida
Operands to the || and && operators must be convertible to logical scalar values.
try using | and & instead of || and && since the && is the Short-circuit logical AND while the & operator i...

alrededor de 14 años hace | 3

| aceptada

Respondida
Nested For Loop Puzzle
You are on the right track, to get alphabets.. try %this is your input a=['T' 'H' 'I' 'S' 'W' 'A' 'T' 'S' 'O' 'A'...

alrededor de 14 años hace | 0

Respondida
Graph colouring
One way: You could try an area plot with different colors and a transparency p=0:0.001:0.25; y3=(p + (1 - 4*p).^(1/2)/2).^...

alrededor de 14 años hace | 1

Respondida
to know the error in this program
What are you trying to achieve with the following error line? Error in line plot('waveform[a]'); the data argume...

alrededor de 14 años hace | 0

Respondida
how to pass point to comma in matlab
b='12,365' s1=strrep(b,',','.') c=str2num(s1)

alrededor de 14 años hace | 0

| aceptada

Respondida
Plotting multiple straight lines using random number loop
I guess this is what you want.. n=100; x0=3; y0=4; x=linspace(0,20,n); y=[]; for i=1:n; phi(i)=45+3*r...

alrededor de 14 años hace | 0

| aceptada

Respondida
tick marks in boxplot
This should help.. close all fh = figure(1); boxplot(data,time,'colors','k','jitter',1,'medianstyle','line',... ...

alrededor de 14 años hace | 1

Respondida
Email Using Matlab
You send emails from matlab using the sendmail command. doc sendmail not sure if you can send variables directly from ...

alrededor de 14 años hace | 1

| aceptada

Respondida
Connecting an web cam problem
imaqhwinfo is part of image acquisition toolbox.. I'm guessing you do not have the toolbox.. try which imaqhwinfo It...

alrededor de 14 años hace | 0

Respondida
>> Matlab program to read stock price data and run live algorithm.
You can read the stock price directly from the yahoo website doc urlread Also MATLAB Trendy does something similar.....

alrededor de 14 años hace | 0

Respondida
hi
Sav=[0.225 0.3 0.35 0.4 0.45 0.475 ] Qi=[0.251 0.90 2.02 3.63 7.2 9.8 ] Fo=diff(Sav)./diff(Qi) you can only get 5 ...

alrededor de 14 años hace | 0

Respondida
Find all non zero values in an array AND display the values
x = randi([0 4],1,1177) [row,col,value]=find(x)

alrededor de 14 años hace | 0

| aceptada

Respondida
Save for loop result
This video should help: <http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/> Eg> for i = 1:100 ...

alrededor de 14 años hace | 1

| aceptada

Respondida
What is wrong with this
To begin with:: you do not define Mass but you still use it to check its value in a while loop. what is Mass? *EDIT* I ...

alrededor de 14 años hace | 0

Respondida
counting in which row there is a maxiumum number of ones in binary image and what is the sum of that row
this might help, General example not specific to image processing.. b=(rand(5)>0.5) % create a 5x5 matrix of 1's and 0's ...

alrededor de 14 años hace | 0

| aceptada

Respondida
How to convert a string into a variable?
doc genvarname <http://www.mathworks.com/help/techdoc/ref/genvarname.html> 'eval' can do it *however*... 'EVAL' is ve...

alrededor de 14 años hace | 3

| aceptada

Respondida
How to make Laguerre Transform
Perhaps this might help <http://www.mathworks.com/matlabcentral/fileexchange/15916> <http://www.mathworks.com/matlabcent...

alrededor de 14 años hace | 0

Respondida
make dot and count them
Is this what you want E.G. close all clear variables %changed from clear all on Jan's suggestion disp('Hi...

alrededor de 14 años hace | 1

| aceptada

Respondida
select randomly "N" rows of a matrix?
try: N=2; % no. of rows needed M=rand(5) % generate a 5x5 matrix random c=randperm(length(M),N) B=M(c,:) %...

alrededor de 14 años hace | 3

| aceptada

Respondida
maximum position of element in a matrix
[p,q,r]=find(A==max(max(a))) Assuming ur matrix is A

alrededor de 14 años hace | 0

Respondida
Data Seasonal Adjustment using Cubic Splines
I'm assuming this is what you are looking for c=rand(2160,1); % random data 2160 observation q=reshape(c,24,[]); % re...

alrededor de 14 años hace | 1

Respondida
if else statement
You could try for k = 58:212 inputFileName = sprintf('MT_%05i-000.txt',k); outputFileName = sprintf('resul...

alrededor de 14 años hace | 1

| aceptada

Respondida
How to select last location of min value which is avalable in more than one location of a matrix?
[row,col]= find(A == min(min(A)),1, 'last') row = 2 col = 3

alrededor de 14 años hace | 1

| aceptada

Respondida
For loop question/ plot figure
If you are on a linux system try for k = 58:212 inputFileName = sprintf('MT_%05i-000.txt',k); outputFileName = ...

alrededor de 14 años hace | 0

| aceptada

Respondida
deleting selective multiple rows from a data matrix
A(~(B<2|B>3),:)

alrededor de 14 años hace | 2

| aceptada

Respondida
summing tied (duplicate) numbers in a series
this is a start: a=[4 4 6 7 9 9 9 10 10 13 17 17 17]; b=unique(a); % this shows unique values c=find(diff(a)...

alrededor de 14 años hace | 0

Respondida
problem with commad window resolution
File>Preferences->Fonts On windows.. MATLAB>Preferences->Fonts on Mac Change the font size there..

alrededor de 14 años hace | 1

Respondida
Number format
a = [-0.0127 -0.1711 -0.0327 -0.0015 0.0035 -0.0186] format shortE a a = -1.2700e-02 -1.7110e-01 -3.2700e-02 ...

alrededor de 14 años hace | 1

Respondida
Find element in matrix
Try this clear all A = [1 2 3 5 2 4 6 1 ]; c=intersect(A(:,1),A(:...

alrededor de 14 años hace | 1

Cargar más