Answered
Removing NaN in Linear Regression Problem. Error in line 66.
Try using rmmissing. It accepts vectors, matrices, cell arrays, tables, and timetables as input.

6 years ago | 0

Answered
How to start reading from a specific line in a text file?
What type of text file? Genearlly, you would use fseek to get to the starting point you want, and fgetl to read in your data li...

6 years ago | 0

Answered
monthly average of my variables
Recommendations would be to use readtable, add a variable to the table containing the dates as datetimes, and then use groupsumm...

6 years ago | 0

| accepted

Answered
Loop in SPM batch not working
The issue I see is that you are trying to combine text and numbers using a function that is expecting all text. As you've observ...

6 years ago | 0

Answered
How can I get fixed output in ode45
Use the following calling syntax instead. This results in a value in y corresponding to each time point specified in tspan. tsp...

6 years ago | 0

Answered
Problem with if else loop
There are a couple issues I see. You have too many end keywords. You only need two here. To test multiple conditions, you have...

6 years ago | 0

| accepted

Answered
Plot doesn't show anything
One potential issue - you have used the variable i twice. You should probably come up with a different counter variable for your...

6 years ago | 0

| accepted

Answered
UIgetfile Error on Matlab Online
It appears the 'Multiselect' flag is what is causing the error. Remove that, and it should work. [f_name p_name] = uigetfile('*...

6 years ago | 0

Answered
I need help with this. How can I use indices to extract non consecutive numbers.
If you are stuck on a task in MATLAB Onramp, click the "Show Solution" link under the task.

6 years ago | 2

Answered
How to make the following contour plot in matlab?
Try something like this. data = readtable("Input1.xlsx","ReadVariableNames",false); X = reshape(data.Var1,12,30); Y = resha...

6 years ago | 0

Answered
plot y Vs. X in heat-map plot
Heatmap accepts inputs of xvalues and yvalues. You may also specify a color variable. However, I don't know that I'd consider h...

6 years ago | 0

Answered
Question about a function
"Code ran without output" is just a message to let you know your code has finished running and did not produce any outputs. With...

6 years ago | 0

Answered
How to smoothen the signal and make a good envelope
You can try doing this interactievly using the new Smooth Data task. You can test out a variety of settings to see what works wi...

6 years ago | 0

| accepted

Answered
Can I list files in my Google Drive folder from the web?
No, at least not that simply. It's quite a process to connect to google drive from MATLAB. Here's a question I asked just trying...

6 years ago | 0

Answered
how to normalize matrix with positive and negative values
Find the min value, add it to all values, then normalize.

6 years ago | 0

| accepted

Answered
Error using plotv "too many input arguments"
The function plotv does not support the input argument 'Color'. You could set the colororder property of the axis before plotti...

6 years ago | 0

| accepted

Answered
I cant find my value for an fsolve.
You use the variable jw before it gets defined (in your call to ode45). Also, when defining jw, you also use a variable y which ...

6 years ago | 0

Answered
how can i add missing function?
type which place The result should be somethign like this: "C:\Program Files\MATLAB\R2019b\toolbox\control\ctrldesign\place.m" ...

6 years ago | 0

| accepted

Answered
Averaging value in table grouping by some datetime
Use groupsummary. If your original table is called tbl, the following would work. meanTbl = groupsummary(tbl,"Date","hour","mea...

6 years ago | 0

Answered
Plotting vectors of different lengths and values on the same x, logy graph
You can achieve this using the hold function. semilogy(turbo_R_0333_native.xm,turbo_R_0333_native.y_mean, '-+'); hold on semi...

6 years ago | 0

Answered
How to turn on the colorbar on a clustergram object by command line?
Check out this post for a possible solution.

6 years ago | 0

Answered
Arrange/Sort data in specific order
If you load the data into a table in MATLAB, you can use the movevars command to rearrange the data however you'd like. However,...

6 years ago | 0

Answered
Question about peak detection
Do you have the Signal Processing toolbox? This can be accomplished with the findpeaks function. [pk,loc]=findpeaks(icp,"MinPea...

6 years ago | 0

| accepted

Answered
COVID-19 How do I set up the SHARED folder so that Students and Professor can share files?
I'd also recommend looking at our self-paced Teaching with MATLAB course. Chapter 4 in particular talks about MATLAB Drive, whil...

6 years ago | 2

Answered
Does the PDE Tolbox come standard with matlab
It would depend on your license. You can explore options here. Generally speaking, if you are purchasing your own copy of MATLAB...

6 years ago | 0

Answered
Matlab 2019b will not start on Mac OS Catalina
I think the best solution is to contact technical support. All users with a valid license get install support.

6 years ago | 1

| accepted

Answered
How can I calculate distance between a point in a given radius inside a geographic coordinate grid?
You can compute distances between two lat/lon coorinates using the Haversine formula. You can google it to find the equation. Yo...

6 years ago | 0

Answered
Import 3D mesh to matlab (pde)
I've used stlread before to read in a surface mesh file before. Is that an option for you?

6 years ago | 1

Answered
Best way to pull every other row from excel?
The challenge here is you are mixing data types. I would recommend using a table with names in one variable and corresponding nu...

6 years ago | 0

| accepted

Answered
MATLAB Grader: Sets of problems with memory
It is not currently possible to do this. The problems in MATLAB Grader are completely independent of each other. There is no way...

6 years ago | 0

Load more