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

Wanted to see if anyone has any insight to why an "ambigious use of subscript" error is created in one project vs. another in swift

So based on the following project tutorial expandableCells, using sub-scripting with NSMutableArray works. (I opened the project myself in xcode and get no errors) When I try to utilize this workflow in my own project, I get "ambiguous use of…
Chris
  • 569
  • 2
  • 8
  • 15
0
votes
2 answers

Type [TeamModel] has no subscript members

I'm trying to perform a segue from a UICollectionView cell to an other viewController, but Xcode send me this error "Type [TeamModel] has no subscript members" when I try to pass data. here the the entire class import UIKit class…
Fabio Cenni
  • 841
  • 3
  • 16
  • 30
0
votes
2 answers

HTML Input Button with Subscript

How can I format a typical Input with type="button" to display content text having a subscript format? Example: O2
Alan Hord
  • 71
  • 1
  • 4
0
votes
0 answers

Odd behavior when trying to extract the value of one variable at the point where another is maximized `m1[, apply(m2, 1, which.max)]`

I'm trying to efficiently and succinctly calculate the value of one variable at the point where another is maximized, and I don't understand R's behavior when I try to do it in (what seems like) the most straightforward way: > set.seed(1) > m1 <-…
generic_user
  • 3,430
  • 3
  • 32
  • 56
0
votes
2 answers

Swift 2.x: searching the node tree for multiple hits

I want to search my SKScene class for childNodes that begin with "spaceship". Basically I have several spaceship nodes named "spaceship1", "spaceship2", "spaceship3", etc... However I'm not getting the syntax right.…
user594883
  • 1,329
  • 2
  • 17
  • 36
0
votes
1 answer

Swift 2.2 - Cannot subscript a value type of '[Dictionary]' with an index of type 'String'

I have a function defined below: private func append(inout ret: [Dictionary]?, element: Dictionary) { if ret == nil { ret = [Dictionary]() ret?.append(element) …
quanguyen
  • 1,443
  • 3
  • 17
  • 29
0
votes
1 answer

R - Subscript out of bounds when reading jpeg

I'm trying to read all the jpg files from a folder and store it in a vector. To make it simple, I'm trying to read only two images as a start. First, I create a list, which gives me a character vector of 1:2. original_files <-…
itool
  • 15
  • 4
0
votes
1 answer

Matlab subscript indices error

help me please. i always get a subscript indices must either be real positive integers or logical error whenever i put 0 value on my "data" how can i get rid of it, i need to have a zero on that one. whenever there is a zero Voltage(1,0) = 1. but I…
well
  • 47
  • 3
0
votes
1 answer

Swift, error: ambiguous use of subscript

I am getting this error: ambiguous use of subscript, and I don't know how to resolve it. Could you please help ? The first one is at the line: next = next[sub] Here is the code: public subscript(path: [SubscriptType]) -> JSON { get { …
scoobyDoo
  • 123
  • 1
  • 5
0
votes
1 answer

subscript out of range VBA code

Could anyone help me to figure out why this code erro is "subscript is out of range". (run time error 9) Dim arrayU() As Variant Dim arrayX() As Variant Dim arrayW() As Variant Dim LrowU As Integer Dim LrowX As Integer Dim LrowW As Integer Dim i As…
Zapata
  • 133
  • 1
  • 5
  • 20
0
votes
1 answer

R markdown: fractions and subscripts without LaTex

I am trying to write my first markdown document. Unfortunately, I have two smaller problems with markdown. In the general running text (aside of code phrases) I would like to embed subtexts and mathematical fraction terms. I am aware that I could…
Arne
  • 337
  • 1
  • 6
  • 17
0
votes
1 answer

Cannot subscript a value of type '[Double]' in Swift

I am using Swix to create matrices in Swift. I form my matrix using a list of x values. This was not a problem when my list of x values was a list of integers, but when I try to use decimal numbers in my list of x values I get the error "Cannot…
Wes
  • 3
  • 4
0
votes
2 answers

Error of "Ambiguous use of 'subscript'" shown after upgraded Xcode

After I upgrade my Xcode to the latest version. It shows this error. Not sure what it means.
Pak Ho Cheung
  • 1,382
  • 6
  • 22
  • 52
0
votes
0 answers

get an ambiguous use of subscript error while using Alamofire and AVFoundation

I use Alamofire framework to call a web service and get a song. After that I want to play the song with AVAudioPlayer from AVFoundation library. However when I import AVFoundation library part of the Alamofire code shows the 'ambiguous use of…
0
votes
0 answers

and not rendering on browser printout

I have a HTML table of measurements, with one column containing the unit of the measurement and I need to print this table out. I am using the subscript tag in order to display the units in the correct format, e.g. m3 for meter cubed. However when…