Other Languages
Forum Post

Re: first time user syntax help

Well I don't know how the matrix white is generated but I have a code for you. I took the example of a 6x6 matrix with two blocks and it works fine. Here's the code, but in your case, you should...
Forum Post

first time user syntax help

Hey, I have a 2048x2048 matrix with values of either 0 or 1 which is called "white". I need to find the total number of 3x3 blocks in the matrix where each data point has a value of 1, ie, 1 1...
Forum Post

Re: Law of Large numbers of exponential random variables

Yes, but the value you must to generate the exponential should be 1/m instead of m. The population mean of an exponential distribution with parameter m is 1/m. In the matlab exprnd(mu,...) function,...
Forum Post

Array of arrays input to mex function

Hello I am writing a mex function in C++. The input is an array of arrays. I tried every possible function and technique I found on mex online documentation but nothing worked. Any help will be...
Forum Post

Re: Matrix Help

I tried that, but getting an error: ??? In an assignment A(I) = B, the number of elements in B and I must be the same. Not really sure what that means, or how to correct it. Thanks.
Forum Post

Matlab Single-Linkage Clustering Algorithm

Does anyone know of a free code available for Single-linkage clustering algorithm? I am looking to input a .txt file of a 0-1 matrix like the following (but bigger): 010011 011100 010010...
Forum Post

Re: Matrix Help

before the loop try v = zeros() then for your 'v' v(n)= fourbfiveb(h)
Forum Post

Matrix Help

Hello, I am new to Matlab and need some help with my matrix. I am currently making a random 4x6 matrix of zeros and ones. Taking each row, and turning it into a decimal number. Then using my...
Forum Post

Detecting a ball using Matlab Simulink

My aim is to detect a ball when it is seen by the live camera footage or seen in the video file. So far, i have created a Simulink model where a video file can be selected, then the user can...
Forum Post

MATLAB index error

I'm working on a piece of code to help me generate plots. Right now I'm focusing on the calculation stuff. Here's what I need to do. For each RPMline, calculate the Mach number (M0) for mdotf=.1...
Forum Post

Re: how to load the image/picture in visual c++

o c if(A=='q') { cobol MOVE "hello world" TO A c++ } algol END pascal .
Forum Post

Adding Labels to Rows and Columns in a Matrix

I have created a matrix of calculated values and would like to add row and column headings as illustrated in the attached file. I know that you need to convert the matrix to a string value but I...
Forum Post

Haskell

Where may I post about Haskell questions? I need some advice on a 2D graph coloring algorithm
Forum Post

Least squares method (LS)

Hi... i have two classes with 50 vectors each and i need to classify a new vector to one of them... can somebody give me the simple steps that Least squares method uses.... for example for the...
Forum Post

Re: need help in decompostion of a number

Hex numbers are in fact strings to Matlab. You can access any element of a string using its index. So, if you have hx = 'A54D' then you can take its elements and create a matrix. m =...
Forum Post

Gaussian Elimination in Matlab

maxval maxval=abs(A(nrow(j),i)); index = j; end end p=index; %-----------------------------Step 4 if A(nrow(p),i) ==0 display 'No!'...
Forum Post

Re: Simple question - matrix multiplication

Its the simple matrix multiplication. Your inputs price = 2 3 4 2 4 5 which is 2x3 matrix and quantity = 4 1 0 2 2 1 which is 3x2...
Forum Post

help with defining functions per one data

hi i really need help in this special problem i wanna solve nonlinear problem over 30000000 nodes so i must define function to use fsolve but as you see from nodes i cant save them all separately so...
Forum Post

please help asap

Here is the assignment i need help with. the assignment (word doc) along with a main code and function file are in a .rar. thanks
Forum Post

writing objective function for genetic algorithm in matlab

hi what book do you suggest for writing objective function for genetic algorithm in matlab? or book that define for writung function for optimization. tnks a lot kia keeyarash@gmail...
1 2 3 4 5 6 16 26  Next
 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.