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

mehr als 14 Jahre vor | 1

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

mehr als 14 Jahre vor | 3

| akzeptiert

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 1

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 1

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

mehr als 14 Jahre vor | 1

| akzeptiert

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 1

| akzeptiert

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 3

| akzeptiert

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 1

| akzeptiert

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

mehr als 14 Jahre vor | 3

| akzeptiert

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 1

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

mehr als 14 Jahre vor | 1

| akzeptiert

Beantwortet
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

mehr als 14 Jahre vor | 1

| akzeptiert

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 2

| akzeptiert

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 1

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

mehr als 14 Jahre vor | 1

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

mehr als 14 Jahre vor | 1

Mehr laden