**Statistics**

RANK**22**

of 287 640

REPUTATION**11 598**

CONTRIBUTIONS

**0** Questions

**3 743** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**1 085**

RANK

of 19 421

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

insert datetime in array

I assume the array is sorted and needs to remain sorted after inserting the new element. One easy way is to concatenate the new...

ungefär 11 timmar ago | 0

| accepted

change the colors of legent in 2D-plot

In your plot calls, use the LineSpec argument (see this) or 'Color',c input argument pair (see this). Examples: figure hold o...

ungefär 13 timmar ago | 0

change the color of the second Y-axis

yyaxis('left') plot(1:10); yyaxis('right') plot(10:-1:1) ax = gca(); % the current axes is the right axes at this p...

ungefär 13 timmar ago | 0

Plot a point in a GUI with mouse click

Apparently plot changes the axes' ZLim to [-1 1], which you can check by displaying the ZLim before and after the first click. ...

ungefär 13 timmar ago | 0

How can I add query points between two adjacent points of sampled data and perform interpolation?

Calculate the query points exactly as I showed in my answer to your other question https://www.mathworks.com/matlabcentral/answ...

ungefär 15 timmar ago | 0

How can i plot a multiple EEG signal channels ?

https://www.mathworks.com/help/matlab/ref/stackedplot.html Example: fs = 500; tmax = 1; nch = 21; nt = fs*tmax; t = (0:n...

ungefär 15 timmar ago | 1

How would I import multiple data sets with the same variables

"put them into their own variables" It's better to leave them in the tables. Rather than creating, say, 72 (= 9 variables per t...

ungefär 17 timmar ago | 1

Defining and calling functions in MATLAB

Refer to the following documentation page for a description and examples of how to define and call a function: <https://www.m...

en dag ago | 1

| accepted

Problem in special characters

1. The error, "Unrecognized function or variable 'Newfolder'." means that the variable 'Newfolder' is not defined in the functio...

en dag ago | 0

Processing cell arrays as a batch instead of one by one

Perhaps this: fprintf(fid, '%f,%f,%f,%f\n', iniclu{i,:}); Running example: % example data (not sure whether this is similar t...

en dag ago | 1

| accepted

Running compiled AppDesigner app. Error finding getRunningApp

Here's some wild speculation: getRunningApp is only used when the .mlapp is a singleton app (i.e., an app that allows only one i...

en dag ago | 0

| accepted

How to get the sum of each row in a matrix.

% sum over 2nd dimension question_5 = sum(unsumed,2)

en dag ago | 1

Surf from a numerical array

"Currently the axis values just represent the number of data points, so I want to change that to actual values of interest." Sp...

en dag ago | 0

Selecting a UIAxes from a drop down box and assigning it to ax to be called by other funtions

Seems like you mean this: ax=app.AxisSelectDropDown.Value; ax=app.(ax); b=ax.Children % b(1) is last object added to uiaxe...

en dag ago | 0

| accepted

fprintf function writes irrelevant data into my file

fprintf operates column-wise when given an array as input. So for matrix tmp, fprintf prints tmp(1,1) then tmp(2,1), ..., tmp(en...

en dag ago | 1

| accepted

Surf from a numerical array

Yes. You can use the xlim and ylim functions to set the axes limits to the actual region of interest. Example: % some matrix ...

en dag ago | 0

| accepted

Create a boxchart with half-boxes

As you may have realized already, there's no ordering of overlapping red, blue, and two white boxcharts that will give you the l...

2 dagar ago | 0

| accepted

How do I use for loop to graph this

hold on x = 0:0.025:1; y = flip(x); for n=1:numel(x) plot([x(n),0],[0,y(n)],'k') end plot([1,0,0,1,1],[0,0,1,1,0],'g')...

3 dagar ago | 0

| accepted

Extracting tables within a cell.

"I would want to have space of column between each files data" See my additions at the end of the loop below for how you can do...

3 dagar ago | 0

| accepted

Program not printing to a text file properly

At first you make StudentID and Score column vectors StudentID = read(:,1); Score = read(:,2); and later you overwrite those ...

3 dagar ago | 0

| accepted

Why don't getframe RGB codes agree with plotted polyshape RGB codes?

They don't agree because of the transparency of the polyshape. Default FaceAlpha=0.35: figure h=plot(nsidedpoly(4)); % defaul...

3 dagar ago | 1

| accepted

How can I add query points between two adjacent points of sampled data？

x = [1;3;4;6;10] n = 4; % number of points to insert in each interval N = numel(x); q = linspace(1,N,(n+1)*(N-1)+1); Xq = in...

4 dagar ago | 1

| accepted

Why am I getting this error: Incorrect number or types of inputs or outputs for function piecewise.?

piecewise is for symbolic variables and expressions, which you are not using here. You can use logical indexing to define ID. S...

4 dagar ago | 1

| accepted

Repeating a function for different values that involves imaginary numbers.

Use ./ instead of / Y = 1./X; The difference is listed here: https://www.mathworks.com/help/matlab/matlab_prog/matlab-operato...

4 dagar ago | 0

| accepted

How to partition a matrix by sorting a column?

A= [ 73.90 123.17 1.00; 73.79 121.83 0.00; 70.64 74.46 1.00; 69.74 86.40 0.00] C = splitapply(@(x){x}...

4 dagar ago | 0

Remove rows from table with a column match and an undefined categorical

%create result array with undefined categoricals result = [string(missing);"PASS";string(missing);string(missing);"FAIL";"PASS"...

4 dagar ago | 0

| accepted

Confused as to where my syntax is incorrect. I am trying to Test the BCD output a function with the test_four_input_gate function and verify it with the BCD documentation.

A1 is not defined (you're missing the A1 loop), and the reason for the error is you didn't supply any input (gate) to test_four_...

5 dagar ago | 2

| accepted

how to extract data from Matlab figure with stacked lines?

f = openfig('intensity with lines.fig'); lines = findall(f,'Type','line') xdata = get(lines,'XData'); % xdata: 10x1 cell array...

5 dagar ago | 0

I just want to run my script within a certain time periodically. That's it all ....

Set the 'StartDelay' such that the timer starts at the next multiple of 3 hours (or whatever the specified interval is). % user...

6 dagar ago | 0

Why does the operand '==' not work on type 'cell' for one table but does for the other but both contain the sane type of data

In updatedoc, you convert the UID column of T to numeric before doing the == comparison: T.UID = str2double(T.UID);%convert to ...

6 dagar ago | 0

| accepted