Conditional transpose II - MATLAB Cody - MATLAB Central

Problem 60736. Conditional transpose II

Difficulty:Rate
As in problem 60734, you're given two vectors, x and y, which might be row or a column vectors. Your task is to ensure that y has the same "rowishness" as x: y should be a row vector if x is a row vector, and a column vector if x is a column vector. The difference is that this time, x and y will not generally be the same length.
As before, control flow statements (if, switch, for, while, try) and recursion aren't allowed. Neither are arrayfun and friends (cellfun, structfun, varfun, rowfun, spfun). Cheating is possible but made harder, and in any case discouraged.

Solution Stats

100.0% Correct | 0.0% Incorrect
Last Solution submitted on Oct 26, 2024

Solution Comments

Show comments
Primes and Rough Numbers, Basic ideas
What is a rough number? What can they be used...
2
4

Problem Recent Solvers8

Suggested Problems

More from this Author17

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page