Answered
Is there a way to extract the name of a field of a struct as string
Hi, the following gives a string array with the fieldnames of the struct: A.a123 = 1 A.bbb = 2 B = string(fieldnames(A)) pi...

7 years ago | 0

Answered
Lab 04 - What to do
What to do? This is easy: Read the instructions, read the documentation site of Matlab, make an effort and try it on your own. ...

7 years ago | 0

Answered
ga algorithm with vectors
Hi, check this example in the documentation: https://de.mathworks.com/help/gads/solving-a-mixed-integer-engineering-design-pro...

7 years ago | 0

| accepted

Answered
Signal Processing Feature Extraction in regards to Siren Detection
Hi, your question is nearly unanswerable. You ask very unspecific and we do not know what you already did. What kind of sirens ...

7 years ago | 0

Answered
I can not zero my transfer function
Hi, i assume you want to use zero instaed of zeros. The first is for control - the second creates an array of all zeros, which ...

7 years ago | 0

Answered
mean() is giving me an error, when when I use the test code Matlab suggests
Hi, if you work with R2018a you should use the documentation from R2018a instead of R2018b. Work through the correct documentat...

7 years ago | 1

| accepted

Answered
Multi Variable Non-linear Curve Fitting in MATLAB
Hi, i suggest to model this as a system of 4 equations with the 15 unknownse and use . 3 equations to calculate the tau(i) valu...

7 years ago | 0

Answered
how to plot the graph with the required data
Hi, as Madhan suggested you can use piecewise function. If you do not have access to Symbolic Math Toolbox (which is needed for...

7 years ago | 0

| accepted

Answered
How do I make a vector where the entries are months and years?
date = datestr(join([string(repelem(2006:2012,1,12)'),string(repmat(1:12,1,7)')],2),'mmm-yyyy')

7 years ago | 0

Answered
In need of decreasing exponential smooth curve
Your linspace call will lead to 10 results calculated in the interval of 0...1. If you leave the 10 away, the standard is 100 va...

7 years ago | 0

| accepted

Answered
Why is the reported accuracy of the Classification learner app very low (51%), while in the scatter plots, no incorrect model predictions are reported?
Hi, the red area in the confusion matrix tells us, that there were 4433 times when the predicted class was 1 and the true clas...

7 years ago | 0

Answered
Type 1 Cosine Transform
Hi, the option 'Type' was introduced in R2017a - see the release notes for Signal Processing Toolbox. To avoid this kind of is...

7 years ago | 0

Answered
How can I go about calling another function and estimating a solution?
Your new script: A = [3, 123456789, 8, 5; 2, 13,...]; b = [246913625, ...]; [x, det] = single(nvgss(A,b)) Best regards Step...

7 years ago | 0

| accepted

Solved


Equal to their cube
Tell me three real numbers that are equal to their cubes?

7 years ago

Solved


Solve the set of simultaneous linear equations
Given this pair of simultaneous linear equations: 2x + 3y = 23 3x + 4y = 32 Find the solution set (x,y)

7 years ago

Solved


Add a row of zeros on top of a matrix
Given a matrix, insert a row of zeros as the top row.

7 years ago

Solved


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

7 years ago

Solved


Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.

7 years ago

Solved


Remove the Zero
Given an array n, remove all zeros

7 years ago

Solved


y equals x divided by 2
function y = x/2

7 years ago

Solved


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

7 years ago

Answered
matlab results grouped question
Hi, i assume you have the results in a form of: res1 = [0.3151; -0.3904] res2 = [0.3412; -0.3416] res3 = [0.3581; -0.2836] ...

7 years ago | 1

| accepted

Answered
convert my code ; Plot using ode function
Hi, try: solve_E function solve_E initial_E = 0; time_range = [0, 4.4]; % Constants beta=5; alfa = 2.*beta/(beta+1); ...

7 years ago | 0

Answered
Surf dimensions do not agree. Help!
Hi, the reason for your problem is: SNRR: 1x3 MV_raw: 1x11 Median: 3x10 This does not work. Either change MV_raw to 1x10 o...

7 years ago | 0

Answered
solving variable in exponential equation
syms t a = 600; r = .10; y = 600; eq = y - a * (exp(r*t)) == 0; tsol = solve(eq,t)

7 years ago | 0

Answered
Sir, i tried to run my code but it showing error .how to fix the error.
Hi, hamming is a built in function. Do not name your scripts with names of built in functions, because your script shadows the ...

7 years ago | 0

| accepted

Answered
Calculating young's modulus from stress strain curve
Hi, since this is a linear problem the best and most elegant way to solve this is mldivide. This will solve your problem in a l...

7 years ago | 0

| accepted

Answered
Replace missing values in a row with the set of all possible values in that row for a data table.
Hi, the following script should do what you want: % set options and import data opts = spreadsheetImportOptions("NumVariables...

7 years ago | 0

| accepted

Answered
Solving set of time-dependent differential equations using ode45
Hi, try: % Defining constants Co = 0.16; H = 3.9; S = 380; cb = 0.6; ct = 0.6; ab = 4*1.095*0.25; at = 4*2.125*2.8; ab...

7 years ago | 0

| accepted

Answered
solve trigonometrical equations with input range
Hi, fsolve solves nonlinear systems. sind and cosd accept degrees as input arguments. Define your system like shown in the exam...

7 years ago | 2

| accepted

Load more