Answered
How to extract the name of the column and row from a table?
clear clc m=rand(10,7) rowNames = {'C1','C2','C3','C4','C5','C6','C7','C8','C9','C10'}; colNames = {'N1','N2','N3','N4','N5...

3 years ago | 1

| accepted

Answered
why isn't image changing when it is supposed to?
cc starts at 1. fstep is 3. mod() of an integer by 3 is going to be an integer. You compare that integer to fstep/2 which is ...

3 years ago | 0

Answered
How would you write this equation in Matlab?
Pi = sym(pi); syms L x y W syms n integer syms UpperBound assume(n >= 1); part1 = ((-1)^(n+1) + 1)/n; part2 = sin(n*Pi...

3 years ago | 0

Answered
Total intra-cranial volume
Generally speaking, you start by segmenting the volume of data to figure out what is inside the cranium or not, creating a volum...

3 years ago | 1

Answered
I have a problem with the name "best" in my code
After your fmincon call: The best location is in the x variable. The function value at the best location is in the fval variabl...

3 years ago | 0

Answered
How to update a class property inside ode45 that depends on ode45's results?
You do not do that. Nothing like that is suitable for any ode*() function, all of which depend upon the ode function always retu...

3 years ago | 0

| accepted

Answered
Reshaping a column vector into a matrix.
elements_in_first = 2 * 500001 * 1 elements_in_second = 5 * 500001 elements_in_second / elements_in_first Your second array h...

3 years ago | 0

Answered
How can i get source codes for Pulse Waveform Analyzer Application ?
The implementing function phased.apps.internal.WaveformViewer.pulseWaveformAnalyzer is a .p file. In order to get the source c...

3 years ago | 0

Answered
Initial conditions in a fitting
coeffnames(ft) will tell you the names of the model coefficients. The order they are displayed in is the same order as you shou...

3 years ago | 1

| accepted

Answered
How to read comma separated .txt file in matlab R2018a?
S = fileread(FILENAME); S = regexprep(S, '^#A-R=', '', 'lineanchors'); data = cell2mat( textscan(S, '%f%f%f', 'delimiter', ','...

3 years ago | 0

| accepted

Answered
The problem of plotting
When you plot() a cfit object https://www.mathworks.com/help/curvefit/cfit.plot.htm then you cannot specify multiple datasets to...

3 years ago | 0

Answered
fluctuations with specified mean velocity and amplitude
You say working with velocity, which is a vector, but you only have a single coordinate. If you want your velocity functuations...

3 years ago | 0

Answered
How to transform a Group object to a Contour object?
The problem is not exactly that contourm() returns a hggroup . hatchfill2() processes hggroup without difficulty, recursing to h...

3 years ago | 0

| accepted

Answered
Find the Fourier transform of exponentially increasing and exponentially decaying signal using MATLAB.
That is not straight forward. You will need to follow logic such as https://www.tutorialspoint.com/fourier-transform-of-two-side...

3 years ago | 0

Answered
bsxfun @times the row sum and @rdivide the (1./row sum) does not produce same results
A./B is expected to be higher accuracy than A.*(1/B) for scalar B. Consider for example B = 10 then (1/B) is 1/10 which is a ...

3 years ago | 1

Answered
Solve inequality in MATLAB (with answer probably be x could be any real number)
Over real values, all of the solutions are > 0 in both branches. Over imaginary values, the first branch has some non-positive ...

3 years ago | 1

Answered
How to know the data set after augment?
But I dont know how to find the addition data after augment? Because I checked in workspace but not found. Augmented data is ge...

3 years ago | 0

| accepted

Answered
Surprising behavior in randsample
The algorithm for without replacement changes when 4*k > n IIRC that is the point that the Fisher-Yates Shuffle stops being use...

3 years ago | 0

Answered
Compare two different size arrays
Remember when you use a tspan that consists of exactly two elements, that the ode*() functions choose which times to report for....

3 years ago | 0

Answered
help i dont know why my code isnt working
b = 2*π; % upper bound of interval π is a permitted character in MATLAB only in comments character vectors string objects N...

3 years ago | 0

Answered
My Grading program is not printing the answers onto the text file
if Ave+1.5*SD>Scores>=Ave+0.5*SD In MATLAB that is parsed as if all((Ave+1.5*SD>Scores)>=Ave+0.5*SD) That is, Ave+1.5*SD>Scor...

3 years ago | 0

Answered
limit the -ascii output to two decimal points
You cannot do that -- the -ascii flag always outputs a number of digits . However you can format long g PathName = '.'; filena...

3 years ago | 0

Answered
how to iterate cell array?
You say that N1 is 100 x 1. You have iter = 1:100 so on the second round, iter will become 2. You have all_N1{i,iter} but iter...

3 years ago | 0

Answered
how to create a vector for more than one frame of data?
Generally speaking, if you have samples that are not marked with a corresponding time, but you know the starting time (such as 0...

3 years ago | 0

Answered
Solve a group of Symbolic Equations
You have four equations in 8 unknowns. When you call solve() you should specify the names of the variables to solve for. solve()...

3 years ago | 0

Answered
my minboundsphere attempt is not working, any suggestions on how to fix?
C = xlsread("MINBOUNDCMATRIXDATA.xlsx"); Your file has 19 variables. The first two of them are text. The first output for xlsre...

3 years ago | 0

| accepted

Answered
show symbol in command window
In the time since the question was originally asked, an additional possibility has arisen. If you are using the Symbolic Toolbo...

3 years ago | 0

| accepted

Answered
function plus timer in background
When you run() a script inside of a function, the workspace of the script is the workspace of the function. When you run() a ...

3 years ago | 0

| accepted

Answered
Can I call index of max function out and before the function ?
Only if all of the "something" are already known at the time you need the index for g, in which case you max() before the loop. ...

3 years ago | 0

| accepted

Answered
I can't running curve in matlab
x = t.^2/0.02; y = (t.*(t+0.43))/0.08; z = (t.*(t+0.47))/0.07;

3 years ago | 0

Load more