Community Profile # Keshav

Last seen: ongeveer een maand ago Active since 2022

Programming Languages:
C++
Spoken Languages:
English

#### Statistics

• • #### Content Feed

View by

Efficient Way to find index of max column for each row
Hi, Based on my understanding you have a matrix. for each row you want to find the index of maximum value. you can use the below...

ongeveer een maand ago | 0

How to plot multiple curves on the same graph
Hi, you can use the hold on function to plot both line on same graph. you can refer to the below code. x = [1 2 3 4 5]; y = [7...

ongeveer een maand ago | 1

| accepted

How to find values in a vector that are correspond to the 6th biggest values in another related vector?
you can use the below code and made the change according to you. basically idx will store the index corresponding to the sorte...

ongeveer een maand ago | 0

| accepted

Automate an averaging process and store info into an array
Hi, Based on my understanding you want to first calculate the average of 2 elements, 3 elements,... n elements. so if the array ...

ongeveer een maand ago | 0

break x axis on matlab plot
Hi, Based on my understanding you want to focus only on the range between -10 and 10 on x axis. you can use the xlim function in...

ongeveer een maand ago | 0

Is it possible to transfer a variable with values from my workspace into a excel spreadsheet automatically in my Matlab code?
As Stephen said you can follow this documentation to write data in excel file.

ongeveer een maand ago | 0

ongeveer 2 maanden ago | 0

| accepted

How can I get randperm function to calculate assigned percentage and values?
Based on my understanding, you want to generate an array of size n such that random 75% elements value is 1.5. you can use the ...

ongeveer 2 maanden ago | 1

| accepted

Use text strings in a cell array in a 'for loop' and also use that text string to name the output
you can use the below code. for i=1:length(sitearray) Output_sitearray(i) = Data.(sitename(i)).matrix(:,); end

ongeveer 2 maanden ago | 0

| accepted