Question


Create a logical matrix from numerical vector
Maybe the title sounds vague, but I'll try to explain. I have the following vector of size samples-by-1 that contains the numeri...

6 years ago | 1 answer | 0

1

answer

Question


How do I import and read the contentes of an .idx3-ubyte file
So this is the first time I've seen this ".idx3-ubyte" extension and I don't know how to read the contents of it. You can downlo...

6 years ago | 1 answer | 0

1

answer

Answered
Finding equal members in a vector
Found your answer in <https://mathworks.com/matlabcentral/answers/22926-finding-the-indices-of-the-elements-of-one-array-in-anot...

6 years ago | 0

Answered
I am getting error for this expression:- [xc1,yc1]=circle(28.6,220,220)
Either there is no build-in function called "circle" in Matlab (not in 2015b atleast) or you've created you own function called ...

6 years ago | 0

Answered
how to display instruction when the cursor on the edit box in matlab?
Something like this? figure(); uicontrol('Style', 'Edit', 'String', 'My edit box','TooltipString', 'My tooltip');

6 years ago | 0

| accepted

Answered
Variation in parameter w by plotting a graph
Is this what you wanted? <</matlabcentral/answers/uploaded_files/98771/fig.JPG>> You almost had it. The problem is, you tr...

6 years ago | 0

| accepted

Answered
I have a cell array of size 136 by 1 and i want it to convert it to array of type double. How can i do this?
I think your looking for 'cell2mat()' C = {1;2;3;4;5;6;7;8;9;0}; %cell array D = cell2mat(C); %double array

6 years ago | 0

Answered
Why i got this error Undefined function or variable 'famp'.
Well in general, it would seem like that you either call a function 'famp' which doesn't exist as a build-in Matlab function (th...

6 years ago | 0

Answered
Sum up function handle
Although I don't know 'y' and 'phi' (and your 'theta' seems to be constant), I guess it's because you didn't call your 'error' e...

6 years ago | 0

| accepted

Answered
How to Combine two Cell Array to be 1 cell array?
It's pretty easy really. Here an example: A = {rand([2 1]),rand([5 1]),rand([3 1])}; B = {rand([10 1]),rand([12 1])}; ...

6 years ago | 0

| accepted

Answered
How can I copy the value of points around the result of a specific function?
I don't know if I understand the question correctly, but did you mean something like this (using findpeaks() as example) da...

6 years ago | 0

| accepted

Answered
Bar and Plot together, with Two Y axis
While your code was not the same as the figure you provided (you missed plot(EX,'o') in the provided code), I managed to get the...

6 years ago | 0

| accepted

Answered
when running lsqcurvefit to fit the complex function: F = a1*exp(-1i*x*a2) + a3*exp(-1i*x*a4), i get a2 and a4 as complex estimates, however these values should be real. how to solve this?
I haven't used lsqcurvefit myself, but if you want the real value of a complex number, you can use a2 = real(a2); a4 = r...

6 years ago | 0

Answered
How to create a function with multiple calculations
So I think you're looking for something like this function [k] = myawesomefunction(x1,x2,x3,y1,y2,y3) %MYAWESOMEFUNCTION...

6 years ago | 1

| accepted

Answered
How to compare color images
While running your code, I got Operands to the || and && operators must be convertible to logical scalar values Replace ...

6 years ago | 0

Answered
Assigning values to an array using elements of another array after each element goes through a check
I think your looking for something like this start_matrix = rand(5,5); %rand 5x5, values between 0 and 1 (cause whats the p...

6 years ago | 2

| accepted

Answered
Setting up and calculating using an array and ginput?
Okay I did a little bit of adjustment to your code, but I think this is what you want to achieve clear all; close all; ...

6 years ago | 0

| accepted

Answered
can't view confusion matrix in matlab
You could try an answer provided here: <https://www.mathworks.com/matlabcentral/answers/77565-how-to-plot-with-plotconfusion-...

6 years ago | 0

Answered
Import a .txt file with numbers and words
Here is my updated answer using delay.txt clear all; fid = fopen('delay.txt','r'); data = textscan(fid, '%s',...

6 years ago | 1

| accepted

Answered
Confusion Matrix Results Sensitivity
Just use the following. [cm, order] = confusionmat(real_values,predicted_values) You can check it here ( <https://www.ma...

6 years ago | 1

| accepted

Answered
Generate confusion matrix like in classification learner app programmatically
If you want fast and almost same result, then maybe it's best to use: plotconfusion(your_confusion_matrix); But if you w...

6 years ago | 0