Answered

Can we use DocumentPart in Report Generation?

It looks like it can from the example from the documentation. https://www.mathworks.com/help/rptgen/ug/mlreportgen.dom.document...

Can we use DocumentPart in Report Generation?

It looks like it can from the example from the documentation. https://www.mathworks.com/help/rptgen/ug/mlreportgen.dom.document...

3 maanden ago | 0

Answered

how can I delete from a string a couple of lines I have indexed

Are you looking for something like this? str = ["line 1";"line 2";"line 3";"line 4";"line 5"] var = [2 3]; str(var)=[]

how can I delete from a string a couple of lines I have indexed

Are you looking for something like this? str = ["line 1";"line 2";"line 3";"line 4";"line 5"] var = [2 3]; str(var)=[]

3 maanden ago | 0

Answered

find numbers that exceed the 50

There is probably a better way to do the indexing, but here is my approach. var = [ 40 30 23 90 89 53 23 123 32 50 21 32 4 65 1...

find numbers that exceed the 50

There is probably a better way to do the indexing, but here is my approach. var = [ 40 30 23 90 89 53 23 123 32 50 21 32 4 65 1...

3 maanden ago | 0

| accepted

Answered

Why my colour image cannot display when using imread and imshow?

Try this: [I,cmap]=imread('pineapple.png'); imshow(I,'colormap',cmap)

Why my colour image cannot display when using imread and imshow?

Try this: [I,cmap]=imread('pineapple.png'); imshow(I,'colormap',cmap)

3 maanden ago | 0

| accepted

Answered

Finding Peaks after Event (in a time frame)

% Importing_and_Plotting_EEG_Example close all; clear all; clc; format long; % Importing csv data T=readtable('Try 4.csv'); ...

Finding Peaks after Event (in a time frame)

% Importing_and_Plotting_EEG_Example close all; clear all; clc; format long; % Importing csv data T=readtable('Try 4.csv'); ...

3 maanden ago | 1

| accepted

Answered

How do I get the brush tool to ignore points?

figure scatter(rand(20,1),rand(20,1),'g') hold on scatter(rand(20,1),rand(20,1),'b') Right Click and select "Export Brushe...

How do I get the brush tool to ignore points?

figure scatter(rand(20,1),rand(20,1),'g') hold on scatter(rand(20,1),rand(20,1),'b') Right Click and select "Export Brushe...

3 maanden ago | 0

Answered

How do I identify unique rows based on multiple columns and calculate the average of the rest of the columns?

A = [1 4 3 8; 4 5 6 9; 1 6 3 6; 2 6 9 3; 1 5 3 7] I am going to assume that any row that columns 1 and 3 are identical, irregar...

How do I identify unique rows based on multiple columns and calculate the average of the rest of the columns?

A = [1 4 3 8; 4 5 6 9; 1 6 3 6; 2 6 9 3; 1 5 3 7] I am going to assume that any row that columns 1 and 3 are identical, irregar...

3 maanden ago | 0

| accepted

Answered

how to calculate the average?

Lilya, You do not need to create a for loop (see vectorization) I would also suggest using the mean function instead. temp ...

how to calculate the average?

Lilya, You do not need to create a for loop (see vectorization) I would also suggest using the mean function instead. temp ...

3 maanden ago | 0

| accepted

Answered

How to calculate sum area of a particular coordinate?

@mohd akmal masud Sorry for the late reply. I was going through old comments and discovered that I wasn't following this questio...

How to calculate sum area of a particular coordinate?

@mohd akmal masud Sorry for the late reply. I was going through old comments and discovered that I wasn't following this questio...

3 maanden ago | 0

Answered

Create a specific colormap for a contour plot

Type "colorbar" in the command window to view the colorbar. You can then see the limits of the colormap. You can change the limi...

Create a specific colormap for a contour plot

Type "colorbar" in the command window to view the colorbar. You can then see the limits of the colormap. You can change the limi...

3 maanden ago | 0

Answered

How to I make data evenly spaced when displaying on a plot?

Have you tried using strips?

How to I make data evenly spaced when displaying on a plot?

Have you tried using strips?

3 maanden ago | 0

Answered

Merging Tables from 3 other tables

You can use join S12 = join(S1,S2); Sall= join(S12,S3) You can also use Join Tables in the live editor. If you don't want ...

Merging Tables from 3 other tables

You can use join S12 = join(S1,S2); Sall= join(S12,S3) You can also use Join Tables in the live editor. If you don't want ...

3 maanden ago | 0

Answered

How to know the value of my point on the colorbar?

x = 0.1:0.01:0.19; y = 0.1:0.01:0.19; z = 0.1:0.01:0.19; [X, Y, Z] = meshgrid(x, y, z); f = X.*exp(X.^2 + Y.^2 + Z.^2); f...

How to know the value of my point on the colorbar?

x = 0.1:0.01:0.19; y = 0.1:0.01:0.19; z = 0.1:0.01:0.19; [X, Y, Z] = meshgrid(x, y, z); f = X.*exp(X.^2 + Y.^2 + Z.^2); f...

3 maanden ago | 0

| accepted

Answered

How to plot four dimensional data?

This was just answered here: https://www.mathworks.com/matlabcentral/answers/1563276-how-plot-4d-data?s_tid=srchtitle

How to plot four dimensional data?

This was just answered here: https://www.mathworks.com/matlabcentral/answers/1563276-how-plot-4d-data?s_tid=srchtitle

3 maanden ago | 0

| accepted

Answered

Borghi Diagram in MATLAB

This is how I would do it. First plot the lines and change the scales to log. %Plot lines plot([10 1 .1 10^4],[.1 1 10 10^2....

Borghi Diagram in MATLAB

This is how I would do it. First plot the lines and change the scales to log. %Plot lines plot([10 1 .1 10^4],[.1 1 10 10^2....

3 maanden ago | 1

| accepted

Answered

Comparing ones in a table

Here is one way of doing it. t = table; t.column1 = randi([0 1],[7 1]); t.column2 = randi([0 1],[7 1]); t.column3 = [0 1 1 ...

Comparing ones in a table

Here is one way of doing it. t = table; t.column1 = randi([0 1],[7 1]); t.column2 = randi([0 1],[7 1]); t.column3 = [0 1 1 ...

3 maanden ago | 0

Answered

How to store function values generated by a for loop?

I added outputs to your functions called z. clc;clear x = [-2,-1,0,1,2,3]; y = [1,4,11,16,13,-4]; d0 = difdiv(x,y); d = d0(...

How to store function values generated by a for loop?

I added outputs to your functions called z. clc;clear x = [-2,-1,0,1,2,3]; y = [1,4,11,16,13,-4]; d0 = difdiv(x,y); d = d0(...

3 maanden ago | 0

| accepted

Answered

Whenever I try to use my function f(x,y) I get an error message that says that I need to define f.

I do not have the error when I run it. f = @(x,y) x+y; f(6,7) Are you defining f as a variable afterwards as such? f = @(x,y...

Whenever I try to use my function f(x,y) I get an error message that says that I need to define f.

I do not have the error when I run it. f = @(x,y) x+y; f(6,7) Are you defining f as a variable afterwards as such? f = @(x,y...

3 maanden ago | 0

Answered

Please explain for me this code , and what does each function do in detail ?

This was answered here: https://www.mathworks.com/matlabcentral/answers/3338-lagrange-interpolation-m

Please explain for me this code , and what does each function do in detail ?

This was answered here: https://www.mathworks.com/matlabcentral/answers/3338-lagrange-interpolation-m

3 maanden ago | 1

Answered

filling matrix in matlab code

matrice = zeros(10); for i=1:10 matrice(1,i)=i; end matrice

filling matrix in matlab code

matrice = zeros(10); for i=1:10 matrice(1,i)=i; end matrice

3 maanden ago | 0

Answered

How can I correct the wrong size of a variable (matrix instead of a vector)?

This line here creates a matrix. When one numerical value (n) is entered into the zeros function, it creates a n by n matrix. m...

How can I correct the wrong size of a variable (matrix instead of a vector)?

This line here creates a matrix. When one numerical value (n) is entered into the zeros function, it creates a n by n matrix. m...

3 maanden ago | 1

| accepted

Answered

How to show that calculation is going in MATLAB App

You can create a status text in the App Designer by dragging "Label" onto your app in Design View. You can edit the font, alignm...

How to show that calculation is going in MATLAB App

You can create a status text in the App Designer by dragging "Label" onto your app in Design View. You can edit the font, alignm...

3 maanden ago | 1

| accepted

Answered

Flip a matrix from 31 x 1000 to 1000 x 31 and retain same order of elements

You can tranpose the matrix with a ' matrix = rand(3,10) matrix_transposed = matrix'

Flip a matrix from 31 x 1000 to 1000 x 31 and retain same order of elements

You can tranpose the matrix with a ' matrix = rand(3,10) matrix_transposed = matrix'

3 maanden ago | 1

| accepted

Answered

How do I change color diffusion in jet colormap?

%% Example data x = (2:-0.1:0); data = sin(x); %% Shift the values towards the center, so you get a circle instead of an an...

How do I change color diffusion in jet colormap?

%% Example data x = (2:-0.1:0); data = sin(x); %% Shift the values towards the center, so you get a circle instead of an an...

3 maanden ago | 1

| accepted

Answered

I want to change the name of elements in a variable

You can save a string array with those names as such: Countries = ["UK";"Canada"; "France";"Italy";"Japan";"United States"]...

I want to change the name of elements in a variable

You can save a string array with those names as such: Countries = ["UK";"Canada"; "France";"Italy";"Japan";"United States"]...

4 maanden ago | 0

| accepted

Answered

Select particular 3D volumes of a 4D matrix

matrix_4D = matrix_4D(:,:,:,[1:11 14:29]);

Select particular 3D volumes of a 4D matrix

matrix_4D = matrix_4D(:,:,:,[1:11 14:29]);

4 maanden ago | 1

Answered

How do I find means of samples and then mean of the means?

Although it sounds like a homework question, I'll answer it since it is basic. random = randi(1000000,1000,25); mean_row = mea...

How do I find means of samples and then mean of the means?

Although it sounds like a homework question, I'll answer it since it is basic. random = randi(1000000,1000,25); mean_row = mea...

4 maanden ago | 0

Answered

How can I create a data table and export it as an excel file?

Hey bobby! Glad to see you again! Here you are: datadirectory = '/Users/name/Desktop/data/'; import = dir(fullfile(datadir...

How can I create a data table and export it as an excel file?

Hey bobby! Glad to see you again! Here you are: datadirectory = '/Users/name/Desktop/data/'; import = dir(fullfile(datadir...

4 maanden ago | 1

| accepted