Community Profile

photo

Joan Puig


Bloomberg L.P.

Active since 2011

Statistics

全部
  • 知识渊博的级别2
  • 3 Month Streak
  • 感恩3级
  • Revival Level 1
  • First Answer
  • 求解器

查看徽章

Content Feed

查看

Question


Any way to get the "current" class
嗨,我正在编写一些面向对象的代码(带有classDef),对我来说,具有这样的函数很方便:...

9 years ago | 2 answers | 0

2

answers

Answered
Performance improvements for "isdeployed" and "persistent"?
Another way you could try to do it is by having a function pointer so for example: if isdeployed() myFun = @myFun_depl...

9 years ago | 0

Answered
Performance improvements for "isdeployed" and "persistent"?
嗨,您可以创建一个全局变量,该变量始于gvar = iSdeployed();然后只参考该变量...

9 years ago | 0

解决了


将所有整数从1到2^n总和
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.

10年前

解决了


搭便车手MATLAB指南
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

10年前

Answered
佳能EOS T1I
Hi, I was just wondering about the same thing. If you are in a hurry I think you could write it yourself using the Canon ...

10年前|0

解决了


Is my wife right?
Regardless of input, output the string 'yes'.

10年前

解决了


Clean the List of Names
给定单元格数组中的名称列表,请删除由同一字符串不同资本产生的任何重复。所以...

10年前

解决了


戈尔巴赫的猜想
The asserts that every even integer greater than 2 can ...

10年前

解决了


以排除数字的总和
Add all the integers from 1 to n in which the digit m does not appear. m will always be a single digit integer from 0 to 9. no...

10年前

解决了


如何在不使用查找功能的情况下找到元件在向量中的位置
写一个函数posx = findposition(x,y)其中x是向量,而y是您要搜索的数字。示例:鳍...

10年前

解决了


提取领先的非零数字
states that the distribution of leading digits is not random. This...

10年前

解决了


Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

10年前

解决了


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

10年前

解决了


pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

10年前

解决了


Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog:

10年前

解决了


Bullseye Matrix
给定n(总是奇数),返回输出a具有数字1至(n+1)/2的同心环围绕中心点。考试...

10年前

解决了


Quote Doubler
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

10年前

解决了


重复
Write a function that accepts a cell array of strings and returns another cell array of strings *with only the duplicates* retai...

10年前

解决了


哪个值正好出现三次?
返回所有值(最小到最大的值)的列表,该列表在输入向量X中精确出现了三次。因此,如果x = [1 2 ...

10年前

解决了


返回N的3N+1序列
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...

10年前

解决了


删除所有辅音
删除所有辅音in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

10年前

解决了


Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

10年前

解决了


Binary numbers
给定一个正标成整数n,创建一个(2^n)-n双重精度,该矩阵包含从0到2^n ...

10年前

解决了


Remove the vowels
删除给定短语中的所有元音。示例:输入s1 ='杰克和吉尔上山'输出s2是'jck nd jll wn ...

10年前

解决了


Renaming a field in a structure array
MATLAB has a and a

10年前

解决了


Implement a ROT13 cipher
将字符串S1中的每个字符替换为从其转移13个位置的字符(如果neces ...

10年前

解决了


Weighted average
给定两个数字列表,确定加权平均值。示例[1 2 3]和[10 15 20]应导致33.333 ...

10年前

解决了


Making change
给定货币量,返回此表格的向量:[100 50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.01]示例:输入a = ...

10年前

解决了


求和数字
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 + ...

10年前

Load more