Answered
for構文で算出した複数の解を一つの行列の行に羅列するにはどうすればよいでしょうか。
一つの行列が、一列のベクトルという意味でしたら、以下のコードではいかがでしょうか? syms Z1 Z2; n = 0; for i=0:0.01:3.9 n = n+1; Z1=1+i; a1=(Z1*sin(Z1)-...

meer dan 5 jaar ago | 2

| accepted

Answered
1つの図の中に2つのカラーバー(カラーマップ)を存在させる方法
こちらは使えないでしょうか? <https://jp.mathworks.com/matlabcentral/fileexchange/52505-newcolorbar-multiple-colormaps-in-the-same-axes>

meer dan 5 jaar ago | 1

Answered
外部のファイルを何枚か読み込んむ時、実行する際に毎回ファイル名を変えるのではなく、ループで連続して実行することはできますか。
ご質問の意図を、「一つのプログラムを一回実行し、この中でループを使って複数の画像ファイルを取得したい」と解釈しました。 dirコマンドを使うことで、複数のファイルの情報を取得できます。例えば mylist = dir('*.m') n...

meer dan 5 jaar ago | 3

Answered
コロン関数でインクリメントした数列から,一致する要素の検索の仕方がわかりません
1.175に見えるデータの内部表現を16進表現で見てみると >> format hex >> C(16) ans = 3ff2cccccccccccd >> D(36) ans = 3ff2cc...

meer dan 5 jaar ago | 1

| accepted

Solved


Connect blocks in a model
Connect the blocks in the model to produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/connect-blocks...

bijna 6 jaar ago

Answered
配列内の要素を行ごとに演算する方法を教えてください
是非無償で利用できる <https://jp.mathworks.com/training-schedule/matlab-onramp.html MATLAB 入門> <https://jp.mathworks.com/training-schedul...

ongeveer 6 jaar ago | 2

Solved


2倍してみよう - ここからスタート!
初めにこの問題を試してみよう。 入力としてxを与え、それを2倍して結果をyに代入せよ。 Examples: Input x = 2 Output y is 4 Input x = 17 Output y is 34 ...

meer dan 6 jaar ago

Solved


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

meer dan 6 jaar ago

Answered
三次元行列をslice関数でイメージ表示させたのですが、中を透過させたいです。
簡単にお試しになるなら、これではどうでしょうか。 [x,y,z] = meshgrid(-2:.2:2,-2:.25:2,-2:.16:2); v = x.*exp(-x.^2-y.^2-z.^2); xslice = [.8,2...

ongeveer 7 jaar ago | 5

Solved


Compute the step response of a DC motor
Compute the step response of a DC motor shown below <<http://blogs.mathworks.com/images/seth/cody/dc-motor.png>> The param...

meer dan 8 jaar ago

Solved


Counting pulses in a signal
Count the number of pulses that are the result of summing each pulse generator block. Pulse Generator blocks produce a recurr...

meer dan 8 jaar ago

Solved


Add damping to a mass spring system
Model an ideal mass-spring-damper system shown below where the spring is initially stretched. <<http://blogs.mathworks.com/im...

meer dan 8 jaar ago

Solved


Make a low pass filter
Make a first order low pass filter that will filter out the high frequency oscillations for the given input signal. The cut-off ...

meer dan 8 jaar ago

Solved


Model a falling body
An object is falling freely from a height of 22 meters under the force of gravity. <<http://blogs.mathworks.com/images/seth/c...

meer dan 8 jaar ago

Solved


Model a mass spring system
Model an ideal mass-spring system shown below where the spring is initially stretched. <<http://blogs.mathworks.com/images/se...

meer dan 8 jaar ago

Solved


Produce a Fibonacci sequence
Construct a diagram that generates the Fibonacci sequence: 1, 1, 2, 3, 5, 8, 13, 21, 34.....up to 377 The Fibonacci sequ...

meer dan 8 jaar ago

Solved


Make a full wave rectifier
Produce a full wave rectifier waveform for the given sine wave source. For a sine wave input, the output of the full wave rec...

meer dan 8 jaar ago

Solved


Model a simple pendulum
Model a simple pendulum of length 200cm with bob of mass 100g and plot the position in degrees. The pendulum starts at 30 degree...

meer dan 8 jaar ago

Solved


Make a half wave rectifier
Produce a signal that outputs the given sine wave source when it is greater than zero and outputs zero when it is less than zero...

meer dan 8 jaar ago

Solved


Produce a sine wave
Produce a sine wave with amplitude 3: <<http://blogs.mathworks.com/images/seth/cody/sine-eqn.png>>

meer dan 8 jaar ago

Solved


Add offset to a signal
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-offset-eqn.png>> You should see a downward...

meer dan 8 jaar ago

Solved


Produce a cosine wave
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/cosine-eqn.png>>

meer dan 8 jaar ago

Solved


Add a block to a model
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-block-eqn.png>> In this case, the slope of...

meer dan 8 jaar ago

Solved


Sum of a vetor
y = vectorsum(x)

bijna 9 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 9 jaar ago

Solved


Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

ongeveer 10 jaar ago

Solved


Making change
Given an amount of currency, return a vector of this form: [100 50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.01] Example: Input a = ...

ongeveer 10 jaar ago

Solved


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...

ongeveer 10 jaar ago

Solved


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

ongeveer 10 jaar ago

Solved


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

ongeveer 10 jaar ago

Load more