Réponse apportée
How to load an Excel file that changes with the date?
You could just convert numbers to string and piece it together like this: date = datetime('now'); [y,m,d] = ymd(date); filena...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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); ...

plus de 6 ans il y a | 1

Réponse apportée
using strcmpi in switch case
For a switch statement try this: function state = stateAbbreviation(inputStr) switch upper(inputStr) case 'ALASKA' ...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Question


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 ...

plus de 6 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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 ...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

plus de 6 ans il y a

A résolu


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

plus de 6 ans il y a

A résolu


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

plus de 6 ans il y a

A résolu


Create a dictionary
The goal is to write a function that returns a dictionary from a list of words or phrases and their definitions. Here is an exam...

plus de 6 ans il y a

A résolu


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

plus de 6 ans il y a

A résolu


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

plus de 6 ans il y a

A résolu


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

plus de 6 ans il y a

A résolu


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

plus de 6 ans il y a

A résolu


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

plus de 6 ans il y a

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

plus de 6 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

plus de 6 ans il y a

A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

plus de 6 ans il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

plus de 6 ans il y a

A résolu


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

plus de 6 ans il y a

Réponse apportée
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;

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Question with interp3
Your welcome!

plus de 6 ans il y a | 1

Réponse apportée
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. ...

plus de 6 ans il y a | 3

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Question


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 ...

plus de 6 ans il y a | 1 réponse | 0

1

réponse

Charger plus