内容提要
回答
负面权力
u = (0 0 1 0 1);v = [1 4 4 4 3];结果=过滤器(u,v,[1, zeros(1,7)]) ans = 0 0 1 -4 13 -40 121 -364
负面权力
u = (0 0 1 0 1);v = [1 4 4 4 3];结果=过滤器(u,v,[1, zeros(1,7)]) ans = 0 0 1 -4 13 -40 121 -364
4年前|1
|accepted
回答
如何用矩阵的第一个值制作数组
%输入a = [1 2 3 4 5 6 7 8 9 10; 2 2 3 4 5 5 2 3 3]';%结果b = a([[boolean(1); diff(a(::,2))〜= 0],1);
如何用矩阵的第一个值制作数组
%输入a = [1 2 3 4 5 6 7 8 9 10; 2 2 3 4 5 5 2 3 3]';%结果b = a([[boolean(1); diff(a(::,2))〜= 0],1);
4年前|0
回答
如何使用TextScan阅读字符串?
Have you tried specifying the delimiter? formatSpec = '%d %s %f %f %f %f %f %f %f %f %f'; C = textscan(fid,formatSpec,15...
如何使用TextScan阅读字符串?
Have you tried specifying the delimiter? formatSpec = '%d %s %f %f %f %f %f %f %f %f %f'; C = textscan(fid,formatSpec,15...
4年前|0
回答
帮助DEC2HEX(敏感和零)
您可以更改行:carshex = dec2hex(carsDecimal);to:carshex = lower(arrayfun(@(x)(dec2hex(x)),carsdecimal,...
帮助DEC2HEX(敏感和零)
您可以更改行:carshex = dec2hex(carsDecimal);to:carshex = lower(arrayfun(@(x)(dec2hex(x)),carsdecimal,...
4年前|1
|accepted
回答
not enough input argument
Your code, which I've included below takes two inputs, x and y, however you don't use the first input 'x' anywhere in your code,...
not enough input argument
Your code, which I've included below takes two inputs, x and y, however you don't use the first input 'x' anywhere in your code,...
4年前|0
Solved
子集总和
Given a vector v of integers and an integer n, return the the indices of v (as a row vector in ascending order) that sum to n. I...
在4年前
Solved
Create a Multiplication table matrix...
Create a product table in this format: P = [ 1 2 3 4 5; 2 4 6 8 10; 3 6 9 12 15; 4 8 12 1...
在4年前
Solved
谁知道PI的最后一位数字?
There is only one man who knows the last digit of pi, who is that man? Give the name of that man, who, by popular believe, can ...
在4年前
Solved
Energy of a photon
*&#9883&#9762&#9883&#9762&#9883&#9762&#9883*给出了Giga Hertz中光子的频率F。找到这个...
在4年前
Solved
每个人的免费通行证!
_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): Once a mont...
在4年前
Solved
在3D矩阵中找到最大的价值
给定3D矩阵A,找到最大的值。示例>> a = 1:9;>> a = reshape(a,[3 1 3]);>> islargest(a)a ...
在4年前
Solved
Indexed Probability Table
This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...
在4年前
Solved
独角兽上的角数!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!
在4年前
Solved
这三角形是正确的吗?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...
在4年前
Solved
How to subtract?
*&plusmn&plusmn&plusmn&plusmn&plusmn&plusmn&plusmn&plusmn&plusmn&plusmn&plusmn * *想象您需要减去一个...
在4年前
Solved
产生矢量1,2,2,3,3,3,4,4,4,44
生成一个矢量1,2,2,3,3,3,3,4,4,4,4,因此,如果n = 3,则返回[1 2 2 3 3 3],如果n = 5,则返回[1 22 ...
在4年前
Solved
扭转字符串的单词(不是字母)
*Description* Change the words of a string such that the words appear in reverse order. You may assume that the string is a n...
在4年前