Question: MATLAB 10 variant Applicable functions: input, disp, format, type, dir, pause, ele, plot, stem; pascal, magie, ones, teros, eye, rand, randn, round, ceil, fix, tloor;
10 variant Applicable functions: input, disp, format, type, dir, pause, ele, plot, stem; pascal, magie, ones, teros, eye, rand, randn, round, ceil, fix, tloor; squt, log, abs, cos, sin, sum, tan, cot, sinh, cosh, min, max, length, size, ndins, eat, seshape, geraute, schueze, sepmat, istapty, isclass, isxeals cel1, cellaisp, cellplot, numice11, ce112struct, struet2celi, cel12mat, isce11, cel1funz struet, isttruet, theldnames, getileld, sectield, meield, isfield, ordertields; if, else, elseif, break, ocherxise, while, tor, concinue, break, switch, eval, Solutions to the given problems showld be optimal, f. e. witten seripis showld be whiversal, wse M.t TL. AB erpressions of vector and inatrix mathemanics directly. Evaluation rules - Laboratory works (L.D) must be completed in given order, from 1 to 12 . - Tasks mast be completed in given order. Only completed tasks are shosn to the teacher. - Each laboratory work will be evaluated up to 10 points. For the mandatory part of LD that is finished in time 6 points can be gaven (according to schedule), while if the task as done too late, only 5 points can be given. For the cocmplementary parts of L.D that are finished in time up to 4 points can be given, while if these tasks are done too late, only up to 2 poiats can be given. Laboratory work tasks 1. Cell matrix a) Create a 22 cell array, each element should contain a matrix within, with different size. b) Add first member of each cell. Solving these tasks use cel1, cellfun, isreal, length, cellplot, cel12mat, isempty, isclass, 2. Operation flow control Create a program, which would ask a user for numbers in and n. Program would then create a mn size matrix: Am.n=1+122+12m+121+222+22m+221+n22+n2m+n2 Display this matrox using surf. Thas program should repeat itself untal user input equal values for in and n. Solve this task using flow control operators it, while. tor, break also function input and disp, Reccocneaded format for answer is compact. VGTU EF - Script programimang - 2021 - 5 laboratory worlc Complententary Task (4 points) Data str'uctures and operation flow control 10 variant 1. Create a program, which would generate 2 random variables using these formulas: round(rand"9) ir round(rand"11). These numbers should be written to arrays, until first number is generated higher than the secoad one for 3 timses in a row. When cycle is finished program plots a graph with a change of these numbers (two lines in one gaph)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
