Community Profile

# Nikhil Sapre

### MathWorks

Last seen: circa 2 mesi ago Active since 2021

#### Content Feed

View by

Using a loop to export UIAxes
CurrentAxes in your code is a string. The first argument to exportgraphics should be a figure or axes handle. Try this code ...

2 mesi ago | 0

How to extract the 1 to 4 row and skip 5&6 and continuse 7 and 8 row?
This should work new = [x1(1:4)] new = [new; x1(end-1:end)] Thanks, Nikhil

3 mesi ago | 0

| accepted

Structfun with multiple inputs
Hi Alec, You can overload the minus function for structures and then return a structure from it. Implement the function below...

3 mesi ago | 2

| accepted

Looking for help on graphing
Hi Caleb, Please find an example of the code below. t = linspace(0,50,51); uSol = zeros(1,length(t)); for i = 1:1:length(t)...

3 mesi ago | 1

How can I combine multiple matfile containing row vector in one table
Hi Yared, Can you check if the order is correct in the variable FileList. My guess is the problem happens because the sorted o...

3 mesi ago | 0

| accepted

Same scaling of colormap in a multipanel spatial plot
Hi Swarendu, You can find the min and maximum values to each of your data sets. Then use the values to set the ColorLimits pro...

3 mesi ago | 0

| accepted

.txt to matrix separated by blank lines
Hi Alyse, Can you try something similar to this? FileList = dir('*.txt'); [~,idx] = sort([FileList.datenum]); FileData = [];...

3 mesi ago | 0

Exporting only the plot legend to a jpg file
Hi Joe, You can try something like this to turn of visibility of your plots, and axis object. This will export only the Legend ...

3 mesi ago | 0

| accepted