Answered
Compare content of a cell that has text
if you want to extract |start_time| and |rt| based on some conditions, you could create a boolean array. gC = T.resp_num==T...

8 years ago | 1

| accepted

Answered
using matlab app in ipad
You can _only_ use the |sim| command from Matlab mobile.

8 years ago | 0

Answered
To combine different cells with empty columns together
funct1 = {'Q7';'Q12F';'Q12G';'Q12H';'Q12I';'Q12L';'Q12M'}; funct2 = {'Q12G';'Q12H';'Q12I';'Q12L';'Q12M'}; funct3 = {'Q12...

8 years ago | 1

Answered
Plotting Multiple Box Plots in Same Graph
boxplot([satisfaction_1 satisfaction_2 satisfaction_3 satisfaction_4]... ,'Notch', 'on','Labels',{'S1','S2','S3','S4...

8 years ago | 0

Answered
How do you add a header to a printed figure?
title(['Pg.no:' num2str(page) ' sub:' num2str(sub)]) add this next to plot

8 years ago | 0

Answered
Plot multiple points in a for loop
use <https://de.mathworks.com/help/matlab/ref/hold.html hold> n=100 for i=1:n+1 plot(i,i,'r.','MarkerSize',10); ...

8 years ago | 0

| accepted

Answered
Calculate min/max of matrix column
totalHours = sum(Hours{:,2}); maxHours = max(Hours{:,2}); minHours = min(Hours{:,2});

8 years ago | 0

Answered
How to run Simulink Model File From Script file ?
save the return in a cell array and use it. filename{1,1} = get(handles.edit1,'String'); sim(filename{1,1});

8 years ago | 0

Answered
Counting the number of elements of within an element within an element
pos{1,1} = 1:10; spots{1,1} = repmat(pos,10,1); cell_list{1,1} = repmat(spots,10,1); numel(cell_list{1,1}{1,1})

8 years ago | 0

Answered
latex TickLabelInterpreter in Matlab 2011b
ax = get(gca,'XTickLabel') set(gca,'XTickLabel',ax,'FontName','CMU Serif')

8 years ago | 0

Answered
Saving mat file named by a variable and comprising multiple variables to a different folder
f = fullfile('myfolder','mysubfolder',char(PhID)) save(f,'PHdataOUT','TI','RawDataOutputArray')

8 years ago | 1

| accepted

Answered
Add Column and Row Labels to Matrix
Why don't you use <https://de.mathworks.com/help/matlab/ref/table.html table> instead? sample = rand(3,3); rowNames = {'...

8 years ago | 11

| accepted

Answered
How do I identify each element in a cell array as a string or a number?
A = {2,8,10,'Good',15,3,21,'Morning',12,26,9,'Joe'}; q = cellfun(@(x) isnumeric(x) && numel(x)==1, A); numA = A(q) c...

8 years ago | 0

Answered
Removing far points between vectors
A=[1 1 1; 10 10 10; 20 20 20] B = [1 1 1; 2 2 2; 3 3 3] C = A(sqrt(sum((A-B).^2,2))<=5,:) %edited

8 years ago | 0

| accepted

Answered
3plot won't give a three-dimensional plot
Change your function to have the desired variables as outputs, like this function [Vcomp,pcomp,Tcomp, Vexp,pexp,Texp]=func(...

8 years ago | 0

Answered
How to perform data filtering in matlab like in excel
sample = [4 4; %say first column is days and second column is class 4 5; 3 6; 6 9; 4 11; 7 ...

8 years ago | 0

Answered
How to display the indices of a vector in descending order of values in matlab
>> V = [5 3 10]; >> [~,id] = sort(V,'descend') id = 3 1 2

8 years ago | 0

| accepted

Answered
How to concatenate elements of cell array
cell2mat(YourCellArray)

8 years ago | 3

Answered
How to read a text file ?
fileID = fopen('YourFileName.txt'); C = textscan(fileID,'%d-%d:%s %s'); fclose(fileID);

8 years ago | 0

Answered
Plot a row with different color
a=rand(10, 2)*10; scatter(a(:, 1),a(:, 2)) hold on x = randi(length(a)) %your random row scatter(a(x,1),a(x,2),'m'...

8 years ago | 1

| accepted

Answered
Graphs set to zero in a two graphs plot
if |I1| is zero, it comes simply from the line |I1 = Ieq - (V/Req);|, which are your function inputs. Nevertheless, accordin...

8 years ago | 0

Answered
Closest number problem in m-file
[val, idx]=sort(abs(f-A)); A(idx(2))

8 years ago | 0

Answered
How to convert cell array to double array
str2double(YourCellArray)

8 years ago | 2

| accepted

Answered
how can create date string for 360 days like this yyyymmdd ?
ny = 3; %number of years sy = 2005; %start year y = sy:sy+ny; FD = []; for i = 1:ny daysOfYear = [num2str(...

8 years ago | 0

Answered
How to fix this error?
Did you read interp2 <https://de.mathworks.com/help/matlab/ref/interp2.html#btyq8s0-2_1 documentation> ? In your code, ...

8 years ago | 1

Answered
How to create loop that plots data from a file depending on the length of data and with specific pattern
DataLength = 50; Flow1 = rand(DataLength ,1); RichtoLeanbrick1 = 2*Flow1; for i = 1:length(Flow1)/10 ig = ...

8 years ago | 1

Answered
[l m]=a(1,2,3;6,7,8) in matlab..........
# You cannot assign two variables in one command unless it's a function return. # To define an array you should use "Square br...

8 years ago | 0

Answered
I want to do random swapping in row vector and i know the number of swap to be performed.If row vector x=[1 2 3 4 5 6] the output vector should have unique element with fixed number of swap.
x=[1 2 3 4 5 6] nSwap = 2; c = randi(length(x),[nSwap,2]) for i=1:nSwap x(c(i,:)) = x(fliplr(c(i,:))); end ...

8 years ago | 0

| accepted

Answered
How to obtain a numeric vector with the position of elements of an array regarding another array?
in = cellfun(@strcmp, repmat(ref1,numel(messy1),1), repmat(messy1',1,numel(ref1))) [I,~]=find(in'>0); I' for repeatin...

9 years ago | 1

Load more