Answered
How to plot the real and imaginary parts of a signal using subplot function.
Ok, you're pretty much there already. Just a few things: plot t on the x-axes title the plots t = 0:0.1:10; a = cos(pi./6*t)...

6 years ago | 0

| accepted

Answered
How to add a line after every seventh Value!
You can add vertical lines using xline: % create sample data x = 1:2544; y = rand(1,length(x)); % store indices that will be...

6 years ago | 0

Answered
name as representing numbers
I think the only change you need from Image Analyst's is to subtract off the (numeric code for the) first letter of the name, ra...

6 years ago | 1

Answered
Integration of numerical data
It does not appear that trapz ignores negative data. Instead, I think you just need to give it your time data so that it can acc...

6 years ago | 0

| accepted

Answered
Problem in output. Output Truncated. Text exceeds maximum line length of 25,000 characters for Command Window display
Instead of displaying the results and copying, print them directly to a file. The best format depends on how you will be working...

6 years ago | 0

| accepted

Answered
How to write a quadratic equation solver using vectors
Search the help for one of the other students asking how to solve this exact same problem

6 years ago | 0

Answered
How to plot a combination of product and devision of some vectors
Set up an example problem: x=rand(1,1000); y=rand(1,1000); z=rand(1,1000); t = [1:1000]/1000; % calculate your function ...

6 years ago | 0

| accepted

Answered
Visualizing values of nodes in a graph
Fix the axis limits right after creating the colorbar: colorbar caxis([1 100])

6 years ago | 0

Answered
How do I compare two sentences with similar words?
First, split each sentence into the individual words words_1 = split(string1,[" ",","]); words_2 = split(string2,[" ",","]); ...

6 years ago | 0

| accepted

Answered
Calling videos from a folder in every iteration
Putting I(k) in quotes makes Matlab read it as a char instead of a variable. It is literally looking for I(k).mp4. To use the va...

6 years ago | 1

| accepted

Answered
How can I automatically set a plots xlabel and ylabel to the variable names of x and y, when x and y are structure fields?
Assuming your data will always be in two fields of the same structure: function myscatter(data,x_field,y_field, varargin ) ...

6 years ago | 2

| accepted

Answered
Index in position 2 exceeds array bounds
scanvecs is a 1xl cell, so what=scanvecs(l); makes "what" also a 1x1 cell (containing the last set of data). Indexing what(:,2...

6 years ago | 0

Answered
I have been using the nchoosek function to find combinations of subset of elements, but for large numbers 40C20 its is very slow .
Is it slow or frozen or error-ing? There are 137846528820 (~1e11) possible combinations (40 choose 20), so you are asking for...

6 years ago | 1

| accepted

Answered
How to delete similar data from big data file?
Looking into it a bit (I have a similar problem), it seems like there is a way using the "Split-Apply-Combine Workflow". It is f...

6 years ago | 0

Answered
how do i use integrated web cam for live video processing in matlab?
Here's a pretty cool example of what you can do https://www.mathworks.com/help/deeplearning/examples/classify-images-from-webca...

6 years ago | 0

Answered
How to do n-loops and store results of each loop in array
My reading: you want to execute the above section of code in an additional for loop, and store TP, FP, TN, FN for each loop? Doe...

6 years ago | 0

Answered
How to delete similar data from big data file?
Alright, here's my solution. Its speed depends on how often you expect duplicates (controlled in test by test_vals). I ran a tes...

6 years ago | 0

Answered
equalizing person heights in an image
Assuming you have a nice image like this, with white space around all the people, I think the following algorithm should work. I...

6 years ago | 1

Answered
what functions are no longer supported in 2018b?
Here are the release notes, filtered to incompatibility issues between 2011a and 2018a. If you are using toolboxes, you can chec...

6 years ago | 0

Answered
Plot different color data range
Based on this answer: https://www.mathworks.com/matlabcentral/answers/1156-conditional-plotting-changing-color-of-line-based-on-...

6 years ago | 0

Answered
Detect sign change in Matlab
A method safe against overflow. counting zeros as not a sign change Sign changes: if sign(prior_value)*sign(current_value) ==...

6 years ago | 1

Answered
Trouble using suplabel() to create global axes for figure with multiple subplots
sublabel does not exist in Matlab releases. You can download the user-created sublabel from the File Exchange and put it on your...

6 years ago | 0

Answered
Avoid colorbar resizing image
If you set the position of the colorbar manually, the figure won't be resized. So: cb=colorbar; cb.Position = cb.Position + 1e...

7 years ago | 7

Answered
How can I export a matrix as a CSV file?
It sounds like all you need to do is print a column vector instead of a row vector. This can be done easily: csvwrite('test.txt...

7 years ago | 2

Answered
replicating the elements of a cell matrix
repelem(k,2,1)

7 years ago | 0