Answered
mean of each column entry
I'd look into grpstats. See this example. meanA = grpstats(colA,colB,'mean') Another option is to use groupsummary. This might...

5 years ago | 0

| accepted

Answered
is it possible to autosave live script?
There is not currently a mechanism for autosaving live scripts. Once you have saved the live script, it will save each time to ...

5 years ago | 0

Answered
PLOTTING THE GIVEN VALUES
Based on what you've shared, I'd probably do the following. t = 0; ta = 0.63; tb = 0.71; tc = 0.5; plot([t,ta,tb,tc]) Y va...

5 years ago | 0

| accepted

Answered
Variables name changed when import Excel datas into Matlab
I'd try something like this. readtable("sampleTable.xlsx","VariableNamingRule","preserve","NumHeaderLines",1) In R2020b, MATLA...

5 years ago | 0

Answered
Problem extracting 2D array from multiple folders
The only way I could get your code to run was to duplicate a portion of your dropbox folder structure (LV4Total/LV_4 and LV4Tota...

5 years ago | 0

| accepted

Answered
Simulink Online ultrawide monitor problem: right 40% of workspace is inaccessible
Please contact customer support.

5 years ago | 0

Answered
How to generate Matlab code in Regression Learner App?
Use the Generate Function option in the Export section (next to Export Model). See here.

5 years ago | 0

Answered
How to specify a path to a file in MATLAB Drive when using MATLAB Online
Are you using MATLAB online? My suggestion is to add the images folder and subfolders to your path. Right click on the folder a...

5 years ago | 1

Answered
Help in replacing values in one matrix with the values saved in another matrix
This is covered in Ch 5 of MATLAB onramp. RNCS(:,end) = frac If you instead want to add frac as an additional column, you coul...

5 years ago | 0

| accepted

Answered
How to view other columns on the same row of a specific column
The second output tells you the index of the max value. Index here means row number. Use that to index the second variable. a=r...

5 years ago | 1

| accepted

Answered
write table into txt file using writetable returns error
It looks like you have a syntax error when you call writetable. You need to separate each input with a comma. You are missing a ...

5 years ago | 0

Answered
find strings between using regexp
Use extractBetween instead. str = '[1ac][d2][k3]' newStr = extractBetween(str,"[","]")

5 years ago | 0

| accepted

Answered
How to write _ in a plot legend?
Set the interpreter to 'none' xxx = {'a_b'}; plot(1:5) legend(xxx,'interpreter','none')

5 years ago | 2

| accepted

Answered
Matlab Grader - using input()
No, it is not possible.

5 years ago | 0

Answered
Can I plot three different group of signals in one XY plane?
Not sure I fully understand what you want. It sounds like you want 3 separate plots in a single figure? If so, look at tiledlayo...

5 years ago | 0

| accepted

Answered
Convert Table to Matrix
My suggestion would be to use the Import Tool. This will allow you to interactively create your import. There is an option to ge...

5 years ago | 1

| accepted

Answered
Image processing course with MatLab
If you think you've found an error with a self paced course, please report it to customer support.

5 years ago | 1

Answered
plot based on Table
My first suggestion is to not convert your data to a cell. If you want to store everything in a single variable, use a table. ...

5 years ago | 0

| accepted

Answered
App Designer Text Area "Too many Outputs"
Your function demorse does not have an output function demorse(wavfile) Yet when you use it, you are telling MATLAB to return ...

5 years ago | 0

| accepted

Answered
Why do I get the error "Check that write permissions are available" using the command writetable?
The error suggests that MATLAB does not have write permission to the specified location. You could try running MATLAB as an adm...

5 years ago | 1

| accepted

Answered
Function saying too many outputs
Notice the orange highlight and red underline in your function? Hover over that to see what the error message is. Try saving yo...

5 years ago | 0

Answered
Find specific coulum with condition in large matrix
A = [1 2 3 4 5 6 7 8 9 10 11 12]; B = A(:,A(1,:)<4 & A(2,:)>7)

5 years ago | 1

| accepted

Answered
how do I compute in Matlab the log likelihood
The equation I used for LL was LL=(Actual_Output.*log(Fit_values)+(1-Actual_Output).*log(1-Fit_values)); % ref: Mertens, et al...

5 years ago | 0

Answered
sort the data of the structure by its date
See the answer to "How to sort a structure array based on a specific field"

5 years ago | 0

| accepted

Answered
contouring of 3 vectors
I found myself bored, so played some more. Challenges (not an exhaustive list) varying number of samples for a given time sta...

5 years ago | 1

Answered
Extra faces in imported geometry
To me, this has more to do with how it was exported in Inventor than how it was imported into MATLAB. Using your *.ipt file, I ...

5 years ago | 0

| accepted

Answered
Add Verices and number to points - Plot
You might want to look into the annotation function. You can find a list of other functions that might be useful in the Annotati...

5 years ago | 0

Answered
Question on datetime Input Format
The trick for me was having to specify a time zone. I'm not sure what timezone it should be so I selected UTC. I found the forma...

5 years ago | 1

| accepted

Answered
"Unable to perform assignment because the indices on the left side are not compatible with the size of the right side." Error when assigning values of a sum to an empty vector.
You are trying assign 100 values to a single entry in c. You need to either specify rows and columns in c that are the same siz...

5 years ago | 0

| accepted

Load more