Community Profile

photo

Jon


147 2013 年以降の合計貢献数

連絡する

Jon's バッジ

  • First Review
  • 3 Month Streak
  • Thankful Level 2
  • Knowledgeable Level 3
  • First Answer

詳細を表示...

貢献した分野
表示方法

回答済み
Dice rolling & loops
You can generate a vector with 10 dice rolls using rolls = randi(6,1,10) You can determine how many of the 10 rolls are eithe...

21日 前 | 0

回答済み
Integration via trapezoidal rule in various sections of the same array
Assuming you can find the indices of your ranges by some means, e.g. findpeaks, then make an array of the ranges, for example r...

21日 前 | 2

| 採用済み

回答済み
How to compute the partial derivative
As @Kalyan suggested you could use the symbolic toolbox if you have it. Otherwise you could just go to the definition of a parti...

21日 前 | 0

| 採用済み

回答済み
Birthday problem with 3+ people?
Here are some ideas that you might use To generate random birthdays for groups of 50 people - look at randi, ignoring leap year...

21日 前 | 2

| 採用済み

回答済み
Fix one curve, while change another
Here is one approach. You can modify the YData property of the second curve. Here is a little example x = 1:10 y1 = x; y2 = x...

22日 前 | 1

| 採用済み

回答済み
Accessing timetable data using user defined column
You can do something like this v = T.value(T.time_lin==0.4)

22日 前 | 0

| 採用済み

回答済み
Solving first order differential equation
Your verbal problem description in which you call L and ouput, but in fact you know what it is, somewhat confuses me, but in any...

22日 前 | 0

回答済み
Battery model - using vector concatenate to collate individual cell outputs
I have never experienced any issues with combining individual signals with a mux. The individual signals retain their original v...

22日 前 | 0

回答済み
I can't find solution of sinusoidal function's by numerical methods
I assume that you are trying to approximate the integral of f(x) between x = a and x = b. You are initializing x incorrectly. Y...

25日 前 | 1

| 採用済み

回答済み
How to replace complex numbers in a column vector with 0.000+0.000i ?
Suppose you have a complex vector (the result of your fft) lets call it x. If you want to replace some elements of it with zero ...

26日 前 | 1

回答済み
how can i answer how to plot signal, and its frequency and phase. Then add a noise signal and plot the same parameters?
Here are some ideas to get you started If you just want to visualize V1 as a function of time you can assign a vector of values...

29日 前 | 0

| 採用済み

回答済み
Plot over time milliseconds
I'm not quite clear on what you are trying to accomplish but it looks like some how you want to see the plot continue to evolve ...

約1ヶ月 前 | 1

| 採用済み

回答済み
How to save MPC (model predictive controller) to be used later on? The error message is attached.
A way around this problem is to: 1) Design your controller 2) Export your controller to the workspace 3) Save your controlle...

約1ヶ月 前 | 0

回答済み
How to save the previous figure generated by function'step(H,x)'
You need to create a new figure just before calling step clear all vars clc fs = (5/2)*1e6; % Symbol rate (Hz) fc=...

約1ヶ月 前 | 0

回答済み
Problem with writing this function
You may have some other issues also, but assuming that you have defined x as a column or row vector and you are expecting to cal...

約1ヶ月 前 | 1

| 採用済み

回答済み
Find a column number referring to an array
You could use idx = find(V==point(1)) or you could check the column the second element of point matched the second row of A us...

約1ヶ月 前 | 0

| 採用済み

回答済み
Adding characters to a matrix
I think your problem may just be that you need to put single quotes around the g in the function call so use [varAlongDiag, var...

約1ヶ月 前 | 0

| 採用済み

回答済み
Storing data in Table inside for loop
Looking quickly at your loop structure, it seems that if you want a row for every iteration you must count how many times you ha...

約1ヶ月 前 | 0

| 採用済み

回答済み
Extracting user defined data
If you type doc readmatrix on the command line you will get all the documentation, including examples for using this function. Y...

約1ヶ月 前 | 0

| 採用済み

回答済み
Any method to soften harsh edges of a plot?
If you have reason to believe that the data does not really pass through those points (that they are just noise) then MATLAB off...

約1ヶ月 前 | 0

回答済み
Extracting user defined data
You can use readmatrix to get the data out of the spreadsheet. You can use interp2 to do the interpolation.

約1ヶ月 前 | 0

回答済み
Unusual arrangement of plot
I assume when you say "Red line is plotted by matlab but it is unusal and expected to be blue line" you mean that you expect t...

約1ヶ月 前 | 0

| 採用済み

回答済み
Transformation of the Matrix in a Loop
Sorry, I inadvertently deleted my earlier response. So I'm assuming you want an array with y1 x1 z11 y2 x2 z21 y3 x3 z31 . ...

約1ヶ月 前 | 1

回答済み
How to reset a MultiDimensional Array to allow a fresh building of the MDA
There may be some cleaner way to do this, but I would suggest that one approach would be to use an if statement to test if MDA i...

約1ヶ月 前 | 0

| 採用済み

回答済み
ode45 unexpected behaviour for initial conditions = 0
I think you have a basic conceptual error in your ode definition. You should have an overall state vector x = [x1;x2] whre x1 =...

約1ヶ月 前 | 0

| 採用済み

回答済み
How to set lower and upper bound for only one of the output variable in lsqnonlin?
I can't follow all of the details of what you presented but regarding your initial question: How can we write this in case we w...

約1ヶ月 前 | 1

| 採用済み

回答済み
matrix with vectors: multiplication and generation issue
Z is a collection of 2d arrays, where the first index selects a particular 2d array. The tricky thing is that MATLAB considers ...

約1ヶ月 前 | 1

回答済み
Plotting 4-D arrays in 2-D graph
The axis command and title command are not part of the plot command but you continued them on the same line without a separator....

約1ヶ月 前 | 0

回答済み
Read text file - ignoring lines starting with specific character.
I'm not sure why you would want to read in numerical data as strings. You can read in the data in your files using (assuming fo...

約1ヶ月 前 | 0

回答済み
Generate one plot containing the monthly log return time series?
I assume your data with the log return values, or the values you will calculate them from, is in some sort of file, for example...

約1ヶ月 前 | 0

| 採用済み

Load more