Answered
How to connect my MathWorks accounts?
You'll need to contact customer support. If your campus uses a campus wide license, then your mathworks account must use your i...

5 years ago | 1

Answered
need beginers guide on neural network perceptron classifier
I would suspect the best person to provide you with relevant information would be your instrutor or TA. You can also try searc...

5 years ago | 0

Answered
converting a column of text dates and time to actual day fraction
Convert it to a datetime, and use that as your x value. T = "2021-03-05T19:09:32.840Z"; x = datetime(T,"InputFormat",'yyyy-MM-...

5 years ago | 0

Answered
Problem with Square() for high frequenzies
The issue right now is that when f>=2192, you start getting zero values in your fft results. When you take the natural log of Y ...

5 years ago | 0

| accepted

Answered
Extract every 10th value from the excel file and save into new file
Use indexing (Ch 5 MATLAB Onramp). You'll probably need to load the file into MATLAB (use readtable or readmatrix), copy every ...

5 years ago | 1

Answered
Replacing a string in the txt file from retrieving from a csv file
I'd break this into a couple steps. Import the raw data correctly Keep the data in a table Modify the string to match the for...

5 years ago | 1

| accepted

Answered
Bar plots old list of categorical values
This has to do with what a categorical data type is. The variable contains a list of all the possible categories. Each element i...

5 years ago | 0

| accepted

Answered
How to get the delete rows with conditions and get the corresponding row number?
Use a logical array (Ch 12 MATLAB Onramp) instead of a for loop. A = [1 2 3 11 1 46 45 45 12 47 24 5 25 14...

5 years ago | 0

| accepted

Answered
calculation in csv through matlab
You may find the following two posts helpful. https://www.mathworks.com/matlabcentral/answers/47838-how-to-apply-a-formula-auto...

5 years ago | 0

Answered
How to cite MATLAB??
https://www.mathworks.com/matlabcentral/answers/414438-how-do-i-cite-matlab-in-a-bibliography-or-a-published-journal

5 years ago | 0

Answered
Removing Letters from String of Letters and Numbers
You could use extractAfter s=["XYZ123456789123";"XYZ123456789126"] % use postion n1=extractAfter(s,3) % Use pattern n2=ex...

5 years ago | 1

| accepted

Answered
Importing STL file with 4 objects turning into 1
Perhaps the tip on the importGeometry page is applicable here: The STL format approximates the boundary of a CAD geometry by a ...

5 years ago | 1

| accepted

Answered
How to separate long time series data to daily overlay?
Here's a quick and dirty way. With a little more effort, it could probably be cleaned up. % Load the data data = readtable("ts...

5 years ago | 1

| accepted

Answered
How to use fprintf display values of an array that changes size.
Consider combining your two vectors into an array. Since MATLAB uses column-major ordering by default, it will use the numbers f...

5 years ago | 1

| accepted

Answered
Issues with order that fprintf prints data
MATLAB stores the data in column-major order by default. The simplest way is to address this is to transpose matrix. matrix = [...

5 years ago | 1

| accepted

Answered
How to plot legend above graph but not outside figure
Use the location name-value pair. See here. leg = legend('Healthy','Infected','Sick','Recovered','Location','northeast');

5 years ago | 0

Answered
How to limit a calculation for an array for when the cells in an array are greater than 0
You don't need a for loop. Try using a logical array (see Ch 12 of MATLAB Onramp). IE = 1367*(1+0.033 .* cos(0.0172024.*DN)) .*...

5 years ago | 0

Answered
For loop only outputting the final value.
This is because you have not formatted your for loop counter correcty, and because your code replaces the value of y in each loo...

5 years ago | 0

Answered
Understanding function written in a book
These links should help get you started. https://www.mathworks.com/help/matlab/ref/fzero.html https://www.mathworks.com/help/s...

5 years ago | 0

Answered
MATLAB Web Apps are not supported on this device (Phone)
Perhaps this page? MATLAB Online, Simulink Online, and Self-Paced Training are currently not supported on smartphones or tablet...

5 years ago | 1

Answered
How to solve this odearguments error when trying to use 'ODE45' command?
Your syntax is wrong. You are passing in a character array to ode45, not a function. Use @func instead of 'func'. See the exa...

5 years ago | 0

Answered
How i divide a Constant with a Matrix ?
We would need to know what zs is to say for certain, but the most likely fix is to use elementwise division, "./".

5 years ago | 1

| accepted

Answered
Sorting a Matrix by columns
I would suggest transposing your matrix, sortrows, then transpose the result. A=rand(5) B=sortrows(A')'

5 years ago | 0

| accepted

Answered
Matlab ODE45 function debugging
There are a couple issues with how you've set up your odefunc. You may find this example from the ode45 documentation page helpf...

5 years ago | 1

Answered
Reducing the number of features
You may find this video from our Data Processing and Feature Engineering course on Coursera (and perhaps the entire course) help...

5 years ago | 0

Answered
Plot a distorted x axis without changing shape
Your xticks and xticklabels do not need to be the same value. You can set the xticklabels to be whatever you want. Perhaps some...

5 years ago | 1

| accepted

Answered
normal distribution graph/histogram/plot
Can I assume that this is how you created your histogram? N = normfit(7,2.41) histogram(N) It might be worth reviewing what a...

5 years ago | 0

| accepted

Answered
Package app buttom?
It does not. Packaging tools for add-ons and MATLAB Compiler and MATLAB Compiler SDK are not supported yet in MATLAB Online. See...

5 years ago | 1

| accepted

Answered
How Change App name?
Rename the *.mlapp file. Your app is "app1" because your file is "app1.mlapp".

5 years ago | 1

| accepted

Answered
Changing values within a table
Try this. trc = readtable("table1.csv"); trc.WEIGHT = trc.WEIGHT>5 You may find this page on accessing data in a table helpfu...

5 years ago | 0

Load more