Answered
caps lock, but for underscores
Just run this script after completing your function. filetext = fileread('yourFunction.m'); newText = strrep(filetext,'-','_')...

6 years ago | 0

Answered
How to create a 3D matrix from the rows a 2D matrix without using loops
Look at permute(), repmat(), and reshape() permute(reshape(repmat(M',252,1),4,252,252),[2 1 3]);

6 years ago | 0

| accepted

Answered
How do I remove an element from cell based on the size of the array within the cell
for i = 1:length(ClusterCell) if size(ClusterCell{i}) == [1 1] ClusterCell(i) = []; end end

6 years ago | 0

Answered
How can I extract image data from excel?
a=imread('yourimage.tif'); size(a);%read in the image and look at the size

6 years ago | 0

Answered
Recording variables that satisfy a condition
[x,y,z]=meshgrid(X,Y,Z); k=x+y+z; idx=find(k==1);

6 years ago | 0

Answered
How can I read text file and convert its values to array?
opts = detectImportOptions('MODOS.txt'); opts.DataLines=[1 6]; a=readcell('MODOS.txt',opts); a=cell2mat(a(:,1));

6 years ago | 0

| accepted

Answered
Order columns of matrix based on other matrix
Result=B(A+[0:3:12]);

6 years ago | 1

| accepted

Answered
how can i join different images ?
Images will all be 3D matrices that you can contatenate together anyway you want. newImage=[Image1,Image2,Image3;Image4,Image5,...

6 years ago | 1

Answered
find and save the rows where condition is met
for b = 1:length(data) %get the ID number (:,1) and coordinates (:,6) and save them in an array y{b} = table2array(dat...

6 years ago | 0

| accepted

Answered
Getting average value of grid point data
a=readtable('gridid.xlsx'); snowgrid=zeros(9,9,10); for k=1:10 c=zeros(10); i=ismember(a.year,num2str(k)); b=ce...

6 years ago | 0

| accepted

Answered
How do you get matlab to import/read a column vector of strings or characters??
Did you try reading into a cell array? zone=readcell('Tox_model.xlsx');

6 years ago | 0

| accepted

Answered
Converting an array of doubles to a string
How do you want it displayed? v=[0,0,2736,1824]; d=num2str(v);%once it is a character array you can manipulate it as you desir...

6 years ago | 1

| accepted

Answered
How to continuously extend a vector in a loop
for ii = 1:1:length(notes) [n1,y] = generate_sigs(L,notes(ii),Fs) tones = [tones,y]; end

6 years ago | 0

| accepted

Answered
how to divide multiple data bytes and convert it into hex ?
a='94040000'; b=hex2dec(reshape(a,4,[])');

6 years ago | 0

| accepted

Answered
why is this program keep telling me this error: Unable to perform assignment because the left and right sides have a different number of elements.
I would avoid symbolic if you can V=[1 2 3 4]; A=3; Sol=zeros(2,length(V)); for i=1:length(V) Sol(:,i)=[V(i)-A,1;-1,1]\...

6 years ago | 0

Answered
How to convert data byte by byte
d=hex2dec(regexp(a,'[0-9a-f]+','match'));

6 years ago | 0

Answered
How to import specific columns from multiple text files into a single numeric array?
newFile=[]; for k=1:5 a=readmatrix(sprintf('yourFile%d.txt',k));%name files consistently with number at end newFile=[...

6 years ago | 0

| accepted

Solved


RSA encryption using public key
Encrypt the message text by converting to uint8 matrix using UTF-8 representation. Convert uint8 matrix to a large integer strin...

6 years ago

Answered
Using while loop: Unable to obtain value
The code is working properly. If you enter a negative number or zero, the code prompts you to reenter a correct value.

6 years ago | 0

| accepted

Answered
How to Integrate TWO times separately over different unknown parameters (THREE integrals in total) and come up with numerical result? My simulation is endless.
I would try something like: syms phi d v; A=vpaintegral(3*exp(-2.5e-7*v^2-4.53)*besselj(0,.3*v)*v*... (exp(vpaintegral(vp...

6 years ago | 0

Answered
Probability HW Need help
head=1, tails=0. This should give you a good start. a=randi(2,5,10)-1; results=sum(a); b=randi(2,5,1000)-1; results2=sum(b);...

6 years ago | 0

| accepted

Answered
How do I overlap 2 images in matlab?
Assuming the pictures are rgb matrixes. picture2=reshape(picture2,[],3); idx=ismember(picture2,[0 0 0],'rows');%find the black...

6 years ago | 0

Answered
change the dimension of a cell in a cell array
for k=1:length(XTrain) XTrain{k}=reshape(XTrain{k},6,[]); end

6 years ago | 1

| accepted

Answered
Assign specific index to a matrix
x=[A,x];

6 years ago | 0

Answered
plotting graph using table data
a=readmatrix('energy lab Exp 1.xlsx'); plot(a(:,1),a(:,2));

6 years ago | 0

| accepted

Answered
How to make a for loop add results together consecutively?
No loop is needed assuming your acceleration values are in an array. v=0:16; t=1./a; plot(cumsum(t),v);

6 years ago | 0

| accepted

Submitted


Secure Off-line Email Encryption GUI
Send and receive off-line encrypted emails using public-key cryptography and Advanced Encryption Standard (AES).

6 years ago | 117 downloads |

0.0 / 5
Thumbnail

Submitted


AES-256 GUI using CBC mode
Advance Encryption Standard-256 encryption and decryption in a GUI. The Cipher Block Chaining (CBC) mode is used with cipher-tex...

6 years ago | 753 downloads |

0.0 / 5
Thumbnail

Submitted


Advanced Encryption Standard (AES)-128,192, 256
Advance Encryption Standard-128, 192, or 256 encryption and decryption using 128/192/256-bit hexadecimal key and 128-bit hexadec...

6 years ago | 4743 downloads |

4.5 / 5
Thumbnail

Load more