Respondida
BPSK modulatorブロックの搬送周波数について
おそらく BPSK Modulator Baseband ブロックに関するご質問かと思いますが、このブロックは名称のとおりベースバンド信号を生成します。このため、ある搬送波周波数 [Hz] のBPSK信号を生成するには、このブロックの出力を別途 でアッ...

8 meses hace | 0

Respondida
Vector to Indicate if Data equals the Maximum by group
How about the following? data = [1;2;3;6;5]; group = [1;1;2;3;3]; idx = splitapply(@(x) {x == max(x)},data,group); idx = c...

8 meses hace | 0

Respondida
２つ以上の同じ要素を持つ列を削除
arrayfun 使った別の方法： % 配列の一例 (行・列数は任意) A = [... 1 2 3 4 5;... 2 3 4 4 6;... % -> 削除 7 5 5 5 2;... % -> 削除 0 9 7 8 1];...

8 meses hace | 1

Respondida
Finding the value of the below curve
If you have a Signal Processing Toolbox, pulsewidth function will be a simple and effective solution.

8 meses hace | 0

Respondida
finding the slope of each segement in a fitted curve
By applying interpolation, you can decrease and, as a result, the deviation will be more accurate. The following is an example...

8 meses hace | 1

Respondida
Plot summation series | For Loop | Creep Strain
How about the following? s = 100; % constant tensile stress, (MPa) t = linspace(0, 10000)'; % duration of applied stress on sp...

8 meses hace | 0

Respondida

8 meses hace | 0

Respondida
Finding the number of edges per each node in a graph
Please reffer to the degree function.

8 meses hace | 0

Respondida
Convert a table vector of 31 by 13 elements to matrix of 13 by 31.

8 meses hace | 0

Respondida
Inserting a column of repeated values
How about the following method? % Sample data load('outdoors.mat'); T = timetable2table(outdoors); T.Humidity([1, 6, 15]) = ...

8 meses hace | 0

Respondida
Combination of DATA in arrange manner
How about the following? % Create D and E D = -0.02+0.0001*(0:70); E = 160:200; % Apply meshgrid function [xg, yg] = mesh...

8 meses hace | 1

Respondida
Find out the cell index from matric values
How about using histcount2 ? The following is an example: % Sample data A = [... 0.7, 0.1;... 0.1, 0.2;... 0.8, 0.6;...

8 meses hace | 0

Respondida
Best way to get rid of/ prevent function from creating complex numbers?

9 meses hace | 0

Respondida
Create all permutations of 1x13 vector used for Leave-p-out Cross-Validation
How about the following? Though this generates 78x11 (instead of 13x78 which you expected), the result contains all possible co...

10 meses hace | 0

Respondida
return value of [ ] for an 'if' or 'for' function
How about the following? function output = yourFunction(input) if isempty(input) output = 'unknown'; elseif isa(input,'n...

10 meses hace | 0

Respondida
How to speed up my code?
Avoiding for-loop will enhance computational efficiency. For example, the first for-loop: for i=1:n2 K(:,:,i)=M(:,:,i); en...

10 meses hace | 0

Respondida
How to use 'mkdir' command to make folders labelled as 1, 2, 3 till 100 using for loop in matlab code?
How about the following? rootFolder = 'E:\P2'; for kk = 1:100 subFolder = num2str(kk); folderPath = fullfile(rootFolde...

10 meses hace | 0

Respondida
How to calculate the number from a database
How about the following? List = arrayfun(@(x) x.country, TV,... 'UniformOutput', false); [Group, Country] = findgroups(Li...

alrededor de 1 año hace | 1

Respondida

find 関数を使う下記の方法ではいかがでしょうか？ % A の2列目が >= 1 となる最初の行番号を pt として取得 pt = find(A(:,2) >= 1, 1); % pt行目から最後までの行を配列 B として保存 B = A(p...

alrededor de 1 año hace | 1

Respondida
Assign number to certain value in cell
How about using ismember function? Like: % Sample cell arrays A = {'As', 'C', 'H', 'N'}; B = {'As', 'As', 'N', 'N', 'H', 'H',...

alrededor de 1 año hace | 0

Respondida
replacing numbers with alphabets/letters in a matrix
One possible straight-forward solution would be like this: M = readmatrix('testfile_0.50.xlsx'); C = cell(size(M)); idx = i...

alrededor de 1 año hace | 0

Respondida
Assign partnames to two different tables with measurement datas
I wouold recommend using innerjoin or outerjoin functions for this kind of task.

alrededor de 1 año hace | 0

Respondida
Is there an alternative to eval in a struct?
I believe it's better to arrange the data as a table rather than the deeply nested structure. How about the following? subject ...

alrededor de 1 año hace | 1

Respondida
Need help asking for an input sentence
To input a text, you should use 's' option, like: N = input('what is N?: ') A = input('give me a sentence!: ','s');

alrededor de 1 año hace | 0

Respondida
MATLABのウィンドウの長さとは、何を意味しているのでしょうか。

alrededor de 1 año hace | 0

Respondida
Storage results in an array
Instead of uisng for-loop, you can do this task by vectorizing, like: x = [2, 3, 4, 5, 6]; y = x + 2; idx = x > 4; y(idx) = ...

alrededor de 1 año hace | 0

Respondida
3次元から2次元に形状変換

alrededor de 1 año hace | 1

Respondida

alrededor de 1 año hace | 0

Respondida
How can I write a csv file by row or by column
How about the following? % Sample data (1-by-3 cell array) output = {... uint8(randi([0 255],100,1)),... uint8(randi([0 ...

alrededor de 1 año hace | 0

Respondida

figure を作成する際にあらかじめ figure ハンドルを取得しておくことで、gcf を使わなくてもそれぞれの figure を操作可能です。例えば、以下のようにすれば 2 つの figure に対するハンドル hFig1, hFig2 を取得できま...

alrededor de 1 año hace | 1