已回答
saving excel file as a new sheet in another excel file using matlab
This will copy workseet from InputExcel and paste it after last sheet in OutputExcel: InputExcel = 'D:\Answers\input.xlsx'; Ou...

5 years 前 | 0

已回答
Finding the 10 nearest points to every point (with corresponding distances) within a single variable
Try this: load('F_points.mat') f = cell2mat(F_points)'; Mdl = KDTreeSearcher(f); [idx,distance] = knnsearch(Mdl,f,'k',11); ...

5 years 前 | 1

已回答
using strcmpi in switch case
For a switch statement try this: function state = stateAbbreviation(inputStr) switch upper(inputStr) case 'ALASKA' ...

5 years 前 | 1

| 已接受

已回答
Question about for loop problem
In the last line, you are summing just the last element. Remove the j index. EUI_total = sum(EUI); I would vectoize this code...

5 years 前 | 0

| 已接受

提问


Remove Bad File from Custom Datastore
I created a custom datastore to read in NetCDF files. I have the datastore check to see if each file has the same parameters as ...

5 years 前 | 0 个回答 | 0

0

个回答

已回答
importdata only gives me 4 digits of accuracy how do I change
I think you still have your accuracy, it is just displaying 4 digits. You can test then by writing a text file with one of your ...

5 years 前 | 1

| 已接受

已回答
Reading Multiple script files containing numbers and text, file format is not any specific format
If you have 2014a then you dont have the datastore function, you should upgrade to a newer version if you can. Otherwise, here i...

5 years 前 | 0

| 已接受

已回答
Reading Multiple script files containing numbers and text, file format is not any specific format
Have you tried a datastore? folder = 'D:\files'; %this is folder where the data files are ds = datastore(folder); data = read...

5 years 前 | 0

已回答
How to read in a non-standard formated CSV file containing times and measurments and change the output format?
This gets the anwer if you drop the fraction and the time format is HHmmss, if you have a fraction you can edit the line with ti...

5 years 前 | 0

| 已接受

已回答
How to insert a row into a matrix? How to insert one element in a spot a matrix?
Z(1,:) = X; Z(:,1) = Y; Z(6,4) = 20;

5 years 前 | 0

| 已接受

已回答
Question with interp3
Your welcome!

5 years 前 | 1

已回答
Downloading GRIB files directly into Matlab
I would download nctoolbox from: https://github.com/nctoolbox/nctoolbox Below is some example code to get data using toolbox. ...

5 years 前 | 3

| 已接受

已回答
Question with interp3
First error I saw was you were using lat/lon vectors that were 0.75 degree resolution where the wind data was 1 degree resolutio...

5 years 前 | 2

| 已接受

已回答
CELL ARRAY AND FOR LOOP
Try this, if I am understanding your questions right: %cargo todas los puntos grilla puntos = 4; est = cell(puntos); for i=1...

5 years 前 | 0

| 已接受

提问


Indexing 3-D matrix with 2-D matrix of indexes
I have a 3-D matrix that represents data for XYZ. I would like to pull the values from data given a 2-D matrix reprenting the Z ...

5 years 前 | 1 个回答 | 0

1

个回答

已回答
how to find column index of max value for each row of a matrix 378x5 size?
[~,I] = max(A,[],2)

5 years 前 | 1

| 已接受

提问


Find the last non-nan in large array
I have very large 4-dimensional arrays with dimensions being time,depth, lat, lon. I want to find the linear index in the depth ...

5 years 前 | 1 个回答 | 0

1

个回答

提问


how to place a legend in best corner?
Is there a way to place legend in the best corner of subplot. I do not like it when the legend is in middle of whitespace.

5 years 前 | 2 个回答 | 0

2

个回答