Solved


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

ongeveer 4 jaar ago

Solved


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

ongeveer 4 jaar ago

Solved


Find max
Find the maximum value of a given vector or matrix.

ongeveer 4 jaar ago

Solved


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

ongeveer 4 jaar ago

Solved


Inner product of two vectors
Find the inner product of two vectors.

ongeveer 4 jaar ago

Solved


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

ongeveer 4 jaar ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

ongeveer 4 jaar ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

ongeveer 4 jaar ago

Solved


First non-zero element in each column
For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero ...

ongeveer 4 jaar ago

Solved


Summing digits
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 + ...

ongeveer 4 jaar ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

ongeveer 4 jaar ago

Answered
データ解析をするためにプロットを多数表示する。
配列なのかTableによって、細かいコードは変わってきます。 データが二次元配列で、各列がデータだと仮定してみます。 data_x = 1 : 100; data_y = rand(100, 50); という1サンプル100点、50サンプルに対して...

ongeveer 4 jaar ago | 2

| accepted

Answered
Turn a X Y Z matrix into a point cloud
I think that pcshow function will woks pcshow([1 8 9; 2 3 4; 9 8 6]) By the way, you can convert xyz matrix into point cloud f...

ongeveer 4 jaar ago | 0

Answered
How do I change File Name Variable within a Loop
for R = 1:2 if R == 1 txt_R = 'Walk'; else txt_R = 'Run'; end for L = 1:2 if L ==...

ongeveer 4 jaar ago | 0

| accepted

Answered
for文で設定された通りの値が表示されない
for i=0.1:0.01:5 と m1=m1+i; を読む限り m1 は 0.1, 0.21, 0.33, ...と増えますね(増加量が増えている)。 m1が 0.1, 0.11, 0.12, 0.13, ...としたい場合 m1 = i; ...

ongeveer 4 jaar ago | 0

| accepted

Answered
sprintfで文字列をで書き出す場合、’_’があると下付き文字となるのはどうやって解消すればいいのでしょうか
'A_B'となっている箇所を'A\_B'としてみてください。 sprintfの仕様ではなく、恐らく入力先のオブジェクトの仕様で、Interpreterプロパティが'tex'になっているのだと思います。 例えばtitle関数では title('A_B'...

meer dan 4 jaar ago | 4

| accepted

Answered
左辺のサイズが 1x1 で右辺のサイズが 0x1 であるため、代入を実行できません。
ツールボックスを持っていないため未検証ですが、エラーメッセージによるとvpasolve関数で解が得られていないようです。

meer dan 4 jaar ago | 5

| accepted

Answered
x軸の情報を追加したい
time = [78, 80, 82]; altitude = [94, 96, 98]; figure; plot(time, altitude, '-o') xlabel('時間 [sec]') ylabel('高度 ...

meer dan 4 jaar ago | 3

| accepted

Answered
Buffer problem Vector Data
Hi, I've never used these functions. However, It seems that data_in is not exist. Isn't it possible that data_in should be map_...

meer dan 4 jaar ago | 1

Answered
I know why the error is the zeroes?
1. % unew = zeros(1,471); unew = zeros(size(ui)); 2. % unew=uold(i)-dt*((uold(i+1)-uold(i-1))/2); unew(i)=uold(i)-dt*((uol...

meer dan 4 jaar ago | 1

Answered
Matlab Plotting Question: No graphs
Hi, Meowooo Please try below code. T1 = 70:90; A1 = 13.8858; B1 = 2788.51; C1 = 220.79; T2 = 120:140; A2 = 14.0045; B2 = 32...

meer dan 4 jaar ago | 1

| accepted

Answered
画像の描き方
[X, Y] = meshgrid(-255:256, -255:256); I = cos((X.^2 +Y.^2)/45^2).^2; figure; imshow(I) でいかがでしょうか。 グレースケールであれば私はi...

meer dan 4 jaar ago | 3

| accepted