Questions tagged [subscript]

A subscript is a number, figure, symbol, or indicator that is smaller than the normal line of type and is set slightly below the baseline.

Subscripts are common in mathematical notation (generally indicating position, such as the index of a variable in a vector) and chemistry formulas (e.g. H2O).

Subscript and superscript (Wikipedia)

625 questions
0
votes
1 answer

Error for sparse matrix generated by gallery: subscript indices must either be real positive integers or logicals

I generated a sparse matrix by: A = full(gallery('tridiag',n,1,4,1)); When I try to generate the eigenvectors for this function via: eig(A) I receive the standard the error "Subscript indices must either be real positive integers or logicals." I…
kathystehl
  • 831
  • 1
  • 9
  • 26
0
votes
1 answer

Parse JSON Swift Subscript Error

I'm trying to parse some JSON in swift and I'm getting a 'subscript' error. I've tried to cast as AnyObject instead of NSDictinary to no avail. Pretty stuck. Any help would be appreciated. Here's my code: override func viewDidLoad() { …
Don Draper
  • 87
  • 1
  • 1
  • 6
0
votes
1 answer

How to use IDL's min() function's min_subscript argument in for loop?

I have experience in python but am new to IDL. I am trying to write a function that will return two bins. I want to use the min function to get my bin edges. My issue is that I am trying to use the min_subscript argument to denote each bin edge, and…
Help
  • 3
  • 1
0
votes
2 answers

c++ overload [] operator

I am trying to overload the subscript operator [] in my class which uses a linked list to create a map. This and several variations, like adding const, is what I have tried. header int& operator[](std::string key); and then defining the overload in…
cmb
  • 95
  • 3
  • 12
0
votes
3 answers

Is there any generic function for subscripting?

I have a web page in which contents are loaded dynamically from json. Now i need to find the texts like so2,co2,h2o after the page gets loaded and have to apply subscript for those texts. Is it possible to do this?? If yes please let me know the…
Keshav1007
  • 605
  • 2
  • 8
  • 21
0
votes
2 answers

How do I write subscript lowercase letters in a string

As the question says, how do I write subscript letters for example, Fnet (net is subscripted), in a string? Is there any shortcut key for creating a subscript lowercase letter? I just found few subscript lowercase letters, ₐ ₑ ᵢ ⱼ ₒ ᵣ ᵤ ᵥ ₓ, other…
newbieguy
  • 658
  • 2
  • 11
  • 29
0
votes
3 answers

How to use subscript and superscript text in libgdx?

How to use subscript and superscript text and number in Libgdx.
arv
  • 250
  • 3
  • 15
0
votes
2 answers

Where would custom subscripts be suited over methods/functions and why?

I've researched this in Swift and am confused on where custom subscripts are useful compared to methods and functions. What is the power in using them rather than using a method/func?
Ali
  • 505
  • 4
  • 12
0
votes
2 answers

Vector subscript out of range in C++, cannot find source of error

I am trying to solve a problem on the USACO training pages. Here is the problem: A square pattern of size N x N (1 <= N <= 10) black and white square tiles is transformed into another square pattern. Write a program that will recognize the minimum…
Matt Wang
  • 11
  • 3
0
votes
0 answers

Subscript out of bounds error

I have an issue when running this script in Rstudio where I get the error Error in TMX03_site[, 24] : subscript out of bounds I have 5 scripts in total like this two of which work fine and three come up with the same error. I have looked through…
0
votes
1 answer

Visual Basic: Error 9

Private Sub CommandButton8_Click() Dim x As Long Dim y As Long Dim colindexval As Double Dim resizeval As Double x = Sheet1.Cells(20,21).value y = sheet1.cells(21,21).value resizeval = Sheet1.Cells(19, 12).Value colindexval = Sheet1.Cells(16,…
0
votes
0 answers

subscript Strings and add to Textboxes/Rectangle in Visio

i hope you can help me. i'm working on a Tool which creates technical drawings from excel data. some of the desciption boxes on that drawings have sub- or superscriptions. i've found that article related to word: How to add subscript characters in…
Exar666Kun
  • 135
  • 1
  • 18
0
votes
1 answer

SWIFT: Subscript int in String (Cnndition works, assignment not)

I want to assign the first char of a string. Of course there is a advance function, but to me (I come from C++) it is much easier to read when simply using [index]. So I defined an extension for String type: extension String { subscript (i:…
Peter71
  • 2,180
  • 4
  • 20
  • 33
0
votes
1 answer

Array subscript operator overloading in C++

int &HTable::operator[](const string &key){ int hashVal = hash(key); list citylist = _pht->at(hashVal); std::list::iterator it = citylist.begin(); for (; it != citylist.end(); it++){ std::cout << "came_inside" <<…
Novice
  • 1
0
votes
1 answer

Why does subscript 2 not appear on Windows XP?

I am trying to display CO2 in a static text control on a .NET application, but on some Windows XP system, the subscript-2 (unicode 2082) appears as a square). I suspect that it may be a font issue as it appears on some Windows XP systems but not on…