First
|
Prev |
Next
|
Last
Pages: 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398
Creating a matrix from arrays generated in for-loop Hi! When I run this loop I obtain 5 simultaneous 'z=' statements: e.g.: z= 1 2 3 4 5 z= 2 9 8 7 6 is there a way to generate one matrix 'Z' with 'n' rows and the '5' colums out of these five arrays instead? ex: z= 1 2 3 4 5 2 9 6 7 8 .... loop portion of c... 27 Jun 2010 22:41
MATLAB Excel Builder If I build a Excell Add-ON using MATLAB Excel Builder, can I freely distribute to non MATLAB users. Ernie ... 27 Jun 2010 20:30
Grouped Bar Chart w Different Colors Hello, I'm trying to control the colors in a grouped bar chart. Here's what I'm starting with: x = [1 2 3 4 5] y = [7 8;5 7;8 8; 9 9; 7 2] bar(x,y,'grouped') How can I, for example, make the blue bars pink and the red bars green? Thanks! ... 27 Jun 2010 19:24
While Loop Error Without posting the whole code, I am having a problem with a while loop. rel_err=1; xerr=0.001; xi=ones(1,l-1); while rel_err>=xerr for i=1:10; x=T*xi'+C rel_err=abs(xi-x')/abs(x') xi=x'; end end The for loop runs its entire ... 27 Jun 2010 19:24
Finding Permutations Hi; This question seems easy but do you know how to find all possible permutations for FOUR variables where each variable can take a value from 1 to 10. I want to put all posible permuatations in a single matrix. ... 27 Jun 2010 20:30
F distribution fitting to a PDF Hey all, i have been searching for a solution to fit my data to an F-distribution. I would love to do the same i could do using the Distribution Fitting Tool display my data as a PDF and then fit it to an F-distribution (obtaining to degrees of freedom). To make things more complicated, i would love to force the f... 1 Jul 2010 15:34
Multiple file generation I have this code C = cell(1, 10); for m = 1:10 C{m} = load(sprintf('tot__r1_%03d.dat', m)); A=zeros(256); B=C{1,m} A(B(:,1))=B(:,2); %here I need code that does Y(m)=A end I need to have 10 different output files of A, one for each m. Please, can you help? ... 27 Jun 2010 21:35
mysql and matlab problem I tried to use java-connector to connect to mysql in linux environment but after saving 50 records and sometimes alittle more matlab returns me error that cannot load the java connector driver however I close the connection for each insertion and again open it for new insertion , most of the time the error message is... 28 Jun 2010 17:15
MATLAB indexing issue (was Re: Use of MATLAB fftshift) On 27 Jun, 20:06, robert bristow-johnson <r...(a)audioimagination.com> wrote: On Jun 27, 8:09 am, Rune Allnor <all...(a)tele.ntnu.no> wrote: On 27 Jun, 07:56, eric.jacob...(a)ieee.org (Eric Jacobsen) wrote: IMHO the most plausible explanation for why this has never been addressed is that a consci... 6 Jul 2010 23:19
change diagonal to 1 Hi all, I have a big square matrix, and I want to change the diagonal elements to 1. Is there a way that I can change the diagonal elements at once, instead of looping through all the elements one by one. As an example, A = [3 2 1; 4 5 6; 7 8 9]; and I want A = [1 2 1; 4 1 6; 7 8 1]. Thanks, We... 27 Jun 2010 15:00 |