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

14 years ago | 1

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

14 years ago | 3

| accepted

Answered
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'...

14 years ago | 0

Answered
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).^...

14 years ago | 1

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

14 years ago | 0

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

14 years ago | 0

| accepted

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

14 years ago | 0

| accepted

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

14 years ago | 1

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

14 years ago | 1

| accepted

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

| accepted

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

14 years ago | 1

| accepted

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

14 years ago | 0

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

14 years ago | 0

| accepted

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

14 years ago | 3

| accepted

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

14 years ago | 0

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

14 years ago | 1

| accepted

Answered
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,:) %...

14 years ago | 3

| accepted

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

14 years ago | 0

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

14 years ago | 1

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

14 years ago | 1

| accepted

Answered
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

14 years ago | 1

| accepted

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

14 years ago | 0

| accepted

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

14 years ago | 2

| accepted

Answered
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)...

14 years ago | 0

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

14 years ago | 1

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

14 years ago | 1

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

14 years ago | 1

Load more