photo

Takumi


Last seen: environ 3 ans il y a Actif depuis 2018

Followers: 0   Following: 0

Statistiques

All
  • Thankful Level 2
  • Community Group Solver
  • CUP Challenge Master
  • Cody Problems in Japanese Master
  • Introduction to MATLAB Master
  • Solver
  • Knowledgeable Level 4
  • 3 Month Streak
  • First Answer
  • Thankful Level 1

Afficher les badges

Feeds

Afficher par

Question


コンターレベル数とレベル範囲を任意に指定する方法
コンター図においてレベルの範囲とその範囲におけるレベル数(分割数)を指定したいと思っています. 例えば,以下は表示レベル範囲を1e-1*[-1 1],その間におけるコンターレベル分割数を50にしようとしています. x = linspace(-2*pi,...

plus de 3 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
3次元プロットについて
いくつか方法がありますが,簡単なのは4点(閉じるなら5点)を配列にすることです x1 = 0; y1 = 0; z1 = 0; x2 = 1/sqrt(2); y2 = 1/sqrt(2); z2 = 0; x3 = 1/sqrt(2...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
入力引数が足りない原因が分かりません
関数ファイルを実行したのではないでしょうか.関数は,.mファイルに定義した後 E=func1(1:4,1,1) のように使います. 詳細は関数名、入力および出力の宣言を御覧ください.

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
エラーが何行目か知りたいです
以下を参考にスクリプトを作成して実行してみてください。 <https://jp.mathworks.com/help/matlab/matlab_prog/create-scripts.html>

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
2Hz(2つの波)の2つ目の最小値の抽出方法について
①および②を検出するプログラムを作成してみました.以下順を追って説明してみます. まず添付していただいたファイルをテーブルとして読み込みます. %% ファイル読み込み filename = 'sample file.xlsx'; % ファイル名 ...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
コンターマップのカラーバーのラベルの変更
コードを添付してくださりありがとうございます.コードを省略されるのは構いませんが,こちらで実行できるように変数もサンプル値で埋めていただけると非常に助かります. さて,カラーバーの文字列等をあとから変更したい場合は,そのハンドルを保存しておくと良いのです...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
ファイルの名前 一気に変更
ファイル名を変更するにはmovefile関数を使います.また指定文字列を削除するにはerase関数が使えます. 以下のファイル VOI_A_r10p0001.mask VOI_A_r10p0001_1.mat VOI_A_r10p0001_2.ma...

presque 4 ans il y a | 2

| A accepté

Réponse apportée
forループ内で下の階層のフォルダを対象に解析を繰り返したい場合
例えば、今いる階層にexample1とexample2というフォルダがあるとします。 そしてそれぞれのフォルダにはファイルfzdata.xlsxがあるとします。 今いる階層(フォルダがある)からフォルダexample1内にあるファイルfzdata.xl...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
extract the data from graph
l=findobj(gca,'Type','Line'); x=l.XData; y=l.YData;

environ 4 ans il y a | 0

| A accepté

Réponse apportée
finding the error between two curves from a fig
I used the findall function to find out what was plotted. I noticed that some of the lines containing the NaN values were plott...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How can I put legend for some of my curves?
I created a example code. col = [0 ,0 ,0; 255,0, 0 ; 0, 255,0 ; 0, 0, 255; 255,255,0 ;...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How can I draw a complex contour?
[DH1,h1]=(contour(y,x,real(psi1),10,'-k'));

environ 4 ans il y a | 0

Réponse apportée
locating a value of a matrix from another input value
ind = [24,26,26,26,29]; S(1).f1 = rand(1,101); S(2).f1 = rand(1,101); S(3).f1 = rand(1,101); S(4).f1 = rand(1,101); S(5).f1...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Write string and table (in that order) to text file
How about using this function? https://www.mathworks.com/matlabcentral/fileexchange/28600-xlsappend

environ 4 ans il y a | 0

Réponse apportée
アニメーションの速度の制御について
大体の時間があっていれば良いならpause関数で停止させるのが簡単だと思います.ただし,関数を実行する時間を考慮していないので,ずれます. T = 1/50; % sampling rate 0.02s h = animatedline; axis(...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
problem in ploting charts
All parts other than y1 are complex, so the real or imaginary part must be specified. eg. real(X_w)

environ 4 ans il y a | 0

Réponse apportée
Is there a way to lock the cursor on the graph?
How about using the findpeaks function instead?

environ 4 ans il y a | 0

Réponse apportée
Excelファイルへの末尾の追加に関して
File Exchangeに投稿されているこちらのxlsappend関数が使えそうですね.

environ 4 ans il y a | 0

Réponse apportée
How can Specific line and column text file can be read in Matlab?
fname = 'sub1.txt'; fid = fopen(fname); % skip 2 lines for i=1:2 fgetl(fid); end str = fgetl(fid); % get specific li...

environ 4 ans il y a | 0

Réponse apportée
特定の行列のみを取り出して平均を出したい
①配列サイズが異なる変数を一つの変数に格納したい場合,cell配列を使うと良いと思います. A = rand(512,45); B = cell(2,1); B{1} = A(1:10,:); % Aの1~10行目 B{2} = A(3:1...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Using event function to switch between two sets of ODEs
How about conditional switching in a differential equation? clear all; R = 0.5; St =0.01; A = R/St; U = 1; a ...

environ 4 ans il y a | 0

Réponse apportée
Just like displaying coordinates, I want to display row and column number
"info" has two fields and one of fields that named "Target" has line data. So I atempted to use the find function to find an i...

environ 4 ans il y a | 0

Réponse apportée
How to disable default interactivity / datatips "forever"?
Please refer to the following rink. How to set disableDef​aultIntera​ctivity for all axes?

environ 4 ans il y a | 0

Réponse apportée
Problem in Eigen values plot
Using sort function, you can sort the elements of matrix in ascending order. clc; close all clear syms g omega=1.0; D = ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Index in position 1 exceeds array bounds (must not exceed 1). in arrays
Matrix size of “theta” is 1 by 6. So you have to replace theta(i,1) with theta(1,i).

environ 4 ans il y a | 0

Réponse apportée
Passing the values in a fixed format
This is sample code. Is this what you want? x = linspace(0,2*pi,20); v1 = sin(x); v2 = sin(x)/2; v3 = sin(x)/3; V = {v1,v2...

environ 4 ans il y a | 0

Réponse apportée
How can I get a better simplification of my results
syms k m s = [-(3*10^(1/2)*(k*m)^(1/2))/(10*m); (3*10^(1/2)*(k*m)^(1/2))/(10*m)]; assume([m,k],'positive'); s_sign = si...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How separate data from a table and convert every column in vector if this seáration depends on the label 'D' or 'E'?
Using strcmp function, you can get the index that matches the specified string. You can then use the index to find the correspo...

environ 4 ans il y a | 0

Réponse apportée
Surface plot(Z must be a matrix, not a scalar or vector)
First of all, the argument of meshgrid is wrong. 0.1:0.01:0.05←must be greater than 0.1. Second, variavle b1 and a1 has been o...

environ 4 ans il y a | 0

Réponse apportée
凡例の系列名に変数の値を入れたいです
以下のようにしてDisplayNameを設定するのはいかがでしょうか. open_system( 'MPC_SISO_0_block' ) mpc_out = sim( 'MPC_SISO_0_block' ); figure title( 'De...

environ 4 ans il y a | 1

| A accepté

Charger plus