Question

How to enable a figure so that if I click on a point and it will show the value?

If I have a three column data of x, y, and z, how do I make a plot of x vs y, so that if I click on a point, the value z will sh...

6 giorni ago | 1 answer | 0

Question

Would anyone please help me debug my textscan program?

My goal is to extract a three column table of: Station #, Longitude, and Latitude. Attached is one of the data files. Below i...

13 giorni ago | 0 answers | 0

Question

How to get the value of Radio buttons from App Designer

Here is my radio button: app.ButtonGroup app.A_button app.B_button What I want to do is this: Button A should be the defaul...

circa 2 mesi ago | 1 answer | 0

Question

How to make a column plot like this one?

Anyone knows how to make a column plot like the one in the attachment? Many thanks!

2 mesi ago | 1 answer | 0

Question

Please help me choose the best hardware for my Matlab processing

I have around 50 million rows of data to process. The number will be increasing into the future. I want to invest around $10K on...

2 mesi ago | 0 answers | 0

Question

Why does Matlab require a Parallel computing toolbox in order to use more CPU cores?

Is it true that if I have a multi-core CPU computer and Matlab will only use one of the CPU cores, unless I leverage the paralle...

2 mesi ago | 1 answer | 0

Question

How to extract the numerial values out of readtable output?

Good afternoon! My apologies for the many questions related to readtable. Attached is my data file. I use the below command to ...

2 mesi ago | 1 answer | 0

Question

Table values that is a scalar string

I use readtable to input an Excel file into Matlab. T1 = readtable('AA.xlsx'); Now I know T1(3,48) = '32WC20110812', but I ...

2 mesi ago | 2 answers | 0

Answered

xlsread error: Array indices must be positive integers or logical values.

Thanks all for the replies. I'm using Excel Version 16.25 on MacOS 10.14.5

xlsread error: Array indices must be positive integers or logical values.

Thanks all for the replies. I'm using Excel Version 16.25 on MacOS 10.14.5

2 mesi ago | 0

Question

xlsread error: Array indices must be positive integers or logical values.

When I try to use xlsread to read the attached Excel file: [A B C] = xlsread('AA.xlsx'); Why do I keep getting this error? It ...

2 mesi ago | 2 answers | 0

Answered

How to determine if a string can be converted to a numerical value?

Old thread, but the function 'isfloat" will do the trick.

How to determine if a string can be converted to a numerical value?

Old thread, but the function 'isfloat" will do the trick.

2 mesi ago | 0

Question

how to turn off this display in the command window?

I'm using the app-designer of Matlab to create an app. The below display keeps showing up on my command windows, slowing down my...

3 mesi ago | 0 answers | 0

Question

How do I specify the cell array to indicate strings in double quotation?

I have an array of strings (pulled from Excel column headers). For example, A{1,1} = 'Station Number' A{1,2} = 'Depth' etc...

4 mesi ago | 1 answer | 0

Question

How to get the numbers that do not overlap with another matrix?

Imagine, I have a matrix A = [1, 2, 5, 7, 9]; and B = [1,3,5]; How do I find all numbers in Matraix A that do not already overl...

4 mesi ago | 1 answer | 0

Question

How to find the location of the first string matching my searching criteria?

My goal is to find the column number of the variables stored in my Excel file. Below is my code. Now B stores the column headers...

4 mesi ago | 1 answer | 0

Question

Setpath error: the path file pathdef.m might be read only

I need some external functions to run my program. They are saved in a different folder. The problem I'm having is that I can not...

5 mesi ago | 1 answer | 0

Question

How to combine string and numbers before using xlswrite to export data into an Excel file?

I have like to write the below information into one Excel spreadsheet: Cruise # Longitude Latitude Year Month Day S...

5 mesi ago | 1 answer | 0

Question

How to clear the contents of an app designer text area?

Below is my code: % --- create a file to store the QC comments --- File1 = ['comments/QCcomments_' app.FileName.Value '.txt'];...

5 mesi ago | 0 answers | 0

Question

How to streamline this code to average certain rows?

I have a three row column data: lon lat and Z. What I want to do is to round longitude and latitude to 2 digits. For example, 65...

11 mesi ago | 1 answer | 0

Question

Parallel computing out of memory

I just started my trial of Parallel Computing Toolbox, unfortunately, with little success. Now I can see that my program is util...

11 mesi ago | 0 answers | 0

Question

How to make Matlab faster

I'm running a program that takes several days to finish, but it only consumes 30% of my computer CPU and less than 30% of my RAM...

11 mesi ago | 1 answer | 0

Question

Need help on Matlab memory error

Below is the error I got while using divagrid on Matlab. Anyone has a solution? How do I expand the available space? My computer...

12 mesi ago | 1 answer | 0

Answered

How can I run MATLAB in batch mode on my Mac when I log in remotely so that the process runs when I am logged out?

The command seems to be truncated. Anyone has the full command? Thanks!

How can I run MATLAB in batch mode on my Mac when I log in remotely so that the process runs when I am logged out?

The command seems to be truncated. Anyone has the full command? Thanks!

12 mesi ago | 0

Question

How to show the progress of a program without using disp()?

Recently, I've been running several large programs that would take many days to finish. It's very important for me to know the p...

12 mesi ago | 1 answer | 0

Question

How to convert gif to movie?

I just created my first gif animation for my ppt presentation. The problem is that it does not have a "play" or "pause" button. ...

circa un anno ago | 0 answers | 0

Question

how to specify points outside a polygon?

For example, in the below code, I can specify the points inside the polygon. How about outside the polygon? How do I specify t...

oltre un anno ago | 2 answers | 0

Answered

How to plot a geographical map from 0 to 360 degree of longitude

If you have the longitude and latitude values, all you need to do is to go through the longitude and convert it to a 20-380 syst...

How to plot a geographical map from 0 to 360 degree of longitude

If you have the longitude and latitude values, all you need to do is to go through the longitude and convert it to a 20-380 syst...

oltre un anno ago | 1

Question

How to set all elements of a matrix that meet a certain criteria to NaN?

I have a Matrix A with the size of [200 100 20 60]. How do I set all elements larger than 10^20 as NaN?

oltre un anno ago | 1 answer | 0

Question

How to calculate the mean values in this case?

I have two matrices: both of them have sizes of 200x100x50. The third elements (50) are time. In Matrix One, the time starts fro...

oltre un anno ago | 1 answer | 0