Community Profile

Contact

Professional Interests: Technical Medicine/ Medical Signaling

Top 5% contributor

I suggest you take a look at <http://www.mathworks.nl/help/matlab/ref/uicontrol.html>. You are looking for a editbox as style op...

accepted

0

Answered 3 years ago

I guess you mean something like this: fileID = fopen('data.txt'); C = textscan(fileID, '%s %s','delimiter', ' '); fclos...

I hope you still have some use with this answer! set(gca,'XTick',1:3,'XTickLabel',{'label1';'label2';'label3'})

14864 views

Responded 4 years ago

Somehow the response from Andrei Bobrov got lost, but he had the answer! setdiff(find(x),ind) of setdiff(1:length(x),ind)

Answered 4 years ago

Is it possible to combine the two lines: [~,b] = myfunction(x); c = myfunction2(b); Something like: c = myfunction2(myf...

2 Answers

Asked 4 years ago

Dear community, I have this 720x720 image and want to do a spatial transform in a way that a horizontal line will become a U-...

1 Answers

Asked 1 year ago

Suppose you have; t = 1:0.1:10; x = rand(1,100); ind = [1:10,60:61,80:100]; I want a single expression which gives ...

Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

Solve this!

3 years ago

Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

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...

Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

Check if sorted. Example: Input x = [1 2 0] Output y is 0

There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

*Description* Return the number of 1s in the (unsigned integer) binary representation of a number. This function should be ab...

Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

*Description* The Soroban is the name of the modern Japanese abacus. Information on reading a Soroban can be found <http://we...

Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

Load more

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend you select United States from the following list:

See all countries