Hi guys,
I am having a problem here with a MATLAB m.file, I am trying to take the inverse tangent of an array and expect from this function to get another array, but for some reason I don't get an array just a single number.
Any MATLAB guru that could help me with this problem?
Thanks...
Can over running of array lead to the catastrophic failures?
If ‘Yes’ then why does not C++ provide bound checking on array operations and who is responsible to prevent array overruns?
Homework Statement
The program is to read in a file full of numbers formatted like this: The first line contains a single int n. Following this line, there will be n lines with n ints each separated by whitespace.
So I have asked the user for a file path and read in the first number ('n')...
Hi, I am writing a function that takes in a real data array and a key partition value, which will rearrange the array so that elements with a lower value than x are placed before the elements with values >= the partition value. It then returns the index of the last element of the array with a...
Homework Statement
A towed - array sonar comprises 100 transducers equally spaced at every 3m and towed behind a ship so the array stays just below the surface of the water (effectively horizontal). An adjustable phase delay can be introduced for each transducer, allowing the sonar beam to be...
I have been asked to code a Bubble Sort using a pointer array and pointer notation as opposed to the square bracket notation...(there should be two uses of square brackets when declaring the arrays). It will not work! :(
Basically the data does not sort. I am trying to swap pointer array...
Homework Statement
I need to write a function that takes an int array and the size of the array as parameters, then finds the largest num in the array, returns this value and then sets the value to zero.
Then in the main part of the program, I need to create an int array of 20 nums, assign...
I have the next theoretical-practical problem. I have to build a tubular bell array (like that at symphonic orchrestas) with tubes (not rods) of aluminium or copper. The principal problem I have is I don't know how to state the wave equation for a tube (I have done it for a string). How I do it...
Q1. Write a function that accepts an array of integers and returns the second largest integer in the array. Return -1 if there is no second largest.
The signature of the function is
public class ID
{
public static void main(String[] args){ }
int f(int[ ] a) { }
}
Examples...
Homework Statement
Four charges q1 = q3 = -q and q2 = q4 = +q, where q = 6 µC, are fixed at the corners of a square with sides a = 1.3 m. (see attached .gif)
Calculate the x- and y-components of the net electric field at the midpoint M of the bottom side of the square.
Homework...
Homework Statement
For the problem at this site http://www.kalva.demon.co.uk/putnam/psoln/psol859.html, how an array with n^2 elements contain 8*n elements (8 for each positive integer) when n is not equal to 8? Does that type of algebra not work with an infinite number of elements...
Hello,
I need to write a method that adds an interger to a sorted array of integers. I'm using the following code to search for an interger in the array
private static int binarySearch(int[] list, int key,
int low, int high) {
while (low <=...
Does anyone know what kinds of things are being planned for study at the SKA when its built?
i know its going to be a radio telescope, and hopefully in Australia/NewZealand instead of South Africa (it'll be based only a few hours out of Perth WA, where i live :biggrin:)...
and also, what...
Homework Statement
I am working on a program that reads in names (strings), sorts them, and then later is searchable. The problem I am having is this. When I enter the first 20 elements of the array, everything works fine. When I enter the 21 element (when it goes into the if loop) I get...
Homework Statement
I'm looking for a function in IDL that will select a certain section of an array.
The Attempt at a Solution
I could technically do this in a loop, but I saw that another student in my lab had a real simple single line function. I'm reading in a .wav file, which has...
1. The problem I am having is that I am trying to pass a two dimensional array from my main function to a secondary function. I know it has to be call by reference and using the name of the matrix, "matrix" in my case should send the location. Also since it has more than one dimension there...
Does anyone know how I would go about displaying/generating webpage content with info from an array in a .java file?
Suppose you click on cars.com, once you do, the webpage will display the contents (say car names) of an array from a .java file. How do I do this?
Thanks.
Hi I am a new-comer to VB.Net & I am working with arrays at the moment.i want to write a procedure that accepts two 2-D arrays(max size being a 4*4 matrix).
i don't know how i could get the procedure to read in these values from the sixteen different textboxes i have created...i started using a...
Well I'm hoping it's simple, after all I'm not too good at this lol
i am trying to get the user to input values for an array using:
#include <stdio.h>
#include <stdlib.h>
int main(void){
int marks[4];
char format[] = "%i";
_asm {
markone: lea eax, marks[0];
push eax;
lea...
Wythoff's square array is Sloane's reference A035513 in the online encyclopedia of sequences (click the "table" button to see the sequence as a table) and Allan Wechsler's sequence is A022344. To my knowledge the following connection has not been noted before.
Let T(i,j) be defined from the...
Hello
I have a bunch of data in a text file that got loaded into an array. Now the problem is that there are a lot of outliers. So let's say if I find the outlier, how do I get rid of it, by say move the next one to that spot. If I do that how do I redefine the arrary size. What would be...
There's a lot of products with LED's these days. However I was wondering why a light made with LED's is done with an array on LEDs instead one large one. Can we not make a large one? Is it possible to make a large LED but it's actually more efficient to have several smaller ones?
Any...
Hi,
I realize this is a physics forum, but thought someone may be able to help!
I would like to create a square array i.e 4x4 and then plot a vector of data (16 elements) over this 4x4 array.
I have created the following code, it doesn't work but that's what I am ideally aiming after...
Hi all, I'm new to this forum and I'm not a physicist. I'm a Cabinet Maker looking for a career change.
I performed an advanced search on the entire site and was surprised to find not a mention in regards to Halbach Array. My understanding is that the special arrangement of nib magnets can...
i need to get this array to calculate the numbers that are less than the average and greater than or equal to the average.
first of all, i need to figure out how to make a counter to count the average of the array! i can't find the code in the textbook
here's what i have so far:
#include...
To those who helped yesterday,again, thanks.
I have managed to resolve most of my problems, however, i have a new issue.
VB seemsto think that the names of my arrays are "ambiguous", WHY?
what do i need to do to resolve this new and fustrating problem?
see diagram for this at
http://img.photobucket.com/albums/v11/biggm/cap.jpg
Question:
Determine the eqivalent capacitance C between terminals X and Y of the infinite set of capacitors represented. Each capacitor has capacitance Co.
Suggestion: imagine that that ladder is but at the line...
consider the program
Class A
{
int a;
public:
A(int m = 0)
{
a = m;
}
}
int main()
{
int i = 0;
/* Intansiate/Initilize Object with the Constructor */
A Object(0);
/* Here is the Problem */
/* Create the 32 Objects of Class A */
A nObjects[32]...
The following array is based on the Fibonacci series. The
first row is simply the Fibonacci series. Each nth row are Fibonacci
type series where the generating numbers in columns 1 and 2 are
determined as follows. The numbers in column 1 are the row number
and the number to the right of the...
Antenna array consists of two infinite plane parallel sheets in the xy plane spaced half a wavelength apart and having current densities. Wave is propagating in vacuum.
J_{s1} = J_{so}cos(\omega t) \vec{i} z = 0
J_{s2} = J_{so}sin(\omega t) \vec{i} z = \frac{\lambda}{2}
The...
Hi some questions have been plaguing me when I look up at the sky.
1) Does anything exist between galaxies? Are there any lonely stars, black holes, rocks, planets,gas or anything between galaxies. Or do these things only form within galaxies?
2) I know about black holes, but I can't...
I believe I am stuck. :frown: I need to traverse an array which will contain a sentence the user enters and identify the array positions of the first and last letters of each word in the sentence. I can do the first word, but I am not sure how to move it along after that. I am thinking I need...
Array operations in Matlab?
Is it possible to apply operations to the rows of a matrix as an array? Such as I have a matix A which is 30 rows by 1 column and I want to treat each row as a vector such that I can solve for the polynomial roots of each row using the roots comand (treating each row...
... |
... R
... |
-R- --R
... |
... R
Suppose you have an infite array (2by2) of resistors, each of value let's 1k.
If you place the an ohmeter accres one resistor, what resistance will the ohmeter read?
I have a programming assignment to fill an array with this series: 1,4, 9, 25, 36, …. The problem is I don't know what this series is so I can't write the program. Can anyone help?
Hi,
I hope you can help, I'm trying to create an array of characters in matlab:
It has to be 100 x 5000 in size, I'm not to sure where to start. I've looked at some web resources and it some mention bringing in java strings?
I'd ideally not like to use java as i want to learn the core...
My array is big. No, bigger than that. It's big!
I'm writing a C++ program on a unix box (or is it linux? I never notice the difference), and I want to operate on a very large amount of data: more than 2^32 bytes.
Do I have any options aside from writing my own code to manage a swap file...
Hello, I have a little function I have written that takes an array of structures as an argument
void print_names(struct pers_info arr[])
{
printf("Here is person 1: %d %s %s %s\n", arr[0].ssn,
arr[0].pers_name.first,arr[0].pers_name.middle, arr[0].pers_name.last);
printf("Here...
Could someone explain to me "array notation"
I found it here, but I still don't understand it. Though I probably don't need to know it, I want to. Also, will I encounter this anywhere else?
http://members.aol.com/hedrondude/array.html
I am not sure I wrote this correctly, but I am trying to declare an array of 12 pointers to arrays of 50 characters:
char *names[12] [50]
Does this look OK? Thanks.
I'm not sure that this post belongs here, but I'll give it a try. I'm having a devil of a time :devil: trying to figure out why my program won't work.
The assignment was to create and array class consisting of:
A constructor that takes and integer for the size of the array
A constructor...
I moved into a new condo last week. It has concrete block walls and concrete floors and ceilings. Needless to say, the wireless reception is terrible.
I bought two of http://www.hawkingtech.com/prodSpec.php?ProdID=183 - 90 degree directional antennas. They helped a little, but...
Just wondering if anyone happens to have an electromagnetic diagram of how a four antenna array would look. Provided that all four antennas’ form a square and edges are one wavelength in distance?
Thanks
Philip