photo

meghannmarie


Naval Oceanographic Office

Last seen: environ 2 mois il y a Actif depuis 2019

Followers: 0   Following: 0

Message

Statistiques

All
MATLAB Answers

11 Questions
67 Réponses

Cody

0 Problèmes
15 Solutions

RANG
318
of 300 765

RÉPUTATION
265

CONTRIBUTIONS
11 Questions
67 Réponses

ACCEPTATION DE VOS RÉPONSES
72.73%

VOTES REÇUS
41

RANG
 of 21 084

RÉPUTATION
N/A

CLASSEMENT MOYEN
0.00

CONTRIBUTIONS
0 Fichier

TÉLÉCHARGEMENTS
0

ALL TIME TÉLÉCHARGEMENTS
0

RANG
31 594
of 170 941

CONTRIBUTIONS
0 Problèmes
15 Solutions

SCORE
160

NOMBRE DE BADGES
1

CONTRIBUTIONS
0 Publications

CONTRIBUTIONS
0 Public Chaîne

CLASSEMENT MOYEN

CONTRIBUTIONS
0 Point fort

NOMBRE MOYEN DE LIKES

  • Thankful Level 2
  • Thankful Level 3
  • 6 Month Streak
  • Knowledgeable Level 4
  • Revival Level 1
  • Solver
  • First Answer

Afficher les badges

Feeds

Afficher par

Question


How to use print in a parfor
Whenever I am using print inside a parfor, I get some all black images. How do I fix this? Here is a snippet of code and I atta...

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

0

réponse

Réponse apportée
Error using Permute with netcdf data
I see you are reading a variable named "ice" : sic = ncread('K:\Trials\conc_s.nc','ice'); Do you mean to read a variable named...

plus de 4 ans il y a | 0

| A accepté

Question


Saving figure as a image
I am saving my output figures as images. But when I run my matlab script from different computers, the figures look different. A...

plus de 4 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
How to extract contents of multiple tar files in a loop?
Do you mean something like this? input_folder = 'C:\Users\data\'; file_struct = dir([input_folder '/**/*.tar.gz']); file_na...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
Issue with ncread when _FillValue, add_offset, and scale_factor are present
Ncread is working, put a breakpoint on line 108. When you use ncread and have a scale factor/add offset, it returns a double. In...

environ 5 ans il y a | 1

| A accepté

Question


drawrectangle not working consistently, help!
I am using drawrectangle in an app so the user can interactively draw region of interest. It is not working consistently. Someti...

environ 5 ans il y a | 3 réponses | 0

3

réponses

Réponse apportée
How to specify input arguments of a structure in a 'for' loop separate to field argument
You are missing {} after 'S2Position' resultsMatrix = struct('TrialOrder', {},... , 'S2Variance', {}, 'S2Position', 'S3Number',...

environ 5 ans il y a | 0

Réponse apportée
convert Julian Date to yyyy-mm-dd
Your number represents "days since 1950-01-01 00:00:00 UTC". Most netcdf times are stored like this, you need to look at attribu...

environ 5 ans il y a | 1

| A accepté

A résolu


Pattern Sum
Write a function which receives two single digit positive integers, (k and m) as parameters and calculates the total sum as: k...

environ 5 ans il y a

Réponse apportée
I have a task where I have to calculate the area of a triangle from degrees 1 to 90, that is bound within a semi circle. I keep getting an error with the last line for some reason
You need to use the dot operator if you are doing element wise multiplication (.*). You use just the asterick for matrix multipl...

environ 5 ans il y a | 1

Réponse apportée
How to solve error "Index exceeds matrix dimensions" when reading netcdf file?
datl.wspd has 3 dimensions but when you save data to it you are indexing into a fourth dimension. I think your last line should ...

environ 5 ans il y a | 0

Question


Cannot get zoom post-callback to work on UIAxes
I cannot get the zoom post-callback to work on UIAxes in app designer. The pre-callback works fine. Here is what I have which is...

environ 5 ans il y a | 1 réponse | 0

0

réponse

Question


How to prevent zooming out past a specific extent in UIAxes?
How do I prevent user from zooming out past an extent in App Designer? In this example I do not want the user to be able to man...

environ 5 ans il y a | 1 réponse | 0

1

réponse

Question


Programmatically Change Preferences?
How do I promatically change preferences? I am running a script from command line in linux (on a HPC). I am using a tall array ...

plus de 5 ans il y a | 1 réponse | 1

1

réponse

Question


Shift Map in App Designer
In app designer I am trying to shift my world map to be centered over the pacific. The whole point of the map is to use the func...

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

1

réponse

Réponse apportée
How can write multiple Excel sheets into one excel file?
I do not know if this is best way, but try this after your for loop: C = cellfun(@table2cell,T,'UniformOutput',false); % Conver...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Data type conversion help
A cell or table is a wrapper for the data. You can't compare the cells or tables, you want to compare data inside the cell or t...

presque 6 ans il y a | 1

Réponse apportée
Converting a cell array into a matrix of stipulated number of columns and rows
wid = [W{1}(:) W{2}(:) W{3}(:) W{4}(:)];

environ 6 ans il y a | 1

Réponse apportée
Plotting of 15 years data on same graph.
Try something like this: fid = fopen('Mod21_All_Inclusive_Data_Nov2019.txt'); Mod = textscan(fid,'%s %s %n %n'); fclose(fid);...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Unable to perform assignment because the left and right sides have a different number of elements.
So you are insexing al by c (al(c)), but al is a constant so only has one element. This should fail on loop 2. Did you mean: h1...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
xlswrite over for loop
This will save out all the results in one excel: output_mat = cell(numel(parameter_list),5); for j=1:numel(parameter_list...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Importing data to change a NaN
Try readcell: RD = readcell('filename.xlsx') choice = 1 avg = mean([RD{choice,2:end}]); name = RD{choice,1}; disp([name '...

environ 6 ans il y a | 0

Réponse apportée
Iteration cycle of a code
Can you show your code? Make sure you are initally setting A before the for loop. If I am understanding the problem, it should l...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Unable to perform assignment because the left and right sides have a different number of elements. Is it due to the vector stuff? How to solve it. Thanks in advance
I has the size of 2x(length(a)). When you are setting I you are only indexing the second dimension. What is the size of sys.Mea...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Converting date times into periods, day, month
I would try something like this: T = table(); [~,T.Month,T.Day] = ymd(FC.StartDateTime); [h,m] = hms(FC.StartDateTime); [~,T...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
loop over branch of subfolders to copy files, without pattern in file name, in folders with specific name scheme
Are you trying to do something like this? outputFolder = fullfile(pwd, 'image_sorted') if ~exist(outputFolder, 'dir') mkdir...

environ 6 ans il y a | 0

Réponse apportée
How to modify the colobar settings?
You could try this: c = colorbar; units = ' m'; c.TickLabels{end} = [c.TickLabels{end} units]; c.Location = 'westoutside';...

environ 6 ans il y a | 1

| A accepté

Réponse apportée
How to modify the colobar settings?
c = colorbar; units = 'm'; c.TickLabels = cellfun(@(x) [x ' ' units], c.TickLabels, 'UniformOutput', false) c.Position = [lef...

environ 6 ans il y a | 1

Réponse apportée
Adding new column of data from loop
x = nan(10,num_loops); for n = 1:num_loops v = %some code that ouputs a 1 row 10 column data set say [1;2;3;4;5;...10] ...

environ 6 ans il y a | 2

| A accepté

Réponse apportée
How to merge multiple xyz files into 1 large array
Not all the cells in AIS_SEC are structures. For example AIS_SEC{1,33} is a cell array with a string in it. You can skip those ...

environ 6 ans il y a | 1

Charger plus