Beantwortet
type string as hidden
a useful video: <http://blogs.mathworks.com/pick/2007/10/05/masking-typed-passwords-with-asterisks/>

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
Problem in calculating Principal Component Analysis
princomp performs PCA only on 2D matrices, I'm assuming your image is a 3D matrix of form n x p x m. doc princomp princo...

fast 14 Jahre vor | 0

Beantwortet
displaying image
do you have your 20 error values in final_col2? assuming you do.. final_col2=rand(20,1) % I have created random data for ...

fast 14 Jahre vor | 0

Beantwortet
Didn't recognize full workers when using 'matlabpool'?
If you have a quad core machine Try matlabpool open local 4 ( it it errors out) You might have to change the default...

fast 14 Jahre vor | 0

Beantwortet
Conditionally Format Bar Chart
Don't know if there is an easier way, this is not too bad.. This gives lines like the example image.. clear all close al...

fast 14 Jahre vor | 0

Beantwortet
Is the program: Imageprocessing Toolbox for MATLAB also available for Mac?
Yes the image processing toolbox is available on the MAC Operating System: Mac OS X Version: 10.6.8 Build: 10K549 Imag...

fast 14 Jahre vor | 0

Beantwortet
Simple reformat data question
There might be a shorter way of doing this but this is a start.. a=[1:16] b=reshape(a,4,[])' c=b(:,3) b(:,3)=[] ...

fast 14 Jahre vor | 1

| akzeptiert

Beantwortet
calculate the mean of several columns
You could reshape your matrix with 7 columns becoming 1 in the new matrix and taking the mean of each column Eg.: c=rand...

fast 14 Jahre vor | 0

Beantwortet
integer variable
this might help: It is an introduction to MATLAB variables <http://web.cecs.pdx.edu/~gerry/MATLAB/variables/variables.html>

fast 14 Jahre vor | 0

Beantwortet
Filling in secondly time intervals between 15:30:00 to 22:00:00
try this clc clear all z=[]; format long p={'26/01/2012 15:29:39' 168.008200000000 '26/01/2012 15...

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
Find element in matrix
A = [1 2 3 5 2 4 6 1 ]; intersect(A(:,1),A(:,2))

fast 14 Jahre vor | 1

Beantwortet
save figure in backround job
Your code should work.. If not try.. doc imsave

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
Removing elements in an array
aaa(aaa~=0) or aaa(~~aaa)

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
Getting minimum value from an array
try c=min(A(A~=0)) idx=find(A==c)

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
Average value of a graph after steady state has been reached.
If I understand your question right you want only values for x>=8 and plot y accordingly x=(0:0.1:10); y=sin(x); ...

fast 14 Jahre vor | 1

| akzeptiert

Beantwortet
genetic algorithm
Here are some links to get you started: Genetic Algorithm Examples from the Mathworks <http://www.mathworks.com/help/tool...

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
Plot 3d figure (surface) with one time-dimension axis
For y axis having time in HH:MM format, first convert the time you have to datenum doc datenum Then plot the graph using...

fast 14 Jahre vor | 1

Beantwortet
distance between vectors in matlab???
This might help.. <http://www.mathworks.com/help/toolbox/nnet/ref/boxdist.html> doc boxdist The box dist should give ...

fast 14 Jahre vor | 1

Beantwortet
How to find consecutive numbers
diff(a)==1 should do the job for you. It will show you where in a you have consecutive values.. a(diff(a)==1) Giv...

fast 14 Jahre vor | 6

| akzeptiert

Beantwortet
matrix extract without using for loop
try: A=[ 1 2 3 4 5 6 7; 8 9 10 11 12 13 14; 15 16 17 18 19 20 21]; start=[1 3 4]; rowSize=2; B=[A(start(1),start(...

fast 14 Jahre vor | 0

Beantwortet
plotting
Another way clc clear all l=.01; m=0:0.02:4; x=0:.00001:l; for count1=1:length(m) for count2=1:length...

fast 14 Jahre vor | 0

Beantwortet
Write a program in a script file that determines the real roots of a quadratic equation
If you are beginning, this is a good resource. It is a MATLAB tutorial and will help you solve quadratic equations with MATLAB. ...

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
Can anyone help me in simulating a Wireless sensor Network with 100 nodes in it.
Do you have any paper that you are following. This work is equivalent to a Thesis or dissertation. Anyways since you asked, h...

fast 14 Jahre vor | 2

| akzeptiert

Beantwortet
How do i access data from a table on a website
THis might help <http://blogs.mathworks.com/videos/2009/03/03/read-data-from-the-web-with-urlread/> doc urlread

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
writing transfer functions in matlab
The documentation has good examples on how to write transfer functions: <http://www.mathworks.com/help/toolbox/control/ref/tf...

fast 14 Jahre vor | 0

Beantwortet
dec2bin is not precise with 64 bits numbers
For dec2bin to work correctly it should be nonnegative integer smaller than 2^52 It is mentioned int he documentation: <http...

fast 14 Jahre vor | 1

Beantwortet
use matrix, premutation?
Another way: c=[1,2,3,4,5]; c=perms(c); z=[]; j=[]; k=[]; for i=1:length(c) j(i)=sin(0*c(i,1))*si...

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
ordering a list of number?
doc perms Gives all the permutations of the vector c=[1,2,3,4,5,6] perms(c)

fast 14 Jahre vor | 2

| akzeptiert

Beantwortet
convert .p to .m
pcode is encrypted using AES encryption, using a key only known to Mathworks, so only Mathworks could convert it back. Need t...

fast 14 Jahre vor | 0

Beantwortet
Plotting data
try x_new=datenum(x,'dd-mmm-yyyy HH:MM:SS'); % xaxis time stamp format y=cell2mat(y) % y axis plot(x_new,y);...

fast 14 Jahre vor | 0

Mehr laden