photo

Michael Madelaire


Active since 2017

Followers: 0   Following: 0

Statistics

All
  • 5-Star Galaxy Level 2
  • Thankful Level 2
  • First Submission
  • Knowledgeable Level 2
  • First Answer
  • Thankful Level 1

View badges

Feeds

View by

Answered
How to generate points in triangular lattice pattern
clear all; close all; clc; %% Triangular grid information h_dist = 5; % Horizontal distance v_dist = sqrt(h_dist^2-(h_dist/...

5 years ago | 2

Answered
How to plot vertical line when hitting the range?
%% Init clear all; close all; clc; cd 'C:\Users\s144117\Desktop\mathworks' %% Load load('new') %% Find boarders boarders...

5 years ago | 1

| accepted

Answered
how to plot graph with color for xy vs z?
I think you are looking for a scatterplot. clear all; close all; clc; x = rand(100,1); y = rand(100,1); z = rand(100,1); ...

5 years ago | 0

| accepted

Answered
image plot after is calculating hilbert spectrum
There shouldn't be any problem. But you have attached no code, so it is hard to know. Without for information many things could...

5 years ago | 0

Answered
How to change the working directory as code progresses...
It is unclear to me where AddGrids is located and why you have to change directory to the Frames folder. Here are some options:...

5 years ago | 0

| accepted

Answered
Rotational symmetries of cubic crystal structures
I have made with without the use of build-in functions: I believe it is important for you to know how to rotate around an axis a...

6 years ago | 0

| accepted

Answered
Unable to extract data between two lines from a text file of below format
I do not know how you want the data. But you can very simply use fgetl(fid) to get a single line. fid = fopen('example.txt');...

6 years ago | 0

Answered
Latitude Longtitude Altitude convert to X Y Z with starting reference
Hi, there are still an unanswered question about the altitude that you have applied. Is it altitude above sea level? or is it so...

6 years ago | 0

Answered
Need help to code the power Low fit using least square regression
Here is my attempt. But it does not use a non linear fit as the suggestion above. Instead I fit the log. %% Init clear all; c...

6 years ago | 0

Answered
How to write a program to computation of drag force using loops
Drag on projectile

6 years ago | 0

Answered
How to extract a subset of person identified data from several excel files into one excel file
Start by saving the excel files as .csv. Then load them into MatLab with data1 = csvread(filename1); data2 = csvread(filenam...

6 years ago | 0

Answered
What is the physical model used in the function "gravitysphericalharmonic" in the case of the Moon?
If you are asking what spherical harmonics are then I suggest finding a paper on it online or starting with Wikipedia. But simp...

6 years ago | 0

Answered
Plotting a row from a matrix
INT_I(1000,:) That is your y-values plot(INT_I(1000,:)) Is equivalent to plot(1:length(INT_I(1000,:)), INT_I(1000,:)) Due t...

6 years ago | 2

| accepted

Answered
Projectile motion of a cannonball with varying drag
Hi, I am not sure about the equations you use. But here is my attempt. Try running it, and if it is what you are looking for, ...

6 years ago | 1

Answered
3rd degree polynomial interpolation in functions
Please do not send your data in like that. I have to copy it in some how and now it is just ugly... % Define x x = [0 10 15 ...

6 years ago | 0

| accepted

Answered
Hi, My histogram is not showing what I would like can I get some help please?
The problem is that you are not storing the answers/toss. A=input('How many tossing would you like to do? ') x= rand(A,1); ...

6 years ago | 0

| accepted

Submitted


Publish script - without plot and warnings
Publish all the MatLab scripts you want to pdf.

6 years ago | 3 downloads |

Question


Matlab freeze when fprintf to file
Hi I have a large amount of data, many years. It is given in daily files. For reasons irrelevant for the question I have t...

6 years ago | 1 answer | 0

1

answer

Question


Two colormaps on map projection
Hi I would like to create a map projections load coast figure('units','normalized','outerposition',[0 0 1 1], 'Color','...

6 years ago | 1 answer | 0

1

answer

Question


Correlation length of image
Hi I am working of a project where I have to determine the correlation length of some model parameters. This can be related ...

6 years ago | 0 answers | 0

0

answers

Question


Updating mean and standard deviation
Hi I am working on a project which includes Bayesian inversion. And am working on an idea about updating the prior model iter...

6 years ago | 1 answer | 0

1

answer

Answered
i need to divide a plot with a grid and color any grid based on the number of point in it
Hi You should be able to use hist3 and imagesc to achieve what you seek: data = randi(1000, 5000, 2); % Create fake data...

7 years ago | 0

Answered
I have three columns containing data. I want to isolate particular data depending on the third column and find the maximum values on the second column for each case of the isolated data from the third column.
Hi, hope this works. The first column shows the max in the first column. The second column shows the max in the second col...

7 years ago | 0

Answered
How to plot this graph?
Hi, hope this is what you wanted. It is still rough, but you can always make it better :) I = 1; x1= [-30 30]; y1=[30 3...

7 years ago | 1

| accepted

Answered
What happens if my computer is sent for repair and it is replaced or MATLAB deleted?
If you had MatLab on your computer, then I you must have a License-Key. If you have the key, then there's no problem.

7 years ago | 0

Answered
Contour plot around edge on map
I found an "okay" solution. As I suspected, in the main question, the interpolation was to blame. If the data goes from [-180, 1...

7 years ago | 0

| accepted

Answered
I have a looping question about a problem that I am doing. Could someone please help?
Hi Tony I hope this can help! Due tell if i misunderstood. tol = 0.001; % Tolerance y=1.4; % Set gamma value ...

7 years ago | 0

Answered
How can I combine data in multiple excel files an write the combined data in a new excel file data should be stored in column in excel file ?
I am not entirely sure what the question is. But if you have two files: file1.xlsx file2.xlsx and want to combine the d...

7 years ago | 0

| accepted

Question


Contour plot around edge on map
Hi I have some data I have to plot on a world map. It has to be a contour. This is what i have tried: lat = data(:, 1...

7 years ago | 1 answer | 1

1

answer

Question


Multidimensional matrix multiplication with mex
Hi I am trying to do matrix multiplication via Mex. So fare i have, using this as <https://se.mathworks.com/matlabcentral/...

7 years ago | 1 answer | 0

1

answer

Load more