Community Profile

photo

Nikhil Sapre

MathWorks

Last seen: circa 2 mesi ago Active since 2021

Statistics

  • Knowledgeable Level 2
  • Revival Level 1
  • First Answer

View badges

Content Feed

View by

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
.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

Answered
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

Answered
function error (GUIDE)
Hi Kristin, Based on the snippet of code you posted, I see that the function blocks don't have an end. Hence the errors. Her...

3 mesi ago | 0

| accepted