Formatting numbering in MS word - ms-word

Its a simple question.
I have a question with 4 options.
For example
Q1. How can you eat?
a. by mouth
b. by hand
c. by leg
d. by eyes.
I want it to format not in the above manner, but as below
Q1. How can you eat?
a. by mouth b. by hand
c. by leg d. by eyes.
How can I do that in MS word please?

You can create a 2 by 2 table. You can then hide the table grid so it appears like the formatting you specified above.
Link for creating tables: http://www.pcworld.com/article/2459947/how-to-create-and-customize-tables-in-microsoft-word.html

Related

How do we work on tables and do calculations with their values? (for a beginner)

I am new to Matlab and I am trying to figure out how to work with a table.
It is very basic, the table has student name, student number, 4 lab marks, 1 midterm mark, and 4 exam marks. We are asked to find the person with the highest total lab mark. Now, not being familiar with coding I am not sure where to start. First of all, prof gave us these codes beforehand, I believe it's for loading and setting id number and name as strings
opts = detectImportOptions("course_grades_2021.xlsx")
opts = setvartype(opts,{'ID_Number','Name'},'string')
table = readtable('course_grades_2021.xlsx', opts);
I tried adding the values but it doesn't work like a matrix, when I for example get a lab mark for a student Matlab shows it as
ans =
table
Lab_1
_____
3
We are not allowed to convert to a matrix, could anyone show me how I should do this? Matlab is very vital for my program and I really need to learn this
Documentation shared by wolfie helped.
I used
Lab1_Marks= table.Lab_1(2:21,:);
Lab2_Marks= table.Lab_2(2:21,:);
Lab3_Marks= table.Lab_3(2:21,:);
Lab4_Marks= table.Lab_4(2:21,:);
to pull only the marks from the table

How to avoid CIRCULAR REFERENCE in TABLEAU using LOOKUP and PREVIOUS_VALUE?

Hello!
In Excel I have 2 columns C and D with formulas in there for a specific purpose.
As an Example I have here cells C12 and D12 in these 2 columns to show he formulas.
C12 = 0.001855 * B12/E12 + 0.998145 * (C11+D11)
D12 = 0.981119 * (C12-C11) + 0.018881 * D11
Let's say the C-column variable is "Running Base" and the D-column variable is the "Growth" and the rows are months. And say I want to copy these formula's to a Tableau worksheet with months in the rows.
You see that C12 is using both it's own previous value C11 (the lag -1 of C) and the lag -1 of D (D11). I can find C11 in the formula in TABLEAU using the PREVIOUS_VALUE function and the previous value of D with the LOOKUP([D],-1) function (the B12 and E12 are not important for the discussion).
Then D12 is also using it's own previous value D11 and both C12 and its previous value C11. Of course we can do similar TABLEAU exercises here, but you already feel a CIRCULAR REFERENCE error coming up ;-).
So, there is no actual CIRCULAR REFERENCE and it's working in Excel. But I do understand why TABLEAU is giving one and I am sure there must be a work-round to this.
Can anybody help please???
Thx very much in advance!!
Herman Mentink
One way to solve this is to drop the calculation in Details part of the Marks and then reference the rows of that field in calculation which doesn't create a circular reference else you are correct tableau will create a circular reference error as behaviour is different from Excel.
Edit----------------------------------------------------------------
Not just a tool tip infact you can use those in calculated fields aswell, Few months back I have implemented same in my report.
A calculation creates 4 rows in my report and I need to do (1st row+4th row) in the same column, so I dropped the calculation in Detail on the Marks and referred same another calculated field. Just check the below example code:
LOOKUP(ATTR([Values]),FIRST()+4) + LOOKUP(ATTR([Values]),FIRST()+1)
Values is the calculated field now above caluction is referring to Values and picking rows 2 and 5 which I can't use directly on the Values column if I drop Values on Text in Marks
In the above image values in detail is original calcualtion and the one I used in text is the referring to values and displaying.

Enterprise Architect Relationship Matrix Element Grouping

I am struggling with Enterprise Architect Relationship Matrices and would like to know if it is possible to group elements on the X and Y axis such as show in the figure below:
In the previous example elements 1 - 5 on the horizontal axis are grouped into label "Financial" and elements from 6 - 10 are grouped into label "Customer". On the vertical axis elements from 01 - 06 are grouped into label "Financial".
I would like to use the same structuring with an Enterprise Architect Relationship Matrix.
I already tried to put these elements in different packages and have the pakage name prefixed on the element name. However in that case all elements are ordered alphabetically which is not the desired behaviour.
If it was possible to colour the elements this would be an alternative for me.
So my question is, is this somehow possible or is there an alternative way to achieve a similar outcome?
Thank you for your help and suggestions!
Ronald
No, I'm afraid that is not possible.
As an alternative you could include the type of element into the name of the elements.
Something like
FIN - 002 - IT Compliance and support of..
INT - 012 - Enablement and support of...

Basics on Matlab function Unique [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm studying the function unique, which looks simple at a first sight but I don't understand some properties.
I created a matrix A and tried to analyze the outputs:
A=[5 2 4 5;
1 1 3 4;
6 1 2 3]
[C0,IA0,IC0]=unique(A)
[Cr,IAr,ICr]=unique(A,'rows')
[Cf,IAf,ICf]=unique(A,'first')
In C0 the logic of the output is "create a vector in which there are values that appears at least one time"
But I don't know the meaning of IA0 and IC0. I just know the relation that C=A(IA0) and A=C(IC0). Are these 2 output created only to satisfy this two relation? So why should I be intersted in their outputs?
In Cr ('rows' example) the logic of the output is "give me back the rows of the original matrix A but sorted ascending. Also, if you find at least two or more rows that repeat with same values and order, show that row only once in Cr output"
The logic of IAr is very intuitive: "give me back the index that must follow the Cr output to order the rows." So in my example gives me back a vector like IAr=[2;1;3]. Thus the second row of the original matrix A must be the first in the Cr output, the first row in A matrix must be the second in Cr...
But I still don't understand the output ICr
In Cf ('first' example) gives me back the same output as C0. And it's not really clear to me how to use properly this function.
Can anyone gives me a simple explanation about how this function works?
Are there any simple practical examples in which I can take advantage of these other outputs?
Matlab is a generic tool. So asking "why" some functions give extra output just because it might be useful to someone for some reason is difficult to answer.
IA0 gives the indices of the last elements that might have been chosen by unique. IC0 contains indices to replicate A using only the unique elements. Why do they exist? You may not only be interested in unique values, but also where to find them in A.
You are misinterpreting how rows works. It simply treats the rows of your matrix as atomic and returns the unique rows. To get a better idea of how it works, run A(3,:) = A(2,:) before calling unique. Then the idea behind IA0 and IC0 is the same as in the previous case, except now with rows.
The first option only changes how Matlab chooses the indices of IA0. Again, the reason behind this is that Matlab is a generic tool. You might be interested in finding the latest repeated occurence of each value or in the first. It depends on what you want to do.

Declaring two matrices in one line of code? Matlab 2014

,A simple question but one I have yet to get a concrete answer. If I have two matrices, say A and B and I want to make them both the same size, say a 1x2 matrix of zeros. Is there a way to declare them both in one line of code? I ask because in my situation I will have over 10 matrices of the same size but I want an easier way to declare them.
So at first I might think it would look like the following (which is not valid):
A,B = zeros(1,2)
The deal()-function does exactly what you are looking for. You can distribute either one input to several output-variables or also distribute several input values to several output values. You need the first case:
[A, B] = deal(zeros(1,2));