Réponse apportée
Why do you come to "MATLAB Answers"?
why(99);why(710)

plus de 14 ans il y a | 1

Réponse apportée
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...

plus de 14 ans il y a | 3

| A accepté

Réponse apportée
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'...

plus de 14 ans il y a | 0

Réponse apportée
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).^...

plus de 14 ans il y a | 1

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
how to pass point to comma in matlab
b='12,365' s1=strrep(b,',','.') c=str2num(s1)

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

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

plus de 14 ans il y a | 1

Réponse apportée
Email Using Matlab
You send emails from matlab using the sendmail command. doc sendmail not sure if you can send variables directly from ...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
>> 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.....

plus de 14 ans il y a | 0

Réponse apportée
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 ...

plus de 14 ans il y a | 0

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

plus de 14 ans il y a | 0

| A accepté

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

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 14 ans il y a | 0

Réponse apportée
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 ...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 3

| A accepté

Réponse apportée
How to make Laguerre Transform
Perhaps this might help <http://www.mathworks.com/matlabcentral/fileexchange/15916> <http://www.mathworks.com/matlabcent...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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,:) %...

plus de 14 ans il y a | 3

| A accepté

Réponse apportée
maximum position of element in a matrix
[p,q,r]=find(A==max(max(a))) Assuming ur matrix is A

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 1

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

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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 = ...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
deleting selective multiple rows from a data matrix
A(~(B<2|B>3),:)

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
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)...

plus de 14 ans il y a | 0

Réponse apportée
problem with commad window resolution
File>Preferences->Fonts On windows.. MATLAB>Preferences->Fonts on Mac Change the font size there..

plus de 14 ans il y a | 1

Réponse apportée
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 ...

plus de 14 ans il y a | 1

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

plus de 14 ans il y a | 1

Charger plus