Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7176751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:34:21+00:00 2026-05-28T16:34:21+00:00

Given a matrix A and B of same size, i would like to construct

  • 0

Given a matrix A and B of same size, i would like to construct the C matrix of same size, such that it satisfies the below constraint.

  1. if a_ij = 0 then c_ij = min(0,b_ij)
  2. if a_ij = 1 then c_ij = max(0,b_ij)
  3. if (a_ij <> 0 and a_ij <> 1) then c_ij = b_ij.

where a_ij is the i-th and j-th entry of A matrix.
The entries in the A matrix are between 0 and 1.

How optimally we can implement this in matlab. The one i implemented has lot of variables and confusing for me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:34:22+00:00Added an answer on May 28, 2026 at 4:34 pm
    C = B;
    C(A == 0) = min(C(A == 0), 0);
    C(A == 1) = max(C(A == 1), 0);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given a NxN matrix with 0s and 1s. Set every row that contains a
Given an absolute or relative path (in a Unix-like system), I would like to
I'm trying to write a Matlab code that, given a matrix, outputs 3 matrices
Given 2 matrix A , B with the same dimension, M(x, y) = |A(x,
I've a large D Matrix of size MxNxK. Given a binary mask B of
Given that I do something like this: void glOrtho( GLdouble left, GLdouble right, GLdouble
given a matrix of distances between points is there an algorithm for determining a
Given an n-dimensional matrix of values: what is the most efficient way of retrieving
Given two 3D vectors A and B, I need to derive a rotation matrix
Given graph, how could i represent it using adj matrix?. I have read lots

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.