A répondu
How to find Matlab Function blocks in a model?
Hi Hadi Zyien Yes, We have to use find_system to find matlab function block. After that, we need to use get_param command for...

presque 5 ans il y a | 0

A répondu
PNSR formula psnr=20.0* (log10(255/sqrt(mse)));
Hi Faizullah We can use 1 instead of 255, if your input image is logical (max pixel range is 1 ) or your image is uint8 then y...

presque 5 ans il y a | 1

| A accepté

A répondu
How can I solve if condition in for loop matrix?
Hi use below code for your query. Here, B will check all rows, each column in A is less than, then it will allow to next iter...

presque 5 ans il y a | 0

| A accepté

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

presque 5 ans il y a

A résolu


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

presque 5 ans il y a

A résolu


De-dupe
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...

presque 5 ans il y a

A résolu


Create vector as shown in test cases
Create vector as shown in test cases

presque 5 ans il y a

A résolu


Return area of square
Side of square=input=a Area=output=b

presque 5 ans il y a

A résolu


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

presque 5 ans il y a

A résolu


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

presque 5 ans il y a

A résolu


Create a vector
Create a vector from 0 to n by intervals of 2.

presque 5 ans il y a

A résolu


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

presque 5 ans il y a

A résolu


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

presque 5 ans il y a

A résolu


inner product of two vectors
inner product of two vectors

presque 5 ans il y a

A résolu


Find max
Find the maximum value of a given vector or matrix.

presque 5 ans il y a

A résolu


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

presque 5 ans il y a

A résolu


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

presque 5 ans il y a

A répondu
how to get image from specific folder and resize each image and save them is a new folder
HI, Before reading the image (imread), you shoud change directory, where the files are present, as like as below clc; close ...

presque 5 ans il y a | 1

| A accepté

A répondu
i want to send binary data from port of PC through GUI in MATLAB.i Need a code of this .is anyone here to help me?
Hi Abdul, Here I have attached pushBotton_comport.m and .fig file and screen shot for the same. I think this is what you are...

presque 5 ans il y a | 0

A résolu


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

presque 5 ans il y a

A résolu


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

presque 5 ans il y a

A répondu
Error: "Unable to read some of the variables due to unknown MAT-file error."
Hi Will Q, I can load 2nd (exampleActivations2) mat file data % load_mat = load('exampleActivations2.mat') load_mat = ...

presque 5 ans il y a | 0

A répondu
How to pass inputs to simulink for nested structures with array of structures
Hi You should create structure as like below. a = struct ('b',1,'c',2,'d',struct('f',{3,4,5},'g',{6,7,8},'h', ... {struct...

presque 5 ans il y a | 0

A résolu


Add more zeros
Find code that adds one 0 to each sequence of 0 in a string (composed with only 0 or 1). For example: '1010' -> '100100' ...

presque 5 ans il y a

A résolu


Convert a structure into a string
Convert the contents of each fields into a string. Example with an input structure s with 2 fields : s.age = '33' s....

presque 5 ans il y a

A répondu
How to assign values to 100 by 2 matrix?
x=ones(100,2); x(1:end,1) =2; x(1:end,2) =3; Try the above code. Thanks in advance!!!

presque 5 ans il y a | 1

A répondu
How to read a video and then write it, resulting to exact same video file ( same file size , same pixel values )
Hi, sotiraw sotiroglou Use this below code. Vptr = VideoReader('traffic.avi'); writer = VideoWriter('delete_me.avi', 'Motion ...

presque 5 ans il y a | 0

A répondu
save variable from callback function of GUI
Hi Fabio Righetti , I think, we can get the vaiable using global variable. so we first decalre a gloabal varible ,here "data" ...

presque 5 ans il y a | 1

| A accepté

A répondu
how to change image format
Hi, @saeed hassiny. Use below code. clc clear all %% Get the info cd 'Images' img_dir = dir('*.pgm'); cd .. len...

presque 5 ans il y a | 1

Question


How can we Systematically pause Simulink model and update the variable and continue model from Matlab command line
Hi Guys, I have few querys , how can we update the variable during simulaton time. Here I have created simple model. Param...

presque 5 ans il y a | 1 réponse | 0

1

réponse

Charger plus