Answered
plotting matrix verses vector
An example its possible using loop: H=rand(16) p.f = 1:16 figure(1); for i = 1:length(H) p...

8 years ago | 0

Answered
getting new tables from another
LastName = {'Smith';'Johnson';'William';'William1';'Smith1'}; Age = [38;43;38;40;49]; Height = [71;69;64;67;64]; Weig...

8 years ago | 0

Answered
How can I make the vector output always a column vector?
N=100; matrixSize=N; x{1}=fix(randi([5,5],N,1)); W=fix(randi([2,2],N,1)); for n=1:200; y{n}=x{n}'+W; for j=...

8 years ago | 0

| accepted

Answered
How to convert the MATLAB code into the Python?
You can use numpy framework which contains matlab libraries. See <http://mathesaurus.sourceforge.net/matlab-numpy.html cheat ...

8 years ago | 4

Answered
defining a matrix that can contain symbolic variables
clear all close all clc syms P R F Rs t F=0.01*t; %represents the Failure probability of a component and is define...

8 years ago | 0

| accepted

Answered
How to unit test a long function?
function roots=quadraticSolver(a,b,c) % quadraticSolver returns solutions to the % quadratic equation a*x^2+b*x+c=...

8 years ago | 0

Answered
How would I plot time (HH:MM:SS) when its saved in a structure?
Similar see <https://www.mathworks.com/matlabcentral/answers/282790-i-have-an-array-of-date-time-values-how-do-i-separate-date-a...

8 years ago | 0

Answered
Internal error in Simulink Design Verifier back end
As it states send the error log to the Matheorks support team by clicking Contact Us button on this page . They will guide you f...

8 years ago | 0

Answered
Plotting multiple objects on same axis
r = 0.005; x = rand(100,1); y = rand(100,1); th = 0:pi/100:2*pi; a=zeros(1,numel(x)) % preallocation for speed...

8 years ago | 1

Answered
What is the url for published files on MATLAB Drive?
<https://www.mathworks.com/products/matlab-online.html> It states *Publish your files to the web as PDFs or HTML and sh...

8 years ago | 0

Answered
import matlab.engine error for python
Read the link below which explains the reason and to fix the issue : <https://in.mathworks.com/matlabcentral/answers/426193-w...

8 years ago | 0

Answered
Don't know why my functions are not permitted
Remove clf also what’s nhaar222(N) you have called some custom made function not sure whether you have defined it or not. Matlab...

8 years ago | 0

Answered
Problem activation license MATLAB
It’s better you contact MathWorks support team by clicking Contact Us button on the top right corner of this page . People here ...

8 years ago | 0

Answered
I keep getting error on my code please help
function bacteria1 numIterations = 24; T=1/3 t = 0:numIterations; N = zeros(size(t)); N...

8 years ago | 1

Answered
How can I delete row based on the value of row (i) and row (i+1)
for i=1:length (X) if (X(i,10)~=X(i+1,10) y(i,:)= X(i,:); else y(i,:)=[]; end end

8 years ago | 0

Answered
Create n symbolic variables
*EDITED* n=input('value of n?') syms(sym('a',[1 n])) a=(sym('a',[1 n])) %storing symbolic variables in a ...

8 years ago | 3

| accepted

Answered
Comparition of two table
a=1:10 b=10:20 T= table(a,b) idx = find(T.b(T.a==1)) T.b(:,idx)=[]

8 years ago | 0

Answered
save で保存先を変数指定する方法
%get the directory of your input files: pathname = fileparts('/input/file'); %use that when you save matfile = fullfi...

8 years ago | 3

| accepted

Answered
while running code for meanshift algorithm,shows the error below.how correct it?
as it clearly states error('please type help for function syntax') type help meanShiftPixCluster in command win...

8 years ago | 1

| accepted

Answered
Can someone help me? i think there's something wrong with my code..
>> f=@(x) (x.^3-3*x.^2-4*x+12)/(x-2); xL=[1.999 1.9999 1.99999 1.999999]; xR=[2.0000001 2.000001 2.00001 2.0001]; y...

8 years ago | 0

Answered
Why do I get the error message "Unable to read file 'col\jetbk64'. No such file or directory" when trying to run the scanvp software?
<https://in.mathworks.com/matlabcentral/answers/108344-why-do-i-get-an-error-stating-bad-elf-interpreter-no-such-file-or-directo...

8 years ago | 0

Answered
How to get RGB data from a webcam
<https://in.mathworks.com/matlabcentral/answers/360740-how-can-i-get-the-rgb-values-of-a-photo-taken-with-a-webcam#answer_285217...

8 years ago | 0

| accepted

Answered
Array Indice Error For Loop
z =@(x) tan(x); h = 0.5 x=1:0.5:10 Output = zeros(1,19) %preallocation for speed and efficiency for i = 1:numel(x) ...

8 years ago | 0

| accepted

Answered
how do I round round down if the number is a whole number
ceil(A) OR floor(A) <https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=2a...

8 years ago | 0

Answered
Error undefined function while it is already defined
Replace *nearest_neighbor_zoom* with *nearest_neighbor_zoom1* and see if the error persists , if it does there is already ...

8 years ago | 0

Answered
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 1-by-3.
for i = 1:10+1 w2(i,:)= w2(i,1)+n.*delta2.*Y1(i) end

8 years ago | 2

Answered
select part vector put it back in other vector
S=1:20 %an example datas=mean([S(1:15) S(17:20)]) %skips 15th element of S vector and calculates its mean

8 years ago | 0

Answered
suppose i have a vector 'bw' if in there value '0' exist than total value of bw=0 is estimated.
bw=[120 1322 5542 5653 0 0 0 45451] if any(bw==0) bw = 0 else bw=bw(1) end

8 years ago | 0

| accepted

Answered
Cannot click on anything in Matlab. Only can write commands.
Might be a problem with the software , it’s better you contact MathWorks support team for further assistance by clicking the co...

8 years ago | 0

Load more