Gelöst


Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

fast 6 Jahre vor

Gelöst


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

fast 6 Jahre vor

Gelöst


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

fast 6 Jahre vor

Beantwortet
How can I convert a vector in format cell to double?
cell2mat

etwa 6 Jahre vor | 0

Beantwortet
Find max value with multiple conditions
Use logic statements for each criterion. Use logical "AND" (&) to see which elements meet all criteria. Find the max of thos...

etwa 6 Jahre vor | 0

Beantwortet
Could someone tell me an easy way to plot graph when kk varies from 1 to 100?
Have you considered putting all emg data columns in a cell array, with the first cell containing the x-values? That way you onl...

etwa 6 Jahre vor | 1

Gelöst


Return a list sorted by number of consecutive occurrences
Inspired by Problem 38 by Cody Team. Given a vector x, return a vector y of the values in x sorted by the number of CONSECUTIVE...

etwa 6 Jahre vor

Gelöst


Return elements unique to either input
Given two numeric inputs a and b, return a row vector that contains the numbers found in only a or only b, but not both. For ex...

etwa 6 Jahre vor

Gelöst


Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

etwa 6 Jahre vor

Gelöst


Matrix indexing with two vectors of indices
Given a matrix M and two index vectors a and b, return a row vector x where x(i) = M(a(i),b(i)).

etwa 6 Jahre vor

Gelöst


middleAsColumn: Return all but first and last element as a column vector
Given input A, return all but the first and last elements, arranged as a column vector. (I.e., all dimensions after the first s...

etwa 6 Jahre vor

Frage


Simultaneous reading of mat file allowed?
I know it is bad to allow multiple users to write to a mat-file simultaneously (or one read while another is writing). But can ...

etwa 6 Jahre vor | 1 Antwort | 0

1

Antwort

Gelöst


Reindex a vector
You are given two vectors of equal length. Vector N has numeric values (no Inf or NaN) while vector IDX has integers. Place th...

etwa 6 Jahre vor

Gelöst


Specific Element Count
Given a vector _v_ and a element _e_, return the number of occurrences of _e_ in _v_. Note: NaNs are equal and there may be n...

etwa 6 Jahre vor

Beantwortet
Cell array data to double conversion
Assuming each cell has only one entry, try using cellfun with str2double to convert the cell array of strings to a cell array of...

etwa 6 Jahre vor | 0

| akzeptiert

Gelöst


Find the peak 3n+1 sequence value
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

etwa 6 Jahre vor

Gelöst


Read a column of numbers and interpolate missing data
Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

etwa 6 Jahre vor

Gelöst


Get the area codes from a list of phone numbers
Given a string of text with phone numbers in it, return a unique'd cell array of strings that are the area codes. s = '508-6...

etwa 6 Jahre vor

Beantwortet
i keep getting an error in my code about my array. pls help . code and error below thank you
When you are concatenating horizontally, the number of rows must be consistent. According to your comment, all variables are 1x...

mehr als 6 Jahre vor | 0

Gelöst


Return unique values without sorting
If the input vector A is [42 1 1], the output value B must be the unique values [42 1] The *values of B are in the s...

mehr als 6 Jahre vor

Gelöst


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

mehr als 6 Jahre vor

Gelöst


Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

mehr als 6 Jahre vor

Gelöst


Fibonacci Decomposition
Every positive integer has a unique decomposition into nonconsecutive Fibonacci numbers f1+f2+ ... Given a positive integer n, r...

mehr als 6 Jahre vor

Beantwortet
Need for explication of this code
"i" starts with 1. M becomes [V(1:(1+3))] = [1:4] = [1 2 3 4]. "i" becomes 5 = (1+J) = (1+4). M adds a row with [5 6 7 8]. Et...

mehr als 6 Jahre vor | 1

| akzeptiert

Beantwortet
How to create a GUI with changing buttons?
Another possibility is to use the same set of buttons for both options, but assign associated properties (String label) within t...

mehr als 6 Jahre vor | 0

Gelöst


Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...

mehr als 6 Jahre vor

Gelöst


Getting logical indexes
This is a basic MATLAB operation. It is for instructional purposes. --- Logical indexing works like this. thresh = 4...

mehr als 6 Jahre vor

Beantwortet
I can not modify data in a table
Have you considered using appdata instead of guidata? In this matlab answer (Appdata answer with link), there is a link to a gr...

mehr als 6 Jahre vor | 0

Gelöst


Remove the two elements next to NaN value
The aim is to *remove the two elements next to NaN values* inside a vector. For example: x = [6 10 5 8 9 NaN 23 9 7 3 21 ...

mehr als 6 Jahre vor

Gelöst


Create a "+" flag
Given two odd numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1...

mehr als 6 Jahre vor

Mehr laden