Solved


N-th Odious
Given index n return n-th <https://oeis.org/A000069 odious number>.

7 years ago

Answered
Why wont it output index?
Just use: [MAX_VAL, INDEX] = min(x) % instead of max() Good luck.

7 years ago | 0

Answered
How to add x labels, y labels, z label and title to a surface plot
title('My plot 3D ....') all of them can be put at the end of your code. Good luck.

7 years ago | 1

Answered
How to add x labels, y labels, z label and title to a surface plot
Just simple as: xlabel('X'), ylabel('Y'), zlabel('Z') Or you can add some notes xlabel('xx notes'), ylabel('yy notes'), z...

7 years ago | 2

| accepted

Answered
How can I save a PDF without margins
Hi, you can try to use this option: print('-fillpage','FillPageFigure','-dpdf') good luck.

7 years ago | 0

Answered
Why wont it output index?
Hi, You have done everything correctly except for a couple of minor flaws. Here is the corrected code: function output = MyM...

7 years ago | 0

| accepted

Answered
How can I Import complex vector to SIMULINK to analyze it using spectrum analyzer?
Hi, In this case, the solution can be to feed your model with the real part and imaginary part of your input data (complex va...

7 years ago | 0

Answered
Sorting a list of numbers from one file then writing to a second file
Hi, Here is the complete solution of your exercise: x = load('random.txt'); X1=x; XX = sort(x); % This sorts all values of ...

7 years ago | 0

| accepted

Answered
non integer Delay in simulink
hi Muhammad, Your D1 does not contain any delay and your initial set contant values for D1, D2, D3 (.6, .2, .2) differ from ...

7 years ago | 0

Answered
how to set the home botton size
Hi, You can try this!

7 years ago | 0

Answered
How to construct matrix for values have index?
Hi, In this case, one of the possible easy solutions is to introduce new index series for alpha w.r.t its given values. As yo...

7 years ago | 0

Answered
Improved Eulers Method Loop
Hi, You have overlooked the loop iteration and time space. Here is the corrected code: % improved eulers method for stped s...

7 years ago | 0

Answered
How to find the mean peaks in positive axis
Hi, Here is a simple and fast answer to peak only positive peaks of your data: Y = DATA; % This is your data X = findpeaks...

7 years ago | 1

Answered
Filtering of 60 Hz signal - not working
Hi, Here is what I have tested by changing in one point of your code and seen that it is working quite well now: multiples...

7 years ago | 0

| accepted

Answered
How to change the position of inset plot
hi, This example shall help to solve this exercise Good luck.

7 years ago | 0

| accepted

Answered
extracting matlab signal completely in simulink for processing it in MATLAB function block
hi, As I understood your exercise, you can employ this buffer example approach given here Good luck.

7 years ago | 1

Answered
How can I use different inputs for each "parameter estimation" experiment?
Hi, The time series as an input signal for your simulink model can be achieved via input source blocks, i.e. [From Workspace]...

7 years ago | 0

Answered
how cdsc values?
hi, In your exercise, it is easier to use: real() and imag() to separate out the real and imag parts of E. E.g. [x, y]=meshg...

7 years ago | 0

| accepted

Answered
How to make a function that uses Runge-Kutta Method
Hi, Here is the corrected code: function [x, y] = FunctionBeta_Executor(F) % Note that F function expression is defined v...

7 years ago | 2

| accepted

Answered
Correlation between two different matrices
Hi, In my opinion, the image processing can be a good possibility to find out how far they match by using, e.g.imread() and c...

7 years ago | 0

| accepted

Answered
Graph each side of the equation
Hi To find the value of r use: solve() in symbolic math or write a small code with the Newton Raphson method. To plot bothe s...

7 years ago | 0

Answered
Error in plotting the function
Hi, Note that with the plot command you can plot only real parts of your complex valued data. To plot imaginary parts of you...

7 years ago | 0

Answered
Read a very large .csv file, split into parts and save each part into a smaller .csv file
Hi, The answer is rather simple. You can take out all dates with string specifier: %s. E.g. file called: DATA_date.txt DATE ...

7 years ago | 0

Answered
get coefficients and confidence intervals of polynomial surface from fitting to data with error
Hi Matan, You can adjust fit options with fitoptions() function with respect to the error contraints of your exercise. Here i...

7 years ago | 0

Answered
Linear regression with formulas
Hi, Glad that I was of some help. Pl., click accept of my proposed answer. To plot your lin. reg model, use the following sim...

7 years ago | 0

Answered
Linear regression with formulas
Hi, Here is the solution: function [a, b] = linear_regression(x,y) a = sum((x-mean(x)).*(y-mean(y)))./sum((x-mean(x)).^2)...

7 years ago | 0

| accepted

Answered
What is the best way to set up a nested for loop?
Hi Steven, Here is the complete solution of your problem: clearvars %% Part 0. Loading data load('Triplets'); load('F_point...

7 years ago | 0

Answered
What is the best way to set up a nested for loop?
Hi Steven, You loop is not doing much. SInce you are saving the last value from your nested loops. If this is what you want the...

7 years ago | 0

Answered
How to plot a function over a time interval in specific time increments?
Hi, Here is the plain answer: xt = @(t) sin(pi*t); dt = pi/100; t = 0:dt:20; plot(t, xt(t))

7 years ago | 1

Load more