답변 있음
Why do you come to "MATLAB Answers"?
why(99);why(710)

14년 초과 전 | 1

답변 있음
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년 초과 전 | 3

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

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

14년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

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

14년 초과 전 | 1

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

14년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
>> 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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

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

14년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 3

| 수락됨

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

14년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 3

| 수락됨

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

14년 초과 전 | 0

답변 있음
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년 초과 전 | 1

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

14년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

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

14년 초과 전 | 2

| 수락됨

답변 있음
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년 초과 전 | 0

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

14년 초과 전 | 1

답변 있음
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년 초과 전 | 1

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

14년 초과 전 | 1

더 보기