Answered
How do I plot both of these different sized arrays on the same plot?
... plot (Tgb,Ygb) ... plot (Tgb,Ypp) plot (Tpp,Vgb) ... plot (Tpp,Vpp) For some reason, you're mixing metaphors here b...

6 years ago | 0

Answered
Only can detect the last word in edit text that need to be translated.
a = upper(get(handles.edit1,'string')); % uppercase, char string array b = get(handles.popupmenu1,'value'); morse=string({...

6 years ago | 1

| accepted

Answered
Turning cells created with a for loop back to an array by using a for loop after doing calculations on it
filenameExport = 'test.xlsx'; E = 0.059417; t0_row = 15; ...

6 years ago | 0

Answered
Search through every vector in cell array for the vector that contains a certain value
Your code above doesn't save the result going thru the loop so you only show the final result at the end--- ix=cellfun(@(v) ism...

6 years ago | 1

Answered
randi 0 to 3 (2bits)
v=randi([0 3],16384,1,'int8'); % save as int8; ML doesn' have arbitrary length integers. You can visualize what have with ...

6 years ago | 0

| accepted

Answered
adding a value to all values in a table
You address the variables in a table with the dot notation -- t.Var1=t.Var1+300; % store in place t.Var2=t.Var1+300; % make ...

6 years ago | 0

Answered
Please help me run this - I can't figure out this error!
xp(:,pp)=chopit(x+(w.*v)(pp)-(1-w)*c(pp),xcrit,Cap); Missing an operator between (w.*v) and (pp) or what variable pp is suppose...

6 years ago | 0

Answered
How to retrieve a table entry using row name?
It's a table; use the curlies "{}" to dereference row names to return the content of the row or regular paren's "()" to return a...

6 years ago | 2

| accepted

Answered
Two labels for xaxis for bar graph
Per above, you must have a second axes. And, you can do it with only one bar plot instead of two... ip=(a>=0); % logi...

6 years ago | 0

| accepted

Answered
Histogram with data frequency
nc=accumarray(X.',Y.'); bar(1:numel(nc),nc)

6 years ago | 0

Answered
avoid inserting input as a string with ' '
"So in case i want to call my input variable (valuesSwitched) in the second case one or two, I should ALWAYS use a string like '...

6 years ago | 0

Answered
Making Frequency vs. Time Plot from FFT using EEG Data
Sampling frequency, Fs = 2 kHz --> dt = 1/Fs Fmax = 1/2dt --> Fs/2 --> Fmax = 1 kHz The signal is sampled such that baseband ...

6 years ago | 0

Answered
How to convert numbers into characters other than in the range 32-127?
Because >> A = [10, 23, 90, 125, 145, 250]; B = char(A) B = ' Z}ú' >> double(' Z}ú') double(' ...

6 years ago | 1

Answered
Changing where divisions appear on a Matlab plot
hAx=gca; hAx.YAxisLocation='origin'; hAx.XAxisLocation='origin'; A little overkill on the number of x,y points isn't it...

6 years ago | 0

| accepted

Answered
Varying Font Size Within individual words
Amazing how the same or similar queries seem to come in bunches... <Answers/515556-how-do-i-change-the-appearance-of-a-tick-lab...

6 years ago | 0

| accepted

Answered
skip the value in for-loop
AMENDED: Probably simplest is just a = 27; c = 11; m = 54; x(1)=2; for i=2:25 x(i) = (mod(a * x(i-1)+c ,m)); end x=x...

6 years ago | 0

Answered
Display mean of data on a boxchart
"??? There's a boxplot, no info on boxchart" Well, bless their little pea-pickin' hearts but TMW has done it again...introduce...

6 years ago | 1

| accepted

Answered
How do I change the appearance of a tick label over a number of iterative values through a pre-exisitng tick label?
Think you can do what you want or at least a reasonable facsimile thereof w/ basic 'TeX' interpreter -- 'LaTeX' is such a pain t...

6 years ago | 0

| accepted

Answered
Readmartix function removes first blank row
Well, let's quit hypothesizing and just see what happens... % BB-M.xlsx has reshape(3:8,2,[]) at C2 upper left corner >> n=xls...

6 years ago | 0

Answered
how can i create a array of letters from a sentence
txt="Here's to ..."; % truncated for brevity of posting but contains above as string variable... Engine: t=char(txt).'; ...

6 years ago | 2

| accepted

Answered
How to change a line in .txt file by importing a name, from a loop
OK, not knowing which is the anwer really wanted but apparently from above comment just concatenating the two columns in the tab...

6 years ago | 0

Answered
Order of elements inside sqrt/exponentiation changes ode output
Addition is mathematically associative so that x-1+mu == x+mu-1 identically but that isn't necessarily an identity in floating p...

6 years ago | 0

| accepted

Answered
How to change a line in .txt file by importing a name, from a loop
OK, given a row and text to be in said row in the alternate file, that's pretty simply done--I'll also illustrate the newfangled...

6 years ago | 0

Answered
Forming loop to perform same action
Thres = 0.17; istrue1=((x>= 928 & x<=1139) & y>=Thres) | ... ((x>=2527 & x<=2856) & y>=Thres) | ... ((x>=4113...

6 years ago | 0

| accepted

Answered
how to store even and odd strings into 2 seperate vectors using mod function
Whassup w/ this thing about alternative storage of odd/even indices all of a sudden??? <Answers/514742-how-to-separate-an-array...

6 years ago | 0

Answered
How to recursively add symbol in a for loop?
Don't try to catenate all with text operators; use sprintf (or possibly some of the new string class functionality that includes...

6 years ago | 0

| accepted

Answered
alternative form for find(max(x))
if rand >= gamma [~,imx]=max(A(s(1),s(2),:); a=imx; else a = randi(nodes); end

6 years ago | 0

| accepted

Answered
How to seperate an array into two?
Not a good idea still unless is homework...there are any number of ways to do so; about as simple as any would be for i=2:2:num...

6 years ago | 0

| accepted

Answered
I am working on a certain problem but the end result is a single value repeated for n elements.
Incorporating comments from the stream above in result...using your code and loop would look something like %%Task 1 %Assignin...

6 years ago | 0

| accepted

Answered
How can I randomly select a subset of logicals?
Nmatch=20; % don't bury data in code; use variables for a variable factor isM=find(v); % population of indices that mat...

6 years ago | 0

Load more