i wan to generate the random number between two number with condition
If your second column has values equal to 40% of the first, then they are not random. You can vectorize this in the following fo...

3ヶ月 前 | 1

| 採用済み

How to determine the value of a matrix?
What you have is an integer matrix factorization problem, which is a rather complex topic. Main points that you have to take in ...

3ヶ月 前 | 0

| 採用済み

matlab code for musical note recognition based on frequency
To really undestand the method, first try to define how exactly you gonna get the frequencies. Your main steps are : Define you...

3ヶ月 前 | 0

| 採用済み

Converting Cartesian Coordinates to Binary image
This is an general example you could use: Cartesian = [ 10,1; 15,10]; imSize=20; binaryImage= false(imSize)...

3ヶ月 前 | 0

chirp plot(i dont know what`s wrong plz help me)
Your code had some errors in respect to element-wise operator (^ instead of .^). Also you use the old time variable for the seco...

3ヶ月 前 | 0

How to Adjust x axis plot values in Matlab?
Use the xticks and xlim functions: M= [0.47 0.49 0.50 0.50 0.51 0.51 0.51 0.51 0.51 0.52 ]; Range= 5:2:23; plot(Ran...

3ヶ月 前 | 0

| 採用済み

Smoothed daily count of each column by applying a moving average filter of length 7
If your table has numeric values, then: c=T{:,6}; yy=smooth(c,7) If your table has string values that should represent numeri...

3ヶ月 前 | 0

7x7 arithmetic mean filter
You can colvolve the image with a filter that will perform the average. In your case it will be something like this: I = randn(...

3ヶ月 前 | 1

Finding values corresponding to row and column index of a matrix
Have a look at the sub2ind function: A = [1 12 23 19 1 13; 2 3 13 34 5 75; 5 22 45 5 1 94; 4 5 68 2 5 17; 2 4 34 1...

4ヶ月 前 | 0

| 採用済み

Signal audio - effect downsampling ?
What exactly do you want to achieve? You see, downsampling the signal alone doesn't increases the frequency of it. This effects ...

4ヶ月 前 | 1

how to extract variables from cell (dot operators)
You don't need to pre allocate since the best models are already in your cell array. I believe what you want may be something li...

4ヶ月 前 | 1

| 採用済み

I want to know how to overcome executable standalone app - image write path error?
The problem is the userpath function. As stated in the error, you can't modify a matlab path in your deployed application, regar...

4ヶ月 前 | 0

| 採用済み

how to manipulate Recursive function parameters ?
You didn't post the whole function, but regardless of this: It is possible to call a function without passing all the parameters...

4ヶ月 前 | 1

| 採用済み

Finding the point before landing
You used the function, not the calculated variables to find the index. Your point definiton was also a bit off. This version of ...

4ヶ月 前 | 0

How to produce a scatter plot with smooth line for this plot?
Those smooth lines are interpolations between the given points. For you to have a similar result, what you need to do is find an...

4ヶ月 前 | 0

| 採用済み

Not enough input arguments.
Your Model_Inc function is not correct written, since it always return zero for a dummy variable you created in the beggining. I...

4ヶ月 前 | 0

keep element greater than immediate previous element
This loops does what you want: x = [1 2 3 4 3 2 3 4 6 8 5 5 6 8.5 9 11 12 ]; m = length(x); keep = [x(1)]; discard =[];...

4ヶ月 前 | 0

| 採用済み

fmin additional variables ( are vector)
Your first attempt was right [X fval exitflag output lambda grad hessian] = fmincon(@(x) fun(x,g_14,k_4) , x0, A, b, Aeq, beq,l...

4ヶ月 前 | 1

| 採用済み

Store user input data into matrix
Your loop position was wrong and you should save values as strings, not cells. This version of your code works: n=2; filename=...

4ヶ月 前 | 0

| 採用済み

How to solve a system of equations when multiple parameters changes
A for loop work, maybe you had some trouble with the indexes w_1=[1,2]; w_2=[2,3]; w_3=[3,3]; w_4=[4,5]; w_5=[5,6]; w_6=...

4ヶ月 前 | 0

| 採用済み

Grouping sequence within interval
Something like this should do the trick for you V1 = [0.73 0.74 0.77 0.78 0.79 11.17 11.18 11.19 11.20 11.22 11.23];...

4ヶ月 前 | 0

| 採用済み

How do I round off the answer for the depth to within 2mm?
If you want to round to a specific unit (m, mm, etc), you can do this by just adding an extra parameter to the round function wi...

4ヶ月 前 | 0

| 採用済み

How do I make a scatter 3D plot move towards a line
It mostly depends of what points should move (only neighbours or all of them), but after you decide it you can calculate the clo...

4ヶ月 前 | 0

Particle size calculation from given image
The size for each particle is a task which is extremely hard to automatize, you will always get some error due to different ligh...

4ヶ月 前 | 0

Mean absolute value for ecg signal
Your code is okay with exception of the length. If you have a sampling rate of 250 Hz (or, in another way of expression, values ...

4ヶ月 前 | 0

How to work with Matrices that have a great difference in element size (e.g. 1 to 10e+15)?
I don't believe you're facing problems due to the difference of magnitudes, but rather because your problem may be very ill-cond...

5ヶ月 前 | 0

| 採用済み

Nonlinear multiobjective optimization - Gamultiobj - Options
If you write your optimization problem like this: x = gamultiobj(fun,nvars) You're basically telling the optimizer that you ha...

5ヶ月 前 | 0

How to generate lines between a fixed point and evenly spaced points on a line
If I understood your question right you mean something like this? clc; xlim([0, 100]); ylim([0, 100]); hold on Ax=0; Ay...

5ヶ月 前 | 1

| 採用済み

PLOTTING A SINE WAVE USING TRIGNOMETRIC FOURIER SERIES
You have an analytical waveform, so you can generate it for 4 cycles without using any fourier function. Then, if you use the ff...

5ヶ月 前 | 0

how to imput a matrix end outpur four arguments
The main function creation in matlab has the following form: function output = FuncName(input) output = f(input) end Input...

5ヶ月 前 | 0