Community Profile # KSSV

Last seen: Today Active since 2011

Professional Interests: Mathematical Computing

#### Statistics

All
• • • • • • • • • • • • #### Content Feed

View by

How to search closest coordinate values in a Lat Long Z data

etwa 5 Stunden ago | 0

How to set specific colors in horizontal error bars?
h = herrorbar(x,y,z) ; Check the handle h, it has options to change color. You may play around with that. Like: h(1).Color =...

etwa 9 Stunden ago | 0

how to solve the error "Unable to perform assignment because the indices on the left side are not compatible with the size of the right side"
The error is clear, this error pops out when you are trying to save more number of elements than the initialized array. Exampl...

etwa 12 Stunden ago | 0

Remake a single file data plot to multiselect file data plot script
Why you want to use uiget ? You can think of the below option. txtFiles = dir('*.txt') ; N = length(txtFiles) ; for i = 1:...

etwa 12 Stunden ago | 0

Put arrows on a continuous line plot to show direction of evolution
Try this: data = importdata('Quiver_Data.txt') ; x = data(:,1) ; y = data(:,2) ; dx = gradient(x) ; dy = gradient(y) ; ...

etwa 24 Stunden ago | 0

How to save a plot with multiple overlays as a single variable and/or plot the regression for all points as one line?

ein Tag ago | 0

what should I include in the code that read the data from specific sheet of excel file

ein Tag ago | 0

| accepted

Resampling a Vector of a specific length between 0 to 100% (ie 100 points)
load('GRF.mat') x = 1:length(GRF) ; plot(x,GRF) ; xi = linspace(1,length(GRF)) ; GRFi = interp1(x,GRF,xi) ; plot(x,...

ein Tag ago | 0

how to vectorize squared function
r2 = (X-Y).*L.*(X-Y)';

ein Tag ago | 0

replace array value with if condition
Let A be your array. A(A>=5) = 5 ; A(A<4) = 2 ;

ein Tag ago | 0

Create a graph from 2 vectors and a matrix

ein Tag ago | 0

sorting a matrix of 4 rows by the fourth element and outputting of combinations that make the 4th row element
NOTE: Never use a function name as the variable. You have used length as variable, this is problematic. clc; clear all ; %x: ...

ein Tag ago | 0

| accepted

to compare two matrix element by element
You can use inequalities straight away. idx = A>B ;

ein Tag ago | 0

Against value plot different value
This is a simple problem, you sould learn about MATLAB basics. This time I am answering your question; next I am not going to he...

ein Tag ago | 1

combine Latitude and longitude country data from multiple arrays into one array
Let A be your data of size 249*64800 [m,n] = size(A) ; iwant = zeros(180,360,m) ; for i = 1:m iwant(:,:,i) = reshape(...

ein Tag ago | 0

How to concatenate strings
str = 'Matlab Is Fun' ; iwant = cellfun(@(v)v(1),strsplit(str))

2 Tage ago | 0

| accepted

Matlab Crashes when paste from excel
Why you want to paste data from excel into MATLAB? You should not do this. You have to load/ read the data from excel into MATLA...

2 Tage ago | 0

| accepted

How to convert images as array to images and save them in folder

2 Tage ago | 0

How to convert a .mat vector into a .csv file?
To load the matfile data into MATLAB use load. To write that variable into csv file use writetable. Read about both the function...

4 Tage ago | 0

How to map subdivisions in a squared geometry
x = 1:5 ; y = 1:5 ; [X,Y] = meshgrid(x,y) ; X(3,3) = NaN ; Y(3,3) = NaN ; plot(X,Y,'r',X',Y','r')

4 Tage ago | 0

MAE and RMSE in percentage
MAE_Perc=mae((True-Predict)/.True); % <-- bracket needed here RMSE_Perc=sqrt(mse(Tru-Predict)/.True);

4 Tage ago | 0

Scatter plot: dots in two different colors
scatter(pts1, ptcmems700,[],ptcmems700) xlabel('S1 θ (°C)'); ylabel('cmems θ (°C)');

4 Tage ago | 0

Can anyone help me to rectify this matlab code? i
clc; clear variables; close all; N = 10.^6; d1 = 0.3; %Source to user 1 distance d2 = 1; %Source to user 2 distance ...

4 Tage ago | 0

xmlFiles = dir('*.xml') ; N = length(xmlFiles) ; T = cell(N,1) ; for i = 1:N T{i} = readtable(xmlFiles(i).name) ; end...

4 Tage ago | 0

| accepted

Variable lamb1 appears to change size on every loop iteration
You have to initialize that variable before using it in a llop to save/ fill the values. lamb1 = zeros(m,n) ; % specify your ...

4 Tage ago | 0

Arrangement of real and complex values of a matrix
A = rand(5)+1i*rand(5) ; [m,n] = size(A) ; iwant = zeros(2*m,n) ; iwant(1:2:end,:) = real(A) ; iwant(2:2:end,:) = im...

4 Tage ago | 1

| accepted

Converting .MF4 files into .mat files.
If the function lies in that toolbox then it is mandatory to have that toolbox installed to access the file. If you don't have...

4 Tage ago | 0

creating a contour correlation plot from 2 existing contourplots

5 Tage ago | 0